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

Side by Side Diff: views/widget/root_view.h

Issue 8364039: Initial views touchui GestureRecognizer support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added ForwardGestureEvents()in RootView and incorporated comments Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef VIEWS_WIDGET_ROOT_VIEW_H_ 5 #ifndef VIEWS_WIDGET_ROOT_VIEW_H_
6 #define VIEWS_WIDGET_ROOT_VIEW_H_ 6 #define VIEWS_WIDGET_ROOT_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ui::Layer** layer_parent) OVERRIDE; 123 ui::Layer** layer_parent) OVERRIDE;
124 124
125 private: 125 private:
126 friend class View; 126 friend class View;
127 friend class Widget; 127 friend class Widget;
128 128
129 // Required so the GestureManager can call the Process* entry points 129 // Required so the GestureManager can call the Process* entry points
130 // with synthetic events as necessary. 130 // with synthetic events as necessary.
131 friend class GestureManager; 131 friend class GestureManager;
132 132
133 // GestureManager invokes for recognized GestureEvents.
134 void ForwardGestureEvents(Gestures* gestures);
135
133 // Input --------------------------------------------------------------------- 136 // Input ---------------------------------------------------------------------
134 137
135 // Update the cursor given a mouse event. This is called by non mouse_move 138 // Update the cursor given a mouse event. This is called by non mouse_move
136 // event handlers to honor the cursor desired by views located under the 139 // event handlers to honor the cursor desired by views located under the
137 // cursor during drag operations. The location of the mouse should be in the 140 // cursor during drag operations. The location of the mouse should be in the
138 // current coordinate system (i.e. any necessary transformation should be 141 // current coordinate system (i.e. any necessary transformation should be
139 // applied to the point prior to calling this). 142 // applied to the point prior to calling this).
140 void UpdateCursor(const MouseEvent& event); 143 void UpdateCursor(const MouseEvent& event);
141 144
142 // Updates the last_mouse_* fields from e. The location of the mouse should be 145 // Updates the last_mouse_* fields from e. The location of the mouse should be
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Tracks drag state for a view. 201 // Tracks drag state for a view.
199 View::DragInfo drag_info; 202 View::DragInfo drag_info;
200 203
201 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); 204 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView);
202 }; 205 };
203 206
204 } // namespace internal 207 } // namespace internal
205 } // namespace views 208 } // namespace views
206 209
207 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ 210 #endif // VIEWS_WIDGET_ROOT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698