| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |