Bug 1510695 - Fix URL comparisons in reftestWait r=jgraham
[gecko.git] / widget / nsIKeyEventInPluginCallback.h
blobf5947392540319c26a57cae5a9201a14ecce7ee1
1 /* -*- Mode: C++; tab-width: 40; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
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/. */
6 #ifndef nsIKeyEventInPluginCallback_h_
7 #define nsIKeyEventInPluginCallback_h_
9 #include "mozilla/EventForwards.h"
11 #include "nsISupports.h"
13 #define NS_IKEYEVENTINPLUGINCALLBACK_IID \
14 { \
15 0x543c5a8a, 0xc50e, 0x4cf9, { \
16 0xa6, 0xba, 0x29, 0xa1, 0xc5, 0xa5, 0x47, 0x07 \
17 } \
20 class nsIKeyEventInPluginCallback : public nsISupports {
21 public:
22 NS_DECLARE_STATIC_IID_ACCESSOR(NS_IKEYEVENTINPLUGINCALLBACK_IID)
24 /**
25 * HandledWindowedPluginKeyEvent() is a callback method of
26 * nsIWidget::OnWindowedPluginKeyEvent(). When it returns
27 * NS_SUCCESS_EVENT_HANDLED_ASYNCHRONOUSLY, it should call this method
28 * when the key event is handled.
30 * @param aKeyEventData The key event which was posted to the parent
31 * process from a plugin process.
32 * @param aIsConsumed true if aKeyEventData is consumed in the
33 * parent process. Otherwise, false.
35 virtual void HandledWindowedPluginKeyEvent(
36 const mozilla::NativeEventData& aKeyEventData, bool aIsConsumed) = 0;
39 NS_DEFINE_STATIC_IID_ACCESSOR(nsIKeyEventInPluginCallback,
40 NS_IKEYEVENTINPLUGINCALLBACK_IID)
42 #endif // #ifndef nsIKeyEventInPluginCallback_h_