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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void OnOutputSurfaceDestroyed() override; | 66 void OnOutputSurfaceDestroyed() override; |
67 | 67 |
68 // ViewportObserver: | 68 // ViewportObserver: |
69 void OnViewportMetricsChanged(int width, int height, | 69 void OnViewportMetricsChanged(int width, int height, |
70 float device_pixel_ratio) override; | 70 float device_pixel_ratio) override; |
71 void OnInputEvent(InputEventPtr event) override; | 71 void OnInputEvent(InputEventPtr event) override; |
72 | 72 |
73 void RunFromNetwork(const mojo::String& url) override; | 73 void RunFromNetwork(const mojo::String& url) override; |
74 void RunFromFile(const mojo::String& main, | 74 void RunFromFile(const mojo::String& main, |
75 const mojo::String& package_root) override; | 75 const mojo::String& package_root) override; |
76 void RunFromSnapshot(mojo::ScopedDataPipeConsumerHandle snapshot) override; | 76 void RunFromSnapshot(const mojo::String& url, |
| 77 mojo::ScopedDataPipeConsumerHandle snapshot) override; |
77 | 78 |
78 // WebViewClient methods: | 79 // WebViewClient methods: |
79 void frameDetached(blink::WebFrame*) override; | 80 void frameDetached(blink::WebFrame*) override; |
80 void initializeLayerTreeView() override; | 81 void initializeLayerTreeView() override; |
81 void scheduleVisualUpdate() override; | 82 void scheduleVisualUpdate() override; |
82 blink::WebScreenInfo screenInfo() override; | 83 blink::WebScreenInfo screenInfo() override; |
83 blink::ServiceProvider* services() override; | 84 blink::ServiceProvider* services() override; |
84 | 85 |
85 // WebFrameClient methods: | 86 // WebFrameClient methods: |
86 void didCreateIsolate(blink::WebLocalFrame* frame, | 87 void didCreateIsolate(blink::WebLocalFrame* frame, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 120 |
120 base::WeakPtrFactory<Engine> weak_factory_; | 121 base::WeakPtrFactory<Engine> weak_factory_; |
121 | 122 |
122 DISALLOW_COPY_AND_ASSIGN(Engine); | 123 DISALLOW_COPY_AND_ASSIGN(Engine); |
123 }; | 124 }; |
124 | 125 |
125 } // namespace shell | 126 } // namespace shell |
126 } // namespace sky | 127 } // namespace sky |
127 | 128 |
128 #endif // SKY_SHELL_UI_ENGINE_H_ | 129 #endif // SKY_SHELL_UI_ENGINE_H_ |
OLD | NEW |