Chromium Code Reviews| 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_HOST_H_ | 5 #ifndef UI_AURA_DESKTOP_HOST_H_ |
| 6 #define UI_AURA_DESKTOP_HOST_H_ | 6 #define UI_AURA_DESKTOP_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "ui/aura/cursor.h" | 10 #include "ui/aura/cursor.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 virtual void SetCursor(gfx::NativeCursor cursor) = 0; | 54 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
| 55 | 55 |
| 56 // Queries the mouse's current position relative to the host window. | 56 // Queries the mouse's current position relative to the host window. |
| 57 // The position is constrained within the host window. | 57 // The position is constrained within the host window. |
| 58 // You should probably call Desktop::last_mouse_location() instead; this | 58 // You should probably call Desktop::last_mouse_location() instead; this |
| 59 // method can be expensive. | 59 // method can be expensive. |
| 60 virtual gfx::Point QueryMouseLocation() = 0; | 60 virtual gfx::Point QueryMouseLocation() = 0; |
| 61 | 61 |
| 62 // Posts |native_event| to the platform's event queue. | 62 // Posts |native_event| to the platform's event queue. |
| 63 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; | 63 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; |
| 64 | |
| 65 // Converts the |point| in the desktop's coordinate to native screen's | |
|
Daniel Erat
2011/11/22 00:25:32
(see comment in desktop.h)
| |
| 66 // cooridnates. | |
| 67 virtual void ConvertPointToNativeScreen(gfx::Point* point) const = 0; | |
|
sky
2011/11/22 00:28:33
How about GetLocationOnScreen and move it beneath
oshima
2011/11/22 01:36:10
Done.
| |
| 64 }; | 68 }; |
| 65 | 69 |
| 66 } // namespace aura | 70 } // namespace aura |
| 67 | 71 |
| 68 #endif // UI_AURA_DESKTOP_HOST_H_ | 72 #endif // UI_AURA_DESKTOP_HOST_H_ |
| OLD | NEW |