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" |
| 9 #include "sky/services/viewport/viewport_observer.mojom.h" |
8 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
9 | 11 |
10 namespace sky { | 12 namespace sky { |
11 namespace shell { | 13 namespace shell { |
12 | 14 |
13 class UIDelegate { | 15 class UIDelegate { |
14 public: | 16 public: |
15 virtual void OnViewportMetricsChanged(const gfx::Size& size, | 17 virtual void ConnectToViewportObserver( |
16 float device_pixel_ratio) = 0; | 18 mojo::InterfaceRequest<ViewportObserver> request) = 0; |
17 | 19 |
18 protected: | 20 protected: |
19 virtual ~UIDelegate(); | 21 virtual ~UIDelegate(); |
20 }; | 22 }; |
21 | 23 |
22 } // namespace shell | 24 } // namespace shell |
23 } // namespace sky | 25 } // namespace sky |
24 | 26 |
25 #endif // SKY_SHELL_UI_DELEGATE_H_ | 27 #endif // SKY_SHELL_UI_DELEGATE_H_ |
OLD | NEW |