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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
121 // Add/remove observer. | 121 // Add/remove observer. |
122 void AddObserver(DesktopObserver* observer); | 122 void AddObserver(DesktopObserver* observer); |
123 void RemoveObserver(DesktopObserver* observer); | 123 void RemoveObserver(DesktopObserver* observer); |
124 | 124 |
125 // Are any mouse buttons currently down? | 125 // Are any mouse buttons currently down? |
126 bool IsMouseButtonDown() const; | 126 bool IsMouseButtonDown() const; |
127 | 127 |
128 // Posts |native_event| to the platform's event queue. | 128 // Posts |native_event| to the platform's event queue. |
129 void PostNativeEvent(const base::NativeEvent& native_event); | 129 void PostNativeEvent(const base::NativeEvent& native_event); |
130 | 130 |
131 // Converts the |point| in the desktop's coordinate to native screen's | |
Daniel Erat
2011/11/22 00:25:32
nit: would probably reword as this:
// Converts
oshima
2011/11/22 01:36:10
Done.
| |
132 // cooridnates. | |
sky
2011/11/22 00:28:33
coordinates
| |
133 void ConvertPointToNativeScreen(gfx::Point* point) const; | |
134 | |
131 // Capture ------------------------------------------------------------------- | 135 // Capture ------------------------------------------------------------------- |
132 | 136 |
133 // Sets capture to the specified window. | 137 // Sets capture to the specified window. |
134 void SetCapture(Window* window); | 138 void SetCapture(Window* window); |
135 | 139 |
136 // If |window| has mouse capture, the current capture window is set to NULL. | 140 // If |window| has mouse capture, the current capture window is set to NULL. |
137 void ReleaseCapture(Window* window); | 141 void ReleaseCapture(Window* window); |
138 | 142 |
139 // Overridden from Window: | 143 // Overridden from Window: |
140 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; | 144 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
220 Window* mouse_moved_handler_; | 224 Window* mouse_moved_handler_; |
221 Window* focused_window_; | 225 Window* focused_window_; |
222 Window* touch_event_handler_; | 226 Window* touch_event_handler_; |
223 | 227 |
224 DISALLOW_COPY_AND_ASSIGN(Desktop); | 228 DISALLOW_COPY_AND_ASSIGN(Desktop); |
225 }; | 229 }; |
226 | 230 |
227 } // namespace aura | 231 } // namespace aura |
228 | 232 |
229 #endif // UI_AURA_DESKTOP_H_ | 233 #endif // UI_AURA_DESKTOP_H_ |
OLD | NEW |