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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 // Sets capture to the specified window. | 136 // Sets capture to the specified window. |
137 void SetCapture(Window* window); | 137 void SetCapture(Window* window); |
138 | 138 |
139 // If |window| has mouse capture, the current capture window is set to NULL. | 139 // If |window| has mouse capture, the current capture window is set to NULL. |
140 void ReleaseCapture(Window* window); | 140 void ReleaseCapture(Window* window); |
141 | 141 |
142 // Overridden from Window: | 142 // Overridden from Window: |
143 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; | 143 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; |
144 | 144 |
| 145 #if !defined(NDEBUG) |
| 146 // Toggles the host's full screen state. |
| 147 void ToggleFullScreen(); |
| 148 #endif |
| 149 |
145 private: | 150 private: |
146 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, | 151 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, |
147 // sending exited and entered events as its value changes. | 152 // sending exited and entered events as its value changes. |
148 void HandleMouseMoved(const MouseEvent& event, Window* target); | 153 void HandleMouseMoved(const MouseEvent& event, Window* target); |
149 | 154 |
150 bool ProcessMouseEvent(Window* target, MouseEvent* event); | 155 bool ProcessMouseEvent(Window* target, MouseEvent* event); |
151 bool ProcessKeyEvent(Window* target, KeyEvent* event); | 156 bool ProcessKeyEvent(Window* target, KeyEvent* event); |
152 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event); | 157 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event); |
153 | 158 |
154 // Overridden from ui::CompositorDelegate | 159 // Overridden from ui::CompositorDelegate |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 Window* mouse_moved_handler_; | 228 Window* mouse_moved_handler_; |
224 Window* focused_window_; | 229 Window* focused_window_; |
225 Window* touch_event_handler_; | 230 Window* touch_event_handler_; |
226 | 231 |
227 DISALLOW_COPY_AND_ASSIGN(Desktop); | 232 DISALLOW_COPY_AND_ASSIGN(Desktop); |
228 }; | 233 }; |
229 | 234 |
230 } // namespace aura | 235 } // namespace aura |
231 | 236 |
232 #endif // UI_AURA_DESKTOP_H_ | 237 #endif // UI_AURA_DESKTOP_H_ |
OLD | NEW |