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

Side by Side Diff: ui/aura/remote_window_tree_host_win.cc

Issue 572593002: Revert of Clean up GestureEventDetails constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/web_contents/touch_editable_impl_aura_browsertest.cc ('k') | ui/aura/window_event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698