Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1560)

Unified Diff: ppapi/cpp/instance.h

Issue 7285010: Implement an input event resource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/cpp/instance.h
===================================================================
--- ppapi/cpp/instance.h (revision 90976)
+++ ppapi/cpp/instance.h (working copy)
@@ -24,6 +24,7 @@
namespace pp {
class Graphics2D;
+class InputEvent;
class ImageData;
class Point;
class Rect;
@@ -154,6 +155,8 @@
/// @return true if @a event was handled, false otherwise.
virtual bool HandleInputEvent(const PP_InputEvent& event);
+ virtual bool HandleInputEvent(const InputEvent& event);
+
/// Notification of a data stream available after an instance was created
/// based on the MIME type of a DOMWindow navigation. This only applies to
/// modules that are pre-registered to handle certain MIME types. If you
@@ -204,6 +207,10 @@
/// See PPB_Instance.IsFullFrame.
bool IsFullFrame();
+ int32_t RequestInputEvents(uint32_t event_classes);
+ int32_t RequestFilteringInputEvents(uint32_t event_classes);
+ void ClearInputEventRequest(uint32_t event_classes);
+
// These functions use the PPP_Messaging and PPB_Messaging interfaces, so that
// messaging can be done conveniently for a pp::Instance without using a
// separate C++ class.

Powered by Google App Engine
This is Rietveld 408576698