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" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // there is none associated. | 43 // there is none associated. |
44 static RootWindowHost* GetForAcceleratedWidget( | 44 static RootWindowHost* GetForAcceleratedWidget( |
45 gfx::AcceleratedWidget accelerated_widget); | 45 gfx::AcceleratedWidget accelerated_widget); |
46 | 46 |
47 // Returns the accelerated widget. | 47 // Returns the accelerated widget. |
48 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; | 48 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; |
49 | 49 |
50 // Shows the RootWindowHost. | 50 // Shows the RootWindowHost. |
51 virtual void Show() = 0; | 51 virtual void Show() = 0; |
52 | 52 |
| 53 // Hides the RootWindowHost. |
| 54 virtual void Hide() = 0; |
| 55 |
53 // Toggles the host's full screen state. | 56 // Toggles the host's full screen state. |
54 virtual void ToggleFullScreen() = 0; | 57 virtual void ToggleFullScreen() = 0; |
55 | 58 |
56 // Gets/Sets the size of the RootWindowHost. | 59 // Gets/Sets the size of the RootWindowHost. |
57 virtual gfx::Rect GetBounds() const = 0; | 60 virtual gfx::Rect GetBounds() const = 0; |
58 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 61 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
59 | 62 |
60 // Returns the location of the RootWindow on native screen. | 63 // Returns the location of the RootWindow on native screen. |
61 virtual gfx::Point GetLocationOnNativeScreen() const = 0; | 64 virtual gfx::Point GetLocationOnNativeScreen() const = 0; |
62 | 65 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; | 103 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; |
101 #endif | 104 #endif |
102 | 105 |
103 // Called when the device scale factor of the root window has chagned. | 106 // Called when the device scale factor of the root window has chagned. |
104 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; | 107 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; |
105 }; | 108 }; |
106 | 109 |
107 } // namespace aura | 110 } // namespace aura |
108 | 111 |
109 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ | 112 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ |
OLD | NEW |