| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ROOT_WINDOW_HOST_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_H_ |
| 6 #define UI_AURA_ROOT_WINDOW_HOST_H_ | 6 #define UI_AURA_ROOT_WINDOW_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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // method can be expensive. | 72 // method can be expensive. |
| 73 virtual gfx::Point QueryMouseLocation() = 0; | 73 virtual gfx::Point QueryMouseLocation() = 0; |
| 74 | 74 |
| 75 // Clips the cursor to the bounds of the root window until UnConfineCursor(). | 75 // Clips the cursor to the bounds of the root window until UnConfineCursor(). |
| 76 virtual bool ConfineCursorToRootWindow() = 0; | 76 virtual bool ConfineCursorToRootWindow() = 0; |
| 77 virtual void UnConfineCursor() = 0; | 77 virtual void UnConfineCursor() = 0; |
| 78 | 78 |
| 79 // Moves the cursor to the specified location relative to the root window. | 79 // Moves the cursor to the specified location relative to the root window. |
| 80 virtual void MoveCursorTo(const gfx::Point& location) = 0; | 80 virtual void MoveCursorTo(const gfx::Point& location) = 0; |
| 81 | 81 |
| 82 // Sets if the window should be focused when shown. |
| 83 virtual void SetFocusWhenShown(bool focus_when_shown) = 0; |
| 84 |
| 82 // Posts |native_event| to the platform's event queue. | 85 // Posts |native_event| to the platform's event queue. |
| 83 #if !defined(OS_MACOSX) | 86 #if !defined(OS_MACOSX) |
| 84 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; | 87 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; |
| 85 #endif | 88 #endif |
| 86 }; | 89 }; |
| 87 | 90 |
| 88 } // namespace aura | 91 } // namespace aura |
| 89 | 92 |
| 90 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ | 93 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ |
| OLD | NEW |