OLD | NEW |
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 #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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, | 152 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, |
153 // sending exited and entered events as its value changes. | 153 // sending exited and entered events as its value changes. |
154 void HandleMouseMoved(const MouseEvent& event, Window* target); | 154 void HandleMouseMoved(const MouseEvent& event, Window* target); |
155 | 155 |
156 bool ProcessMouseEvent(Window* target, MouseEvent* event); | 156 bool ProcessMouseEvent(Window* target, MouseEvent* event); |
157 bool ProcessKeyEvent(Window* target, KeyEvent* event); | 157 bool ProcessKeyEvent(Window* target, KeyEvent* event); |
158 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event); | 158 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event); |
159 | 159 |
160 // Overridden from Window: | 160 // Overridden from Window: |
161 virtual bool CanFocus() const OVERRIDE; | 161 virtual bool CanFocus() const OVERRIDE; |
| 162 virtual bool CanReceiveEvents() const OVERRIDE; |
162 virtual internal::FocusManager* GetFocusManager() OVERRIDE; | 163 virtual internal::FocusManager* GetFocusManager() OVERRIDE; |
163 virtual RootWindow* GetRootWindow() OVERRIDE; | 164 virtual RootWindow* GetRootWindow() OVERRIDE; |
164 virtual void WindowDetachedFromRootWindow(Window* window) OVERRIDE; | 165 virtual void WindowDetachedFromRootWindow(Window* window) OVERRIDE; |
165 | 166 |
166 // Overridden from ui::LayerAnimationObserver: | 167 // Overridden from ui::LayerAnimationObserver: |
167 virtual void OnLayerAnimationEnded( | 168 virtual void OnLayerAnimationEnded( |
168 const ui::LayerAnimationSequence* animation) OVERRIDE; | 169 const ui::LayerAnimationSequence* animation) OVERRIDE; |
169 virtual void OnLayerAnimationScheduled( | 170 virtual void OnLayerAnimationScheduled( |
170 const ui::LayerAnimationSequence* animation) OVERRIDE; | 171 const ui::LayerAnimationSequence* animation) OVERRIDE; |
171 virtual void OnLayerAnimationAborted( | 172 virtual void OnLayerAnimationAborted( |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 Window* mouse_moved_handler_; | 219 Window* mouse_moved_handler_; |
219 Window* focused_window_; | 220 Window* focused_window_; |
220 Window* touch_event_handler_; | 221 Window* touch_event_handler_; |
221 | 222 |
222 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 223 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
223 }; | 224 }; |
224 | 225 |
225 } // namespace aura | 226 } // namespace aura |
226 | 227 |
227 #endif // UI_AURA_ROOT_WINDOW_H_ | 228 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |