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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // Add/remove observer. | 124 // Add/remove observer. |
125 void AddObserver(DesktopObserver* observer); | 125 void AddObserver(DesktopObserver* observer); |
126 void RemoveObserver(DesktopObserver* observer); | 126 void RemoveObserver(DesktopObserver* observer); |
127 | 127 |
128 // Are any mouse buttons currently down? | 128 // Are any mouse buttons currently down? |
129 bool IsMouseButtonDown() const; | 129 bool IsMouseButtonDown() const; |
130 | 130 |
131 // Posts |native_event| to the platform's event queue. | 131 // Posts |native_event| to the platform's event queue. |
132 void PostNativeEvent(const base::NativeEvent& native_event); | 132 void PostNativeEvent(const base::NativeEvent& native_event); |
133 | 133 |
| 134 // Converts |point| from the desktop's coordinate system to native screen's. |
| 135 void ConvertPointToNativeScreen(gfx::Point* point) const; |
| 136 |
134 // Capture ------------------------------------------------------------------- | 137 // Capture ------------------------------------------------------------------- |
135 | 138 |
136 // Sets capture to the specified window. | 139 // Sets capture to the specified window. |
137 void SetCapture(Window* window); | 140 void SetCapture(Window* window); |
138 | 141 |
139 // If |window| has mouse capture, the current capture window is set to NULL. | 142 // If |window| has mouse capture, the current capture window is set to NULL. |
140 void ReleaseCapture(Window* window); | 143 void ReleaseCapture(Window* window); |
141 | 144 |
142 // Overridden from Window: | 145 // Overridden from Window: |
143 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; | 146 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 Window* mouse_moved_handler_; | 226 Window* mouse_moved_handler_; |
224 Window* focused_window_; | 227 Window* focused_window_; |
225 Window* touch_event_handler_; | 228 Window* touch_event_handler_; |
226 | 229 |
227 DISALLOW_COPY_AND_ASSIGN(Desktop); | 230 DISALLOW_COPY_AND_ASSIGN(Desktop); |
228 }; | 231 }; |
229 | 232 |
230 } // namespace aura | 233 } // namespace aura |
231 | 234 |
232 #endif // UI_AURA_DESKTOP_H_ | 235 #endif // UI_AURA_DESKTOP_H_ |
OLD | NEW |