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

Side by Side Diff: sky/engine/testing/platform/platform_impl.cc

Issue 752463002: Remove unused WebMIMERegistry (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
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/engine/testing/platform/platform_impl.h" 5 #include "sky/engine/testing/platform/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"
11 #include "base/synchronization/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "net/base/data_url.h" 13 #include "net/base/data_url.h"
14 #include "net/base/mime_util.h" 14 #include "net/base/mime_util.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 16
17 namespace sky { 17 namespace sky {
18 18
19 PlatformImpl::PlatformImpl() 19 PlatformImpl::PlatformImpl()
20 : main_loop_(base::MessageLoop::current()), 20 : main_loop_(base::MessageLoop::current()),
21 shared_timer_func_(NULL), 21 shared_timer_func_(NULL),
22 shared_timer_fire_time_(0.0), 22 shared_timer_fire_time_(0.0),
23 shared_timer_fire_time_was_set_while_suspended_(false), 23 shared_timer_fire_time_was_set_while_suspended_(false),
24 shared_timer_suspended_(0) { 24 shared_timer_suspended_(0) {
25 } 25 }
26 26
27 PlatformImpl::~PlatformImpl() { 27 PlatformImpl::~PlatformImpl() {
28 } 28 }
29 29
30 blink::WebMimeRegistry* PlatformImpl::mimeRegistry() {
31 return &mime_registry_;
32 }
33
34 blink::WebThemeEngine* PlatformImpl::themeEngine() { 30 blink::WebThemeEngine* PlatformImpl::themeEngine() {
35 return &theme_engine_; 31 return &theme_engine_;
36 } 32 }
37 33
38 blink::WebString PlatformImpl::defaultLocale() { 34 blink::WebString PlatformImpl::defaultLocale() {
39 return blink::WebString::fromUTF8("en-US"); 35 return blink::WebString::fromUTF8("en-US");
40 } 36 }
41 37
42 double PlatformImpl::currentTime() { 38 double PlatformImpl::currentTime() {
43 return base::Time::Now().ToDoubleT(); 39 return base::Time::Now().ToDoubleT();
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 return &unit_test_support_; 86 return &unit_test_support_;
91 } 87 }
92 88
93 const unsigned char* PlatformImpl::getTraceCategoryEnabledFlag( 89 const unsigned char* PlatformImpl::getTraceCategoryEnabledFlag(
94 const char* category_name) { 90 const char* category_name) {
95 static const unsigned char buf[] = "*"; 91 static const unsigned char buf[] = "*";
96 return buf; 92 return buf;
97 } 93 }
98 94
99 } // namespace sky 95 } // namespace sky
OLDNEW
« no previous file with comments | « sky/engine/testing/platform/platform_impl.h ('k') | sky/engine/testing/platform/webmimeregistry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698