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

Side by Side Diff: webkit/glue/webkitplatformsupport_impl.h

Issue 10823239: Upstream android's fling animator. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 5 #ifndef WEBKIT_PLATFORM_SUPPORT_IMPL_H_
6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/platform_file.h" 9 #include "base/platform_file.h"
10 #include "base/threading/thread_local_storage.h" 10 #include "base/threading/thread_local_storage.h"
(...skipping 14 matching lines...) Expand all
25 #endif 25 #endif
26 26
27 27
28 class MessageLoop; 28 class MessageLoop;
29 29
30 namespace webkit { 30 namespace webkit {
31 struct WebPluginInfo; 31 struct WebPluginInfo;
32 } 32 }
33 33
34 namespace WebKit { 34 namespace WebKit {
35 class WebFlingAnimator;
35 class WebSocketStreamHandle; 36 class WebSocketStreamHandle;
36 } 37 }
37 38
38 namespace webkit_glue { 39 namespace webkit_glue {
39 40
40 class WebSocketStreamHandleDelegate; 41 class WebSocketStreamHandleDelegate;
41 class WebSocketStreamHandleBridge; 42 class WebSocketStreamHandleBridge;
42 43
43 class WEBKIT_GLUE_EXPORT WebKitPlatformSupportImpl : 44 class WEBKIT_GLUE_EXPORT WebKitPlatformSupportImpl :
44 NON_EXPORTED_BASE(public WebKit::WebKitPlatformSupport) { 45 NON_EXPORTED_BASE(public WebKit::WebKitPlatformSupport) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 146
146 void SuspendSharedTimer(); 147 void SuspendSharedTimer();
147 void ResumeSharedTimer(); 148 void ResumeSharedTimer();
148 virtual void OnStartSharedTimer(base::TimeDelta delay) {} 149 virtual void OnStartSharedTimer(base::TimeDelta delay) {}
149 150
150 virtual void didStartWorkerRunLoop( 151 virtual void didStartWorkerRunLoop(
151 const WebKit::WebWorkerRunLoop& runLoop) OVERRIDE; 152 const WebKit::WebWorkerRunLoop& runLoop) OVERRIDE;
152 virtual void didStopWorkerRunLoop( 153 virtual void didStopWorkerRunLoop(
153 const WebKit::WebWorkerRunLoop& runLoop) OVERRIDE; 154 const WebKit::WebWorkerRunLoop& runLoop) OVERRIDE;
154 155
156 #if defined(OS_ANDROID)
157 virtual WebKit::WebFlingAnimator* createFlingAnimator();
158 #endif
159
155 private: 160 private:
156 void DoTimeout() { 161 void DoTimeout() {
157 if (shared_timer_func_ && !shared_timer_suspended_) 162 if (shared_timer_func_ && !shared_timer_suspended_)
158 shared_timer_func_(); 163 shared_timer_func_();
159 } 164 }
160 static void DestroyCurrentThread(void*); 165 static void DestroyCurrentThread(void*);
161 166
162 MessageLoop* main_loop_; 167 MessageLoop* main_loop_;
163 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; 168 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_;
164 void (*shared_timer_func_)(); 169 void (*shared_timer_func_)();
165 double shared_timer_fire_time_; 170 double shared_timer_fire_time_;
166 int shared_timer_suspended_; // counter 171 int shared_timer_suspended_; // counter
167 WebThemeEngineImpl theme_engine_; 172 WebThemeEngineImpl theme_engine_;
168 base::ThreadLocalStorage::Slot current_thread_slot_; 173 base::ThreadLocalStorage::Slot current_thread_slot_;
169 }; 174 };
170 175
171 } // namespace webkit_glue 176 } // namespace webkit_glue
172 177
173 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 178 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698