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

Side by Side Diff: sky/viewer/platform/platform_impl.cc

Issue 753443002: Remove WebThemeEngine (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/viewer/platform/platform_impl.h ('k') | sky/viewer/platform/webthemeengine_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/viewer/platform/platform_impl.h" 5 #include "sky/viewer/platform/platform_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 shared_timer_suspended_(0) { 51 shared_timer_suspended_(0) {
52 app->ConnectToService("mojo:network_service", &network_service_); 52 app->ConnectToService("mojo:network_service", &network_service_);
53 53
54 mojo::CookieStorePtr cookie_store; 54 mojo::CookieStorePtr cookie_store;
55 network_service_->GetCookieStore(GetProxy(&cookie_store)); 55 network_service_->GetCookieStore(GetProxy(&cookie_store));
56 } 56 }
57 57
58 PlatformImpl::~PlatformImpl() { 58 PlatformImpl::~PlatformImpl() {
59 } 59 }
60 60
61 blink::WebThemeEngine* PlatformImpl::themeEngine() {
62 return &theme_engine_;
63 }
64
65 blink::WebString PlatformImpl::defaultLocale() { 61 blink::WebString PlatformImpl::defaultLocale() {
66 return blink::WebString::fromUTF8("en-US"); 62 return blink::WebString::fromUTF8("en-US");
67 } 63 }
68 64
69 double PlatformImpl::currentTime() { 65 double PlatformImpl::currentTime() {
70 return base::Time::Now().ToDoubleT(); 66 return base::Time::Now().ToDoubleT();
71 } 67 }
72 68
73 double PlatformImpl::monotonicallyIncreasingTime() { 69 double PlatformImpl::monotonicallyIncreasingTime() {
74 return base::TimeTicks::Now().ToInternalValue() / 70 return base::TimeTicks::Now().ToInternalValue() /
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 else 248 else
253 CHECK(false); 249 CHECK(false);
254 250
255 std::string buffer; 251 std::string buffer;
256 base::ReadFileToString(path, &buffer); 252 base::ReadFileToString(path, &buffer);
257 CHECK(!buffer.empty()); 253 CHECK(!buffer.empty());
258 return blink::WebData(buffer.data(), buffer.size()); 254 return blink::WebData(buffer.data(), buffer.size());
259 } 255 }
260 256
261 } // namespace sky 257 } // namespace sky
OLDNEW
« no previous file with comments | « sky/viewer/platform/platform_impl.h ('k') | sky/viewer/platform/webthemeengine_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698