| 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 "mojo/examples/html_viewer/blink_platform_impl.h" | 5 #include "mojo/examples/html_viewer/blink_platform_impl.h" | 
| 6 | 6 | 
| 7 #include <cmath> | 7 #include <cmath> | 
| 8 | 8 | 
| 9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" | 
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 57 } | 57 } | 
| 58 | 58 | 
| 59 BlinkPlatformImpl::~BlinkPlatformImpl() { | 59 BlinkPlatformImpl::~BlinkPlatformImpl() { | 
| 60 } | 60 } | 
| 61 | 61 | 
| 62 blink::WebMimeRegistry* BlinkPlatformImpl::mimeRegistry() { | 62 blink::WebMimeRegistry* BlinkPlatformImpl::mimeRegistry() { | 
| 63   return &mime_registry_; | 63   return &mime_registry_; | 
| 64 } | 64 } | 
| 65 | 65 | 
| 66 blink::WebThemeEngine* BlinkPlatformImpl::themeEngine() { | 66 blink::WebThemeEngine* BlinkPlatformImpl::themeEngine() { | 
| 67   return &dummy_theme_engine_; | 67   return &theme_engine_; | 
| 68 } | 68 } | 
| 69 | 69 | 
| 70 blink::WebString BlinkPlatformImpl::defaultLocale() { | 70 blink::WebString BlinkPlatformImpl::defaultLocale() { | 
| 71   return blink::WebString::fromUTF8("en-US"); | 71   return blink::WebString::fromUTF8("en-US"); | 
| 72 } | 72 } | 
| 73 | 73 | 
| 74 double BlinkPlatformImpl::currentTime() { | 74 double BlinkPlatformImpl::currentTime() { | 
| 75   return base::Time::Now().ToDoubleT(); | 75   return base::Time::Now().ToDoubleT(); | 
| 76 } | 76 } | 
| 77 | 77 | 
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 204 | 204 | 
| 205 // static | 205 // static | 
| 206 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { | 206 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { | 
| 207   WebThreadImplForMessageLoop* impl = | 207   WebThreadImplForMessageLoop* impl = | 
| 208       static_cast<WebThreadImplForMessageLoop*>(thread); | 208       static_cast<WebThreadImplForMessageLoop*>(thread); | 
| 209   delete impl; | 209   delete impl; | 
| 210 } | 210 } | 
| 211 | 211 | 
| 212 }  // namespace examples | 212 }  // namespace examples | 
| 213 }  // namespace mojo | 213 }  // namespace mojo | 
| OLD | NEW | 
|---|