OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_ | 5 #ifndef UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_ |
6 #define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_ | 6 #define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_ |
7 | 7 |
8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
(...skipping 12 matching lines...) Expand all Loading... |
23 PLATFORM_WINDOW_STATE_FULLSCREEN, | 23 PLATFORM_WINDOW_STATE_FULLSCREEN, |
24 }; | 24 }; |
25 | 25 |
26 class PlatformWindowDelegate { | 26 class PlatformWindowDelegate { |
27 public: | 27 public: |
28 virtual ~PlatformWindowDelegate() {} | 28 virtual ~PlatformWindowDelegate() {} |
29 | 29 |
30 // Note that |new_bounds| is in physical screen coordinates. | 30 // Note that |new_bounds| is in physical screen coordinates. |
31 virtual void OnBoundsChanged(const gfx::Rect& new_bounds) = 0; | 31 virtual void OnBoundsChanged(const gfx::Rect& new_bounds) = 0; |
32 | 32 |
| 33 virtual void OnChangedSurface() = 0; |
| 34 |
33 // Note that |damaged_region| is in the platform-window's coordinates, in | 35 // Note that |damaged_region| is in the platform-window's coordinates, in |
34 // physical pixels. | 36 // physical pixels. |
35 virtual void OnDamageRect(const gfx::Rect& damaged_region) = 0; | 37 virtual void OnDamageRect(const gfx::Rect& damaged_region) = 0; |
36 | 38 |
37 virtual void DispatchEvent(Event* event) = 0; | 39 virtual void DispatchEvent(Event* event) = 0; |
38 | 40 |
39 virtual void OnCloseRequest() = 0; | 41 virtual void OnCloseRequest() = 0; |
40 virtual void OnClosed() = 0; | 42 virtual void OnClosed() = 0; |
41 | 43 |
42 virtual void OnWindowStateChanged(PlatformWindowState new_state) = 0; | 44 virtual void OnWindowStateChanged(PlatformWindowState new_state) = 0; |
43 | 45 |
44 virtual void OnLostCapture() = 0; | 46 virtual void OnLostCapture() = 0; |
45 | 47 |
46 virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) = 0; | 48 virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) = 0; |
47 | 49 |
48 virtual void OnActivationChanged(bool active) = 0; | 50 virtual void OnActivationChanged(bool active) = 0; |
49 }; | 51 }; |
50 | 52 |
51 } // namespace ui | 53 } // namespace ui |
52 | 54 |
53 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_ | 55 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_ |
OLD | NEW |