| 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/engine/sky_engine.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 #include "ui/gfx/native_widget_types.h" |
| 12 | 12 |
| 13 namespace sky { | 13 namespace sky { |
| 14 namespace shell { | 14 namespace shell { |
| 15 | 15 |
| 16 class UIDelegate { | 16 class UIDelegate { |
| 17 public: | 17 public: |
| 18 virtual void ConnectToViewportObserver( | 18 virtual void ConnectToEngine(mojo::InterfaceRequest<SkyEngine> request) = 0; |
| 19 mojo::InterfaceRequest<ViewportObserver> request) = 0; | |
| 20 virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) = 0; | 19 virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) = 0; |
| 21 virtual void OnOutputSurfaceDestroyed() = 0; | 20 virtual void OnOutputSurfaceDestroyed() = 0; |
| 22 | 21 |
| 23 protected: | 22 protected: |
| 24 virtual ~UIDelegate(); | 23 virtual ~UIDelegate(); |
| 25 }; | 24 }; |
| 26 | 25 |
| 27 } // namespace shell | 26 } // namespace shell |
| 28 } // namespace sky | 27 } // namespace sky |
| 29 | 28 |
| 30 #endif // SKY_SHELL_UI_DELEGATE_H_ | 29 #endif // SKY_SHELL_UI_DELEGATE_H_ |
| OLD | NEW |