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_DELEGATE_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_ |
6 #define UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_ | 6 #define UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include "ui/aura/aura_export.h" | 8 #include "ui/aura/aura_export.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual void OnHostLostMouseGrab() = 0; | 46 virtual void OnHostLostMouseGrab() = 0; |
47 | 47 |
48 virtual void OnHostPaint(const gfx::Rect& damage_rect) = 0; | 48 virtual void OnHostPaint(const gfx::Rect& damage_rect) = 0; |
49 | 49 |
50 virtual void OnHostMoved(const gfx::Point& origin) = 0; | 50 virtual void OnHostMoved(const gfx::Point& origin) = 0; |
51 virtual void OnHostResized(const gfx::Size& size) = 0; | 51 virtual void OnHostResized(const gfx::Size& size) = 0; |
52 | 52 |
53 virtual float GetDeviceScaleFactor() = 0; | 53 virtual float GetDeviceScaleFactor() = 0; |
54 | 54 |
55 virtual RootWindow* AsRootWindow() = 0; | 55 virtual RootWindow* AsRootWindow() = 0; |
| 56 virtual const RootWindow* AsRootWindow() const = 0; |
56 | 57 |
57 protected: | 58 protected: |
58 virtual ~RootWindowHostDelegate() {} | 59 virtual ~RootWindowHostDelegate() {} |
59 }; | 60 }; |
60 | 61 |
61 } // namespace aura | 62 } // namespace aura |
62 | 63 |
63 #endif // UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_ | 64 #endif // UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_ |
OLD | NEW |