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

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

Issue 720713003: Remove WebScroll* (Closed) Base URL: https://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/viewer/cc/web_scrollbar_layer_impl.cc ('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/engine/public/platform/WebScrollbarBehavior.h"
15 #include "sky/viewer/cc/web_compositor_support_impl.h" 14 #include "sky/viewer/cc/web_compositor_support_impl.h"
16 #include "sky/viewer/platform/webmimeregistry_impl.h" 15 #include "sky/viewer/platform/webmimeregistry_impl.h"
17 #include "sky/viewer/platform/webthemeengine_impl.h" 16 #include "sky/viewer/platform/webthemeengine_impl.h"
18 17
19 namespace mojo { 18 namespace mojo {
20 class ApplicationImpl; 19 class ApplicationImpl;
21 } 20 }
22 21
23 namespace sky { 22 namespace sky {
24 23
(...skipping 10 matching lines...) Expand all
35 virtual double monotonicallyIncreasingTime(); 34 virtual double monotonicallyIncreasingTime();
36 virtual void setSharedTimerFiredFunction(void (*func)()); 35 virtual void setSharedTimerFiredFunction(void (*func)());
37 virtual void setSharedTimerFireInterval(double interval_seconds); 36 virtual void setSharedTimerFireInterval(double interval_seconds);
38 virtual void stopSharedTimer(); 37 virtual void stopSharedTimer();
39 virtual base::SingleThreadTaskRunner* mainThreadTaskRunner(); 38 virtual base::SingleThreadTaskRunner* mainThreadTaskRunner();
40 virtual bool isThreadedCompositingEnabled(); 39 virtual bool isThreadedCompositingEnabled();
41 virtual blink::WebCompositorSupport* compositorSupport(); 40 virtual blink::WebCompositorSupport* compositorSupport();
42 virtual mojo::NetworkService* networkService(); 41 virtual mojo::NetworkService* networkService();
43 virtual blink::WebURLLoader* createURLLoader(); 42 virtual blink::WebURLLoader* createURLLoader();
44 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const; 43 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const;
45 virtual blink::WebScrollbarBehavior* scrollbarBehavior();
46 virtual const unsigned char* getTraceCategoryEnabledFlag( 44 virtual const unsigned char* getTraceCategoryEnabledFlag(
47 const char* category_name); 45 const char* category_name);
48 virtual long* getTraceSamplingState(const unsigned thread_bucket); 46 virtual long* getTraceSamplingState(const unsigned thread_bucket);
49 virtual TraceEventHandle addTraceEvent( 47 virtual TraceEventHandle addTraceEvent(
50 char phase, 48 char phase,
51 const unsigned char* category_group_enabled, 49 const unsigned char* category_group_enabled,
52 const char* name, 50 const char* name,
53 unsigned long long id, 51 unsigned long long id,
54 int num_args, 52 int num_args,
55 const char** arg_names, 53 const char** arg_names,
(...skipping 29 matching lines...) Expand all
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_; 92 WebMimeRegistryImpl mime_registry_;
95 blink::WebScrollbarBehavior scrollbar_behavior_;
96 93
97 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); 94 DISALLOW_COPY_AND_ASSIGN(PlatformImpl);
98 }; 95 };
99 96
100 } // namespace sky 97 } // namespace sky
101 98
102 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ 99 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « sky/viewer/cc/web_scrollbar_layer_impl.cc ('k') | sky/viewer/platform/platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698