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

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

Issue 10365009: Adding Gesture Recognition to RenderWidgetHostViewWin (web client) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge cleanup. (Implementing four new virtuals added in the base.) Created 8 years, 7 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
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/base/gestures/gesture_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/root_window.h" 5 #include "ui/aura/root_window.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 return DispatchGestureEvent(static_cast<GestureEvent*>(event)); 855 return DispatchGestureEvent(static_cast<GestureEvent*>(event));
856 } 856 }
857 857
858 bool RootWindow::DispatchCancelTouchEvent(ui::TouchEvent* event) { 858 bool RootWindow::DispatchCancelTouchEvent(ui::TouchEvent* event) {
859 return DispatchTouchEvent(static_cast<TouchEvent*>(event)); 859 return DispatchTouchEvent(static_cast<TouchEvent*>(event));
860 } 860 }
861 861
862 ui::GestureEvent* RootWindow::CreateGestureEvent(ui::EventType type, 862 ui::GestureEvent* RootWindow::CreateGestureEvent(ui::EventType type,
863 const gfx::Point& location, 863 const gfx::Point& location,
864 int flags, 864 int flags,
865 const base::Time time, 865 base::Time time,
866 float param_first, 866 float param_first,
867 float param_second, 867 float param_second,
868 unsigned int touch_id_bitfield) { 868 unsigned int touch_id_bitfield) {
869 return new GestureEvent(type, location.x(), location.y(), flags, time, 869 return new GestureEvent(type, location.x(), location.y(), flags, time,
870 param_first, param_second, touch_id_bitfield); 870 param_first, param_second, touch_id_bitfield);
871 } 871 }
872 872
873 ui::TouchEvent* RootWindow::CreateTouchEvent(ui::EventType type, 873 ui::TouchEvent* RootWindow::CreateTouchEvent(ui::EventType type,
874 const gfx::Point& location, 874 const gfx::Point& location,
875 int touch_id, 875 int touch_id,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 void RootWindow::UnlockCompositor() { 1017 void RootWindow::UnlockCompositor() {
1018 DCHECK(compositor_lock_); 1018 DCHECK(compositor_lock_);
1019 compositor_lock_ = NULL; 1019 compositor_lock_ = NULL;
1020 if (draw_on_compositor_unlock_) { 1020 if (draw_on_compositor_unlock_) {
1021 draw_on_compositor_unlock_ = false; 1021 draw_on_compositor_unlock_ = false;
1022 ScheduleDraw(); 1022 ScheduleDraw();
1023 } 1023 }
1024 } 1024 }
1025 1025
1026 } // namespace aura 1026 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/base/gestures/gesture_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698