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

Unified Diff: win8/metro_driver/devices_handler.h

Issue 11047012: Wiring metro mouse events to aura viewer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « win8/metro_driver/chrome_app_view.h ('k') | win8/metro_driver/devices_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/metro_driver/devices_handler.h
===================================================================
--- win8/metro_driver/devices_handler.h (revision 160403)
+++ win8/metro_driver/devices_handler.h (working copy)
@@ -26,6 +26,24 @@
DISALLOW_COPY_AND_ASSIGN(DevicesHandler);
};
+// This class helps decoding the pointer properties of an event.
+class PointerEventHandler {
+ public:
+ PointerEventHandler();
+ ~PointerEventHandler();
+
+ HRESULT Init(winui::Core::IPointerEventArgs* args);
+
+ bool is_mouse() const { return is_mouse_; }
+ int x() const { return x_; }
+ int y() const { return y_; }
+
+ private:
+ int x_;
+ int y_;
+ bool is_mouse_;
+};
+
} // namespace metro_driver
#endif // CHROME_BROWSER_UI_METRO_DRIVER_DEVICES_HANDLER_H_
« no previous file with comments | « win8/metro_driver/chrome_app_view.h ('k') | win8/metro_driver/devices_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698