OLD | NEW |
---|---|
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_DESKTOP_H_ | 5 #ifndef UI_AURA_DESKTOP_H_ |
6 #define UI_AURA_DESKTOP_H_ | 6 #define UI_AURA_DESKTOP_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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 void ReleaseCapture(Window* window); | 143 void ReleaseCapture(Window* window); |
144 | 144 |
145 // Overridden from Window: | 145 // Overridden from Window: |
146 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; | 146 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; |
147 | 147 |
148 #if !defined(NDEBUG) | 148 #if !defined(NDEBUG) |
149 // Toggles the host's full screen state. | 149 // Toggles the host's full screen state. |
150 void ToggleFullScreen(); | 150 void ToggleFullScreen(); |
151 #endif | 151 #endif |
152 | 152 |
153 // Overridden from ui::CompositorDelegate | |
Ben Goodger (Google)
2011/12/06 04:26:40
nit: colon at the end.
| |
154 virtual void ScheduleDraw(); | |
155 | |
153 private: | 156 private: |
154 Desktop(); | 157 Desktop(); |
155 virtual ~Desktop(); | 158 virtual ~Desktop(); |
156 | 159 |
157 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, | 160 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, |
158 // sending exited and entered events as its value changes. | 161 // sending exited and entered events as its value changes. |
159 void HandleMouseMoved(const MouseEvent& event, Window* target); | 162 void HandleMouseMoved(const MouseEvent& event, Window* target); |
160 | 163 |
161 bool ProcessMouseEvent(Window* target, MouseEvent* event); | 164 bool ProcessMouseEvent(Window* target, MouseEvent* event); |
162 bool ProcessKeyEvent(Window* target, KeyEvent* event); | 165 bool ProcessKeyEvent(Window* target, KeyEvent* event); |
163 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event); | 166 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event); |
164 | 167 |
165 // Overridden from ui::CompositorDelegate | |
166 virtual void ScheduleDraw(); | |
167 | |
168 // Overridden from Window: | 168 // Overridden from Window: |
169 virtual bool CanFocus() const OVERRIDE; | 169 virtual bool CanFocus() const OVERRIDE; |
170 virtual internal::FocusManager* GetFocusManager() OVERRIDE; | 170 virtual internal::FocusManager* GetFocusManager() OVERRIDE; |
171 virtual Desktop* GetDesktop() OVERRIDE; | 171 virtual Desktop* GetDesktop() OVERRIDE; |
172 virtual void WindowDetachedFromDesktop(Window* window) OVERRIDE; | 172 virtual void WindowDetachedFromDesktop(Window* window) OVERRIDE; |
173 | 173 |
174 // Overridden from ui::LayerAnimationObserver: | 174 // Overridden from ui::LayerAnimationObserver: |
175 virtual void OnLayerAnimationEnded( | 175 virtual void OnLayerAnimationEnded( |
176 const ui::LayerAnimationSequence* animation) OVERRIDE; | 176 const ui::LayerAnimationSequence* animation) OVERRIDE; |
177 virtual void OnLayerAnimationScheduled( | 177 virtual void OnLayerAnimationScheduled( |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
234 Window* mouse_moved_handler_; | 234 Window* mouse_moved_handler_; |
235 Window* focused_window_; | 235 Window* focused_window_; |
236 Window* touch_event_handler_; | 236 Window* touch_event_handler_; |
237 | 237 |
238 DISALLOW_COPY_AND_ASSIGN(Desktop); | 238 DISALLOW_COPY_AND_ASSIGN(Desktop); |
239 }; | 239 }; |
240 | 240 |
241 } // namespace aura | 241 } // namespace aura |
242 | 242 |
243 #endif // UI_AURA_DESKTOP_H_ | 243 #endif // UI_AURA_DESKTOP_H_ |
OLD | NEW |