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

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

Issue 10824247: Remove GestureEvent interface, and rename GestureEventImpl to GestureEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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
« no previous file with comments | « ui/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/aura/root_window.cc » ('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 #ifndef UI_AURA_ROOT_WINDOW_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_H_
6 #define UI_AURA_ROOT_WINDOW_H_ 6 #define UI_AURA_ROOT_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 13 matching lines...) Expand all
24 #include "ui/compositor/compositor_observer.h" 24 #include "ui/compositor/compositor_observer.h"
25 #include "ui/compositor/layer_animation_observer.h" 25 #include "ui/compositor/layer_animation_observer.h"
26 #include "ui/gfx/native_widget_types.h" 26 #include "ui/gfx/native_widget_types.h"
27 #include "ui/gfx/point.h" 27 #include "ui/gfx/point.h"
28 28
29 namespace gfx { 29 namespace gfx {
30 class Size; 30 class Size;
31 } 31 }
32 32
33 namespace ui { 33 namespace ui {
34 class GestureEventImpl; 34 class GestureEvent;
35 class GestureRecognizer; 35 class GestureRecognizer;
36 class KeyEvent; 36 class KeyEvent;
37 class LayerAnimationSequence; 37 class LayerAnimationSequence;
38 class MouseEvent; 38 class MouseEvent;
39 class ScrollEvent; 39 class ScrollEvent;
40 class TouchEvent; 40 class TouchEvent;
41 class Transform; 41 class Transform;
42 } 42 }
43 43
44 namespace aura { 44 namespace aura {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Draws the necessary set of windows. 139 // Draws the necessary set of windows.
140 void Draw(); 140 void Draw();
141 141
142 // Draw the whole screen. 142 // Draw the whole screen.
143 void ScheduleFullDraw(); 143 void ScheduleFullDraw();
144 144
145 // Handles a gesture event. Returns true if handled. Unlike the other 145 // Handles a gesture event. Returns true if handled. Unlike the other
146 // event-dispatching function (e.g. for touch/mouse/keyboard events), gesture 146 // event-dispatching function (e.g. for touch/mouse/keyboard events), gesture
147 // events are dispatched from GestureRecognizer instead of RootWindowHost. 147 // events are dispatched from GestureRecognizer instead of RootWindowHost.
148 bool DispatchGestureEvent(ui::GestureEventImpl* event); 148 bool DispatchGestureEvent(ui::GestureEvent* event);
149 149
150 // Invoked when |window| is being destroyed. 150 // Invoked when |window| is being destroyed.
151 void OnWindowDestroying(Window* window); 151 void OnWindowDestroying(Window* window);
152 152
153 // Invoked when |window|'s bounds have changed. |contained_mouse| indicates if 153 // Invoked when |window|'s bounds have changed. |contained_mouse| indicates if
154 // the bounds before change contained the |last_moust_location()|. 154 // the bounds before change contained the |last_moust_location()|.
155 void OnWindowBoundsChanged(Window* window, bool contained_mouse); 155 void OnWindowBoundsChanged(Window* window, bool contained_mouse);
156 156
157 // Invoked when |window|'s visibility is changed. 157 // Invoked when |window|'s visibility is changed.
158 void OnWindowVisibilityChanged(Window* window, bool is_visible); 158 void OnWindowVisibilityChanged(Window* window, bool is_visible);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 friend class CompositorLock; 266 friend class CompositorLock;
267 267
268 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, 268 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|,
269 // sending exited and entered events as its value changes. 269 // sending exited and entered events as its value changes.
270 void HandleMouseMoved(const ui::MouseEvent& event, Window* target); 270 void HandleMouseMoved(const ui::MouseEvent& event, Window* target);
271 271
272 bool ProcessMouseEvent(Window* target, ui::MouseEvent* event); 272 bool ProcessMouseEvent(Window* target, ui::MouseEvent* event);
273 bool ProcessKeyEvent(Window* target, ui::KeyEvent* event); 273 bool ProcessKeyEvent(Window* target, ui::KeyEvent* event);
274 ui::TouchStatus ProcessTouchEvent(Window* target, ui::TouchEvent* event); 274 ui::TouchStatus ProcessTouchEvent(Window* target, ui::TouchEvent* event);
275 ui::GestureStatus ProcessGestureEvent(Window* target, 275 ui::GestureStatus ProcessGestureEvent(Window* target,
276 ui::GestureEventImpl* event); 276 ui::GestureEvent* event);
277 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures); 277 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures);
278 278
279 // Called when a Window is attached or detached from the RootWindow. 279 // Called when a Window is attached or detached from the RootWindow.
280 void OnWindowAddedToRootWindow(Window* window); 280 void OnWindowAddedToRootWindow(Window* window);
281 void OnWindowRemovedFromRootWindow(Window* window); 281 void OnWindowRemovedFromRootWindow(Window* window);
282 282
283 // Called when a window becomes invisible, either by being removed 283 // Called when a window becomes invisible, either by being removed
284 // from root window hierachy, via SetVisible(false) or being destroyed. 284 // from root window hierachy, via SetVisible(false) or being destroyed.
285 // |destroyed| is set to true when the window is being destroyed. 285 // |destroyed| is set to true when the window is being destroyed.
286 void OnWindowHidden(Window* invisible, bool destroyed); 286 void OnWindowHidden(Window* invisible, bool destroyed);
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 398
399 CompositorLock* compositor_lock_; 399 CompositorLock* compositor_lock_;
400 bool draw_on_compositor_unlock_; 400 bool draw_on_compositor_unlock_;
401 401
402 DISALLOW_COPY_AND_ASSIGN(RootWindow); 402 DISALLOW_COPY_AND_ASSIGN(RootWindow);
403 }; 403 };
404 404
405 } // namespace aura 405 } // namespace aura
406 406
407 #endif // UI_AURA_ROOT_WINDOW_H_ 407 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698