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 #include "sky/shell/ui/engine.h" | 5 #include "sky/shell/ui/engine.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
9 #include "mojo/public/cpp/application/connect.h" | 9 #include "mojo/public/cpp/application/connect.h" |
10 #include "sky/engine/public/platform/WebInputEvent.h" | 10 #include "sky/engine/public/platform/WebInputEvent.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 void ConfigureSettings(blink::WebSettings* settings) { | 30 void ConfigureSettings(blink::WebSettings* settings) { |
31 settings->setDefaultFixedFontSize(13); | 31 settings->setDefaultFixedFontSize(13); |
32 settings->setDefaultFontSize(16); | 32 settings->setDefaultFontSize(16); |
33 settings->setLoadsImagesAutomatically(true); | 33 settings->setLoadsImagesAutomatically(true); |
34 } | 34 } |
35 | 35 |
36 PlatformImpl* g_platform_impl = nullptr; | 36 PlatformImpl* g_platform_impl = nullptr; |
37 | 37 |
38 } | 38 } |
39 | 39 |
| 40 Engine::Config::Config() { |
| 41 } |
| 42 |
| 43 Engine::Config::~Config() { |
| 44 } |
| 45 |
40 Engine::Engine(const Config& config) | 46 Engine::Engine(const Config& config) |
41 : config_(config), | 47 : config_(config), |
42 animator_(new Animator(config, this)), | 48 animator_(new Animator(config, this)), |
43 web_view_(nullptr), | 49 web_view_(nullptr), |
44 device_pixel_ratio_(1.0f), | 50 device_pixel_ratio_(1.0f), |
45 viewport_observer_binding_(this), | 51 viewport_observer_binding_(this), |
46 weak_factory_(this) { | 52 weak_factory_(this) { |
47 } | 53 } |
48 | 54 |
49 Engine::~Engine() { | 55 Engine::~Engine() { |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 256 |
251 void Engine::DidNavigateLocally(const mojo::String& url) { | 257 void Engine::DidNavigateLocally(const mojo::String& url) { |
252 } | 258 } |
253 | 259 |
254 void Engine::RequestNavigateHistory(int32_t delta) { | 260 void Engine::RequestNavigateHistory(int32_t delta) { |
255 NOTIMPLEMENTED(); | 261 NOTIMPLEMENTED(); |
256 } | 262 } |
257 | 263 |
258 } // namespace shell | 264 } // namespace shell |
259 } // namespace sky | 265 } // namespace sky |
OLD | NEW |