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

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

Issue 752463002: Remove unused WebMIMERegistry (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/BUILD.gn ('k') | sky/viewer/platform/platform_impl.cc » ('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 #ifndef SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ 5 #ifndef SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_
6 #define SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ 6 #define SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/threading/thread_local_storage.h" 10 #include "base/threading/thread_local_storage.h"
11 #include "base/timer/timer.h" 11 #include "base/timer/timer.h"
12 #include "mojo/services/public/interfaces/network/network_service.mojom.h" 12 #include "mojo/services/public/interfaces/network/network_service.mojom.h"
13 #include "sky/engine/public/platform/Platform.h" 13 #include "sky/engine/public/platform/Platform.h"
14 #include "sky/viewer/cc/web_compositor_support_impl.h" 14 #include "sky/viewer/cc/web_compositor_support_impl.h"
15 #include "sky/viewer/platform/webmimeregistry_impl.h"
16 #include "sky/viewer/platform/webthemeengine_impl.h" 15 #include "sky/viewer/platform/webthemeengine_impl.h"
17 16
18 namespace mojo { 17 namespace mojo {
19 class ApplicationImpl; 18 class ApplicationImpl;
20 } 19 }
21 20
22 namespace sky { 21 namespace sky {
23 22
24 class PlatformImpl : public blink::Platform { 23 class PlatformImpl : public blink::Platform {
25 public: 24 public:
26 explicit PlatformImpl(mojo::ApplicationImpl* app); 25 explicit PlatformImpl(mojo::ApplicationImpl* app);
27 virtual ~PlatformImpl(); 26 virtual ~PlatformImpl();
28 27
29 // blink::Platform methods: 28 // blink::Platform methods:
30 virtual blink::WebMimeRegistry* mimeRegistry();
31 virtual blink::WebThemeEngine* themeEngine(); 29 virtual blink::WebThemeEngine* themeEngine();
32 virtual blink::WebString defaultLocale(); 30 virtual blink::WebString defaultLocale();
33 virtual double currentTime(); 31 virtual double currentTime();
34 virtual double monotonicallyIncreasingTime(); 32 virtual double monotonicallyIncreasingTime();
35 virtual void setSharedTimerFiredFunction(void (*func)()); 33 virtual void setSharedTimerFiredFunction(void (*func)());
36 virtual void setSharedTimerFireInterval(double interval_seconds); 34 virtual void setSharedTimerFireInterval(double interval_seconds);
37 virtual void stopSharedTimer(); 35 virtual void stopSharedTimer();
38 virtual base::SingleThreadTaskRunner* mainThreadTaskRunner(); 36 virtual base::SingleThreadTaskRunner* mainThreadTaskRunner();
39 virtual bool isThreadedCompositingEnabled(); 37 virtual bool isThreadedCompositingEnabled();
40 virtual blink::WebCompositorSupport* compositorSupport(); 38 virtual blink::WebCompositorSupport* compositorSupport();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 mojo::NetworkServicePtr network_service_; 82 mojo::NetworkServicePtr network_service_;
85 base::MessageLoop* main_loop_; 83 base::MessageLoop* main_loop_;
86 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 84 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
87 base::OneShotTimer<PlatformImpl> shared_timer_; 85 base::OneShotTimer<PlatformImpl> shared_timer_;
88 void (*shared_timer_func_)(); 86 void (*shared_timer_func_)();
89 double shared_timer_fire_time_; 87 double shared_timer_fire_time_;
90 bool shared_timer_fire_time_was_set_while_suspended_; 88 bool shared_timer_fire_time_was_set_while_suspended_;
91 int shared_timer_suspended_; // counter 89 int shared_timer_suspended_; // counter
92 sky_viewer_cc::WebCompositorSupportImpl compositor_support_; 90 sky_viewer_cc::WebCompositorSupportImpl compositor_support_;
93 WebThemeEngineImpl theme_engine_; 91 WebThemeEngineImpl theme_engine_;
94 WebMimeRegistryImpl mime_registry_;
95 92
96 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); 93 DISALLOW_COPY_AND_ASSIGN(PlatformImpl);
97 }; 94 };
98 95
99 } // namespace sky 96 } // namespace sky
100 97
101 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ 98 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « sky/viewer/BUILD.gn ('k') | sky/viewer/platform/platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698