summaryrefslogtreecommitdiffstats
path: root/win8/metro_driver/devices_handler.h
diff options
context:
space:
mode:
authorcpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-05 21:47:33 +0000
committercpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-05 21:47:33 +0000
commit8f05ceaab534c9e0fd354e34b61e70ac48888e2c (patch)
treed8430a5bf076b96b6bc087a3d7f457bdef251a76 /win8/metro_driver/devices_handler.h
parentdb84517c5e965d72adb9ce8edaf89a229f3f59fa (diff)
downloadchromium_src-8f05ceaab534c9e0fd354e34b61e70ac48888e2c.zip
chromium_src-8f05ceaab534c9e0fd354e34b61e70ac48888e2c.tar.gz
chromium_src-8f05ceaab534c9e0fd354e34b61e70ac48888e2c.tar.bz2
In-chorme viewer for metro (part 2)
- Wires metro mouse move, mouse click to aura viewer - Introduces a new RootWindowHost, one that is remote BUG=151718 TEST=see bug Review URL: https://codereview.chromium.org/11047012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160489 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'win8/metro_driver/devices_handler.h')
-rw-r--r--win8/metro_driver/devices_handler.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/win8/metro_driver/devices_handler.h b/win8/metro_driver/devices_handler.h
index fdb2226..c3623b0 100644
--- a/win8/metro_driver/devices_handler.h
+++ b/win8/metro_driver/devices_handler.h
@@ -26,6 +26,24 @@ class DevicesHandler {
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_