| 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_ENGINE_H_ | 5 #ifndef SKY_SHELL_UI_ENGINE_H_ |
| 6 #define SKY_SHELL_UI_ENGINE_H_ | 6 #define SKY_SHELL_UI_ENGINE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 // UIDelegate methods: | 48 // UIDelegate methods: |
| 49 void ConnectToViewportObserver( | 49 void ConnectToViewportObserver( |
| 50 mojo::InterfaceRequest<ViewportObserver> request) override; | 50 mojo::InterfaceRequest<ViewportObserver> request) override; |
| 51 | 51 |
| 52 // ViewportObserver: | 52 // ViewportObserver: |
| 53 void OnViewportMetricsChanged(int width, int height, | 53 void OnViewportMetricsChanged(int width, int height, |
| 54 float device_pixel_ratio) override; | 54 float device_pixel_ratio) override; |
| 55 void OnInputEvent(InputEventPtr event) override; | 55 void OnInputEvent(InputEventPtr event) override; |
| 56 void LoadURL(const mojo::String& url) override; |
| 56 | 57 |
| 57 // WebViewClient methods: | 58 // WebViewClient methods: |
| 58 void initializeLayerTreeView() override; | 59 void initializeLayerTreeView() override; |
| 59 void scheduleVisualUpdate() override; | 60 void scheduleVisualUpdate() override; |
| 60 | 61 |
| 62 void UpdateWebViewSize(); |
| 63 |
| 61 scoped_ptr<PlatformImpl> platform_impl_; | 64 scoped_ptr<PlatformImpl> platform_impl_; |
| 62 scoped_ptr<Animator> animator_; | 65 scoped_ptr<Animator> animator_; |
| 63 blink::WebView* web_view_; | 66 blink::WebView* web_view_; |
| 64 float device_pixel_ratio_; | 67 float device_pixel_ratio_; |
| 65 gfx::Size physical_size_; | 68 gfx::Size physical_size_; |
| 66 mojo::Binding<ViewportObserver> viewport_observer_binding_; | 69 mojo::Binding<ViewportObserver> viewport_observer_binding_; |
| 67 | 70 |
| 68 base::WeakPtrFactory<Engine> weak_factory_; | 71 base::WeakPtrFactory<Engine> weak_factory_; |
| 69 | 72 |
| 70 DISALLOW_COPY_AND_ASSIGN(Engine); | 73 DISALLOW_COPY_AND_ASSIGN(Engine); |
| 71 }; | 74 }; |
| 72 | 75 |
| 73 } // namespace shell | 76 } // namespace shell |
| 74 } // namespace sky | 77 } // namespace sky |
| 75 | 78 |
| 76 #endif // SKY_SHELL_UI_ENGINE_H_ | 79 #endif // SKY_SHELL_UI_ENGINE_H_ |
| OLD | NEW |