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

Unified Diff: ui/aura/remote_root_window_host_win.cc

Issue 13003004: Support multi touch on Windows 8 AURA and ASH. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 | « ui/aura/remote_root_window_host_win.h ('k') | ui/metro_viewer/metro_viewer_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/remote_root_window_host_win.cc
===================================================================
--- ui/aura/remote_root_window_host_win.cc (revision 189717)
+++ ui/aura/remote_root_window_host_win.cc (working copy)
@@ -27,9 +27,6 @@
const char* kRootWindowHostWinKey = "__AURA_REMOTE_ROOT_WINDOW_HOST_WIN__";
-// The touch id to be used for touch events coming in from Windows Ash.
-const int kRemoteWindowTouchId = 10;
-
// Sets the keystate for the virtual key passed in to down or up.
void SetKeyState(uint8* key_states, bool key_down, uint32 virtual_key_code) {
DCHECK(key_states);
@@ -373,28 +370,35 @@
delegate_->OnHostActivated();
}
-void RemoteRootWindowHostWin::OnTouchDown(int32 x, int32 y, uint64 timestamp) {
+void RemoteRootWindowHostWin::OnTouchDown(int32 x,
+ int32 y,
+ uint64 timestamp,
+ uint32 pointer_id) {
ui::TouchEvent event(ui::ET_TOUCH_PRESSED,
gfx::Point(x, y),
- kRemoteWindowTouchId,
+ pointer_id,
base::TimeDelta::FromMicroseconds(timestamp));
delegate_->OnHostTouchEvent(&event);
}
-void RemoteRootWindowHostWin::OnTouchUp(int32 x, int32 y, uint64 timestamp) {
+void RemoteRootWindowHostWin::OnTouchUp(int32 x,
+ int32 y,
+ uint64 timestamp,
+ uint32 pointer_id) {
ui::TouchEvent event(ui::ET_TOUCH_RELEASED,
gfx::Point(x, y),
- kRemoteWindowTouchId,
+ pointer_id,
base::TimeDelta::FromMicroseconds(timestamp));
delegate_->OnHostTouchEvent(&event);
}
void RemoteRootWindowHostWin::OnTouchMoved(int32 x,
int32 y,
- uint64 timestamp) {
+ uint64 timestamp,
+ uint32 pointer_id) {
ui::TouchEvent event(ui::ET_TOUCH_MOVED,
gfx::Point(x, y),
- kRemoteWindowTouchId,
+ pointer_id,
base::TimeDelta::FromMicroseconds(timestamp));
delegate_->OnHostTouchEvent(&event);
}
« no previous file with comments | « ui/aura/remote_root_window_host_win.h ('k') | ui/metro_viewer/metro_viewer_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698