OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SKY_SHELL_UI_DELEGATE_H_ | 5 #ifndef SKY_SHELL_UI_DELEGATE_H_ |
6 #define SKY_SHELL_UI_DELEGATE_H_ | 6 #define SKY_SHELL_UI_DELEGATE_H_ |
7 | 7 |
8 #include "mojo/public/cpp/bindings/interface_request.h" | 8 #include "mojo/public/cpp/bindings/interface_request.h" |
9 #include "sky/services/viewport/viewport_observer.mojom.h" | 9 #include "sky/services/viewport/viewport_observer.mojom.h" |
10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
| 11 #include "ui/gfx/native_widget_types.h" |
11 | 12 |
12 namespace sky { | 13 namespace sky { |
13 namespace shell { | 14 namespace shell { |
14 | 15 |
15 class UIDelegate { | 16 class UIDelegate { |
16 public: | 17 public: |
17 virtual void ConnectToViewportObserver( | 18 virtual void ConnectToViewportObserver( |
18 mojo::InterfaceRequest<ViewportObserver> request) = 0; | 19 mojo::InterfaceRequest<ViewportObserver> request) = 0; |
| 20 virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) = 0; |
| 21 virtual void OnOutputSurfaceDestroyed() = 0; |
19 | 22 |
20 protected: | 23 protected: |
21 virtual ~UIDelegate(); | 24 virtual ~UIDelegate(); |
22 }; | 25 }; |
23 | 26 |
24 } // namespace shell | 27 } // namespace shell |
25 } // namespace sky | 28 } // namespace sky |
26 | 29 |
27 #endif // SKY_SHELL_UI_DELEGATE_H_ | 30 #endif // SKY_SHELL_UI_DELEGATE_H_ |
OLD | NEW |