Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: sky/shell/ui/engine.cc

Issue 1202323002: Port sky_shell to Linux for testing (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/shell/ui/engine.h ('k') | sky/shell/ui/internals.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sky/shell/ui/engine.h ('k') | sky/shell/ui/internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698