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

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

Issue 8907005: Add support for new scroll valuators coming from CMT (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review nits Created 9 years 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/event.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) 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 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 namespace aura { 33 namespace aura {
34 34
35 class RootWindowHost; 35 class RootWindowHost;
36 class RootWindowObserver; 36 class RootWindowObserver;
37 class KeyEvent; 37 class KeyEvent;
38 class MouseEvent; 38 class MouseEvent;
39 class ScreenAura; 39 class ScreenAura;
40 class StackingClient; 40 class StackingClient;
41 class ScrollEvent;
41 class TouchEvent; 42 class TouchEvent;
42 43
43 // RootWindow is responsible for hosting a set of windows. 44 // RootWindow is responsible for hosting a set of windows.
44 class AURA_EXPORT RootWindow : public ui::CompositorDelegate, 45 class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
45 public Window, 46 public Window,
46 public internal::FocusManager, 47 public internal::FocusManager,
47 public ui::LayerAnimationObserver { 48 public ui::LayerAnimationObserver {
48 public: 49 public:
49 static RootWindow* GetInstance(); 50 static RootWindow* GetInstance();
50 static void DeleteInstance(); 51 static void DeleteInstance();
(...skipping 27 matching lines...) Expand all
78 79
79 // Draws the necessary set of windows. 80 // Draws the necessary set of windows.
80 void Draw(); 81 void Draw();
81 82
82 // Handles a mouse event. Returns true if handled. 83 // Handles a mouse event. Returns true if handled.
83 bool DispatchMouseEvent(MouseEvent* event); 84 bool DispatchMouseEvent(MouseEvent* event);
84 85
85 // Handles a key event. Returns true if handled. 86 // Handles a key event. Returns true if handled.
86 bool DispatchKeyEvent(KeyEvent* event); 87 bool DispatchKeyEvent(KeyEvent* event);
87 88
89 // Handles a scroll event. Returns true if handled.
90 bool DispatchScrollEvent(ScrollEvent* event);
91
88 // Handles a touch event. Returns true if handled. 92 // Handles a touch event. Returns true if handled.
89 bool DispatchTouchEvent(TouchEvent* event); 93 bool DispatchTouchEvent(TouchEvent* event);
90 94
91 // Called when the host changes size. 95 // Called when the host changes size.
92 void OnHostResized(const gfx::Size& size); 96 void OnHostResized(const gfx::Size& size);
93 97
94 // Called when the native screen's resolution changes. 98 // Called when the native screen's resolution changes.
95 void OnNativeScreenResized(const gfx::Size& size); 99 void OnNativeScreenResized(const gfx::Size& size);
96 100
97 // Invoked when |window| is initialized. 101 // Invoked when |window| is initialized.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 Window* mouse_moved_handler_; 218 Window* mouse_moved_handler_;
215 Window* focused_window_; 219 Window* focused_window_;
216 Window* touch_event_handler_; 220 Window* touch_event_handler_;
217 221
218 DISALLOW_COPY_AND_ASSIGN(RootWindow); 222 DISALLOW_COPY_AND_ASSIGN(RootWindow);
219 }; 223 };
220 224
221 } // namespace aura 225 } // namespace aura
222 226
223 #endif // UI_AURA_ROOT_WINDOW_H_ 227 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/event.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698