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

Side by Side Diff: mojo/examples/html_viewer/blink_platform_impl.cc

Issue 358953002: Mojo: Add WebThemeEngine implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 "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
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
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
OLDNEW
« no previous file with comments | « mojo/examples/html_viewer/blink_platform_impl.h ('k') | mojo/examples/html_viewer/webthemeengine_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698