Chromium Code Reviews| 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 "gpu/ipc/common/surface_handle.h" | |
| 8 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 9 | 10 |
| 10 namespace gfx { | 11 namespace gfx { |
| 11 class Rect; | 12 class Rect; |
| 12 } | 13 } |
| 13 | 14 |
| 14 namespace ui { | 15 namespace ui { |
| 15 | 16 |
| 16 class Event; | 17 class Event; |
| 17 | 18 |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 36 | 37 |
| 37 virtual void DispatchEvent(Event* event) = 0; | 38 virtual void DispatchEvent(Event* event) = 0; |
| 38 | 39 |
| 39 virtual void OnCloseRequest() = 0; | 40 virtual void OnCloseRequest() = 0; |
| 40 virtual void OnClosed() = 0; | 41 virtual void OnClosed() = 0; |
| 41 | 42 |
| 42 virtual void OnWindowStateChanged(PlatformWindowState new_state) = 0; | 43 virtual void OnWindowStateChanged(PlatformWindowState new_state) = 0; |
| 43 | 44 |
| 44 virtual void OnLostCapture() = 0; | 45 virtual void OnLostCapture() = 0; |
| 45 | 46 |
| 46 virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, | 47 virtual void OnAcceleratedWidgetAvailable(gpu::SurfaceHandle widget, |
|
Fady Samuel
2016/10/19 10:49:52
nit: OnSurfaceHandleAvailable?
Jay Civelli
2016/11/02 22:02:17
Ended up keeping the AcceleratedWidget.
| |
| 47 float device_pixel_ratio) = 0; | 48 float device_pixel_ratio) = 0; |
| 48 | 49 |
| 49 // Notifies the delegate that the widget cannot be used anymore until | 50 // Notifies the delegate that the widget cannot be used anymore until |
| 50 // a new widget is made available through OnAcceleratedWidgetAvailable(). | 51 // a new widget is made available through OnAcceleratedWidgetAvailable(). |
| 51 virtual void OnAcceleratedWidgetDestroyed() = 0; | 52 virtual void OnAcceleratedWidgetDestroyed() = 0; |
| 52 | 53 |
| 53 virtual void OnActivationChanged(bool active) = 0; | 54 virtual void OnActivationChanged(bool active) = 0; |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 } // namespace ui | 57 } // namespace ui |
| 57 | 58 |
| 58 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_ | 59 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_ |
| OLD | NEW |