| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void LoadURL(const mojo::String& url) override; |
| 57 | 57 |
| 58 // WebViewClient methods: | 58 // WebViewClient methods: |
| 59 void initializeLayerTreeView() override; | 59 void initializeLayerTreeView() override; |
| 60 void scheduleVisualUpdate() override; | 60 void scheduleVisualUpdate() override; |
| 61 blink::WebScreenInfo screenInfo() override; |
| 61 | 62 |
| 62 void UpdateWebViewSize(); | 63 void UpdateWebViewSize(); |
| 63 | 64 |
| 64 scoped_ptr<PlatformImpl> platform_impl_; | 65 scoped_ptr<PlatformImpl> platform_impl_; |
| 65 scoped_ptr<Animator> animator_; | 66 scoped_ptr<Animator> animator_; |
| 66 blink::WebView* web_view_; | 67 blink::WebView* web_view_; |
| 67 float device_pixel_ratio_; | 68 float device_pixel_ratio_; |
| 68 gfx::Size physical_size_; | 69 gfx::Size physical_size_; |
| 69 mojo::Binding<ViewportObserver> viewport_observer_binding_; | 70 mojo::Binding<ViewportObserver> viewport_observer_binding_; |
| 70 | 71 |
| 71 base::WeakPtrFactory<Engine> weak_factory_; | 72 base::WeakPtrFactory<Engine> weak_factory_; |
| 72 | 73 |
| 73 DISALLOW_COPY_AND_ASSIGN(Engine); | 74 DISALLOW_COPY_AND_ASSIGN(Engine); |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace shell | 77 } // namespace shell |
| 77 } // namespace sky | 78 } // namespace sky |
| 78 | 79 |
| 79 #endif // SKY_SHELL_UI_ENGINE_H_ | 80 #endif // SKY_SHELL_UI_ENGINE_H_ |
| OLD | NEW |