| 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 15 matching lines...) Expand all Loading... |
| 26 class RootWindowHostDelegate; | 26 class RootWindowHostDelegate; |
| 27 | 27 |
| 28 // RootWindowHost bridges between a native window and the embedded RootWindow. | 28 // RootWindowHost bridges between a native window and the embedded RootWindow. |
| 29 // It provides the accelerated widget and maps events from the native os to | 29 // It provides the accelerated widget and maps events from the native os to |
| 30 // aura. | 30 // aura. |
| 31 class AURA_EXPORT RootWindowHost { | 31 class AURA_EXPORT RootWindowHost { |
| 32 public: | 32 public: |
| 33 virtual ~RootWindowHost() {} | 33 virtual ~RootWindowHost() {} |
| 34 | 34 |
| 35 // Creates a new RootWindowHost. The caller owns the returned value. | 35 // Creates a new RootWindowHost. The caller owns the returned value. |
| 36 static RootWindowHost* Create(const gfx::Rect& bounds); | 36 static RootWindowHost* Create(const gfx::Rect& bounds, |
| 37 bool is_internal_display); |
| 37 | 38 |
| 38 // Returns the actual size of the screen. | 39 // Returns the actual size of the screen. |
| 39 // (gfx::Screen only reports on the virtual desktop exposed by Aura.) | 40 // (gfx::Screen only reports on the virtual desktop exposed by Aura.) |
| 40 static gfx::Size GetNativeScreenSize(); | 41 static gfx::Size GetNativeScreenSize(); |
| 41 | 42 |
| 42 // Sets the delegate, which is normally done by the root window. | 43 // Sets the delegate, which is normally done by the root window. |
| 43 virtual void SetDelegate(RootWindowHostDelegate* delegate) = 0; | 44 virtual void SetDelegate(RootWindowHostDelegate* delegate) = 0; |
| 44 | 45 |
| 45 virtual RootWindow* GetRootWindow() = 0; | 46 virtual RootWindow* GetRootWindow() = 0; |
| 46 | 47 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // Called when the device scale factor of the root window has chagned. | 115 // Called when the device scale factor of the root window has chagned. |
| 115 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; | 116 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; |
| 116 | 117 |
| 117 // Stop listening events in preparation for shutdown. | 118 // Stop listening events in preparation for shutdown. |
| 118 virtual void PrepareForShutdown() = 0; | 119 virtual void PrepareForShutdown() = 0; |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace aura | 122 } // namespace aura |
| 122 | 123 |
| 123 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ | 124 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ |
| OLD | NEW |