OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/aura/remote_window_tree_host_win.h" | 5 #include "ui/aura/remote_window_tree_host_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 if (repaint && compositor()) | 382 if (repaint && compositor()) |
383 compositor()->ScheduleFullRedraw(); | 383 compositor()->ScheduleFullRedraw(); |
384 } | 384 } |
385 | 385 |
386 void RemoteWindowTreeHostWin::OnEdgeGesture() { | 386 void RemoteWindowTreeHostWin::OnEdgeGesture() { |
387 ui::GestureEvent event( | 387 ui::GestureEvent event( |
388 0, | 388 0, |
389 0, | 389 0, |
390 0, | 390 0, |
391 ui::EventTimeForNow(), | 391 ui::EventTimeForNow(), |
392 ui::GestureEventDetails(ui::ET_GESTURE_WIN8_EDGE_SWIPE)); | 392 ui::GestureEventDetails(ui::ET_GESTURE_WIN8_EDGE_SWIPE, 0, 0)); |
393 SendEventToProcessor(&event); | 393 SendEventToProcessor(&event); |
394 } | 394 } |
395 | 395 |
396 void RemoteWindowTreeHostWin::OnTouchDown(int32 x, | 396 void RemoteWindowTreeHostWin::OnTouchDown(int32 x, |
397 int32 y, | 397 int32 y, |
398 uint64 timestamp, | 398 uint64 timestamp, |
399 uint32 pointer_id) { | 399 uint32 pointer_id) { |
400 gfx::Point location = PointFromNativeEvent(x, y); | 400 gfx::Point location = PointFromNativeEvent(x, y); |
401 ui::TouchEvent event(ui::ET_TOUCH_PRESSED, | 401 ui::TouchEvent event(ui::ET_TOUCH_PRESSED, |
402 location, | 402 location, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 } | 515 } |
516 | 516 |
517 void RemoteWindowTreeHostWin::SetEventFlags(uint32 flags) { | 517 void RemoteWindowTreeHostWin::SetEventFlags(uint32 flags) { |
518 if (flags == event_flags_) | 518 if (flags == event_flags_) |
519 return; | 519 return; |
520 event_flags_ = flags; | 520 event_flags_ = flags; |
521 SetVirtualKeyStates(event_flags_); | 521 SetVirtualKeyStates(event_flags_); |
522 } | 522 } |
523 | 523 |
524 } // namespace aura | 524 } // namespace aura |
OLD | NEW |