LCOV - code coverage report
Current view: top level - widget - nsIKeyEventInPluginCallback.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 40; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : #ifndef nsIKeyEventInPluginCallback_h_
       7             : #define nsIKeyEventInPluginCallback_h_
       8             : 
       9             : #include "mozilla/EventForwards.h"
      10             : 
      11             : #include "nsISupports.h"
      12             : 
      13             : #define NS_IKEYEVENTINPLUGINCALLBACK_IID \
      14             : { 0x543c5a8a, 0xc50e, 0x4cf9, \
      15             :   { 0xa6, 0xba, 0x29, 0xa1, 0xc5, 0xa5, 0x47, 0x07 } }
      16             : 
      17             : 
      18           1 : class nsIKeyEventInPluginCallback : public nsISupports
      19             : {
      20             : public:
      21             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IKEYEVENTINPLUGINCALLBACK_IID)
      22             : 
      23             :   /**
      24             :    * HandledWindowedPluginKeyEvent() is a callback method of
      25             :    * nsIWidget::OnWindowedPluginKeyEvent().  When it returns
      26             :    * NS_SUCCESS_EVENT_HANDLED_ASYNCHRONOUSLY, it should call this method
      27             :    * when the key event is handled.
      28             :    *
      29             :    * @param aKeyEventData      The key event which was posted to the parent
      30             :    *                           process from a plugin process.
      31             :    * @param aIsConsumed        true if aKeyEventData is consumed in the
      32             :    *                           parent process.  Otherwise, false.
      33             :    */
      34             :   virtual void HandledWindowedPluginKeyEvent(
      35             :                  const mozilla::NativeEventData& aKeyEventData,
      36             :                  bool aIsConsumed) = 0;
      37             : };
      38             : 
      39             : NS_DEFINE_STATIC_IID_ACCESSOR(nsIKeyEventInPluginCallback,
      40             :                               NS_IKEYEVENTINPLUGINCALLBACK_IID)
      41             : 
      42             : #endif // #ifndef nsIKeyEventInPluginCallback_h_

Generated by: LCOV version 1.13