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(const mojo::String& url, | 76 void RunFromSnapshot(const mojo::String& path) override; |
77 mojo::ScopedDataPipeConsumerHandle snapshot) override; | |
78 | 77 |
79 // WebViewClient methods: | 78 // WebViewClient methods: |
80 void frameDetached(blink::WebFrame*) override; | 79 void frameDetached(blink::WebFrame*) override; |
81 void initializeLayerTreeView() override; | 80 void initializeLayerTreeView() override; |
82 void scheduleVisualUpdate() override; | 81 void scheduleVisualUpdate() override; |
83 blink::WebScreenInfo screenInfo() override; | 82 blink::WebScreenInfo screenInfo() override; |
84 blink::ServiceProvider* services() override; | 83 blink::ServiceProvider* services() override; |
85 | 84 |
86 // WebFrameClient methods: | 85 // WebFrameClient methods: |
87 void didCreateIsolate(blink::WebLocalFrame* frame, | 86 void didCreateIsolate(blink::WebLocalFrame* frame, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 119 |
121 base::WeakPtrFactory<Engine> weak_factory_; | 120 base::WeakPtrFactory<Engine> weak_factory_; |
122 | 121 |
123 DISALLOW_COPY_AND_ASSIGN(Engine); | 122 DISALLOW_COPY_AND_ASSIGN(Engine); |
124 }; | 123 }; |
125 | 124 |
126 } // namespace shell | 125 } // namespace shell |
127 } // namespace sky | 126 } // namespace sky |
128 | 127 |
129 #endif // SKY_SHELL_UI_ENGINE_H_ | 128 #endif // SKY_SHELL_UI_ENGINE_H_ |
OLD | NEW |