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 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "ui/aura/aura_export.h" | 11 #include "ui/aura/aura_export.h" |
12 #include "ui/base/cursor/cursor.h" | 12 #include "ui/base/cursor/cursor.h" |
13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
14 | 14 |
15 class SkCanvas; | 15 class SkCanvas; |
16 | 16 |
17 namespace gfx { | 17 namespace gfx { |
18 class Insets; | |
18 class Point; | 19 class Point; |
19 class Rect; | 20 class Rect; |
20 class Size; | 21 class Size; |
21 } | 22 } |
22 | 23 |
23 namespace aura { | 24 namespace aura { |
24 | 25 |
25 class RootWindow; | 26 class RootWindow; |
26 class RootWindowHostDelegate; | 27 class RootWindowHostDelegate; |
27 | 28 |
(...skipping 25 matching lines...) Expand all Loading... | |
53 // Hides the RootWindowHost. | 54 // Hides the RootWindowHost. |
54 virtual void Hide() = 0; | 55 virtual void Hide() = 0; |
55 | 56 |
56 // Toggles the host's full screen state. | 57 // Toggles the host's full screen state. |
57 virtual void ToggleFullScreen() = 0; | 58 virtual void ToggleFullScreen() = 0; |
58 | 59 |
59 // Gets/Sets the size of the RootWindowHost. | 60 // Gets/Sets the size of the RootWindowHost. |
60 virtual gfx::Rect GetBounds() const = 0; | 61 virtual gfx::Rect GetBounds() const = 0; |
61 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 62 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
62 | 63 |
64 // Sets/Gets the insets that specifies the effective root window area | |
65 // in the host window. | |
66 virtual gfx::Insets GetInsets() const = 0; | |
67 virtual void SetInsets(const gfx::Insets& insets) = 0; | |
oshima
2013/03/11 17:41:41
I originally had insets in root_window.h, but move
| |
68 | |
63 // Returns the location of the RootWindow on native screen. | 69 // Returns the location of the RootWindow on native screen. |
64 virtual gfx::Point GetLocationOnNativeScreen() const = 0; | 70 virtual gfx::Point GetLocationOnNativeScreen() const = 0; |
65 | 71 |
66 // Sets the OS capture to the root window. | 72 // Sets the OS capture to the root window. |
67 virtual void SetCapture() = 0; | 73 virtual void SetCapture() = 0; |
68 | 74 |
69 // Releases OS capture of the root window. | 75 // Releases OS capture of the root window. |
70 virtual void ReleaseCapture() = 0; | 76 virtual void ReleaseCapture() = 0; |
71 | 77 |
72 // Sets the currently displayed cursor. | 78 // Sets the currently displayed cursor. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
114 // Called when the device scale factor of the root window has chagned. | 120 // Called when the device scale factor of the root window has chagned. |
115 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; | 121 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; |
116 | 122 |
117 // Stop listening events in preparation for shutdown. | 123 // Stop listening events in preparation for shutdown. |
118 virtual void PrepareForShutdown() = 0; | 124 virtual void PrepareForShutdown() = 0; |
119 }; | 125 }; |
120 | 126 |
121 } // namespace aura | 127 } // namespace aura |
122 | 128 |
123 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ | 129 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ |
OLD | NEW |