| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual void SetSize(const gfx::Size& size) = 0; | 51 virtual void SetSize(const gfx::Size& size) = 0; |
| 52 | 52 |
| 53 // Sets the currently displayed cursor. | 53 // Sets the currently displayed cursor. |
| 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 |
| 62 // Posts |native_event| to the platform's event queue. |
| 63 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; |
| 61 }; | 64 }; |
| 62 | 65 |
| 63 } // namespace aura | 66 } // namespace aura |
| 64 | 67 |
| 65 #endif // UI_AURA_DESKTOP_HOST_H_ | 68 #endif // UI_AURA_DESKTOP_HOST_H_ |
| OLD | NEW |