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

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

Issue 684813003: Remove wtf/Functional.h (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
« no previous file with comments | « sky/engine/wtf/MainThread.cpp ('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"
(...skipping 21 matching lines...) Expand all
32 virtual blink::WebThemeEngine* themeEngine(); 32 virtual blink::WebThemeEngine* themeEngine();
33 virtual blink::WebString defaultLocale(); 33 virtual blink::WebString defaultLocale();
34 virtual double currentTime(); 34 virtual double currentTime();
35 virtual double monotonicallyIncreasingTime(); 35 virtual double monotonicallyIncreasingTime();
36 virtual void cryptographicallyRandomValues( 36 virtual void cryptographicallyRandomValues(
37 unsigned char* buffer, size_t length); 37 unsigned char* buffer, size_t length);
38 virtual void setSharedTimerFiredFunction(void (*func)()); 38 virtual void setSharedTimerFiredFunction(void (*func)());
39 virtual void setSharedTimerFireInterval(double interval_seconds); 39 virtual void setSharedTimerFireInterval(double interval_seconds);
40 virtual void stopSharedTimer(); 40 virtual void stopSharedTimer();
41 virtual void callOnMainThread(void (*func)(void*), void* context); 41 virtual void callOnMainThread(void (*func)(void*), void* context);
42 virtual base::SingleThreadTaskRunner* mainThreadTaskRunner();
42 virtual bool isThreadedCompositingEnabled(); 43 virtual bool isThreadedCompositingEnabled();
43 virtual blink::WebCompositorSupport* compositorSupport(); 44 virtual blink::WebCompositorSupport* compositorSupport();
44 virtual mojo::NetworkService* networkService(); 45 virtual mojo::NetworkService* networkService();
45 virtual blink::WebURLLoader* createURLLoader(); 46 virtual blink::WebURLLoader* createURLLoader();
46 virtual blink::WebData parseDataURL( 47 virtual blink::WebData parseDataURL(
47 const blink::WebURL& url, blink::WebString& mime_type, 48 const blink::WebURL& url, blink::WebString& mime_type,
48 blink::WebString& charset); 49 blink::WebString& charset);
49 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const; 50 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const;
50 virtual blink::WebScrollbarBehavior* scrollbarBehavior(); 51 virtual blink::WebScrollbarBehavior* scrollbarBehavior();
51 virtual const unsigned char* getTraceCategoryEnabledFlag( 52 virtual const unsigned char* getTraceCategoryEnabledFlag(
(...skipping 29 matching lines...) Expand all
81 void SuspendSharedTimer(); 82 void SuspendSharedTimer();
82 void ResumeSharedTimer(); 83 void ResumeSharedTimer();
83 84
84 void DoTimeout() { 85 void DoTimeout() {
85 if (shared_timer_func_ && !shared_timer_suspended_) 86 if (shared_timer_func_ && !shared_timer_suspended_)
86 shared_timer_func_(); 87 shared_timer_func_();
87 } 88 }
88 89
89 mojo::NetworkServicePtr network_service_; 90 mojo::NetworkServicePtr network_service_;
90 base::MessageLoop* main_loop_; 91 base::MessageLoop* main_loop_;
92 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
91 base::OneShotTimer<PlatformImpl> shared_timer_; 93 base::OneShotTimer<PlatformImpl> shared_timer_;
92 void (*shared_timer_func_)(); 94 void (*shared_timer_func_)();
93 double shared_timer_fire_time_; 95 double shared_timer_fire_time_;
94 bool shared_timer_fire_time_was_set_while_suspended_; 96 bool shared_timer_fire_time_was_set_while_suspended_;
95 int shared_timer_suspended_; // counter 97 int shared_timer_suspended_; // counter
96 sky_viewer_cc::WebCompositorSupportImpl compositor_support_; 98 sky_viewer_cc::WebCompositorSupportImpl compositor_support_;
97 WebThemeEngineImpl theme_engine_; 99 WebThemeEngineImpl theme_engine_;
98 WebMimeRegistryImpl mime_registry_; 100 WebMimeRegistryImpl mime_registry_;
99 blink::WebScrollbarBehavior scrollbar_behavior_; 101 blink::WebScrollbarBehavior scrollbar_behavior_;
100 102
101 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); 103 DISALLOW_COPY_AND_ASSIGN(PlatformImpl);
102 }; 104 };
103 105
104 } // namespace sky 106 } // namespace sky
105 107
106 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ 108 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « sky/engine/wtf/MainThread.cpp ('k') | sky/viewer/platform/platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698