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

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
Index: win8/metro_driver/devices_handler.h
===================================================================
--- win8/metro_driver/devices_handler.h (revision 159567)
+++ 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_

Powered by Google App Engine
This is Rietveld 408576698