| OLD | NEW |
| 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 CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
| 6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/threading/thread_local_storage.h" | 10 #include "base/threading/thread_local_storage.h" |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 virtual blink::WebGestureCurve* createFlingAnimationCurve( | 146 virtual blink::WebGestureCurve* createFlingAnimationCurve( |
| 147 blink::WebGestureDevice device_source, | 147 blink::WebGestureDevice device_source, |
| 148 const blink::WebFloatPoint& velocity, | 148 const blink::WebFloatPoint& velocity, |
| 149 const blink::WebSize& cumulative_scroll) OVERRIDE; | 149 const blink::WebSize& cumulative_scroll) OVERRIDE; |
| 150 virtual void didStartWorkerRunLoop( | 150 virtual void didStartWorkerRunLoop( |
| 151 const blink::WebWorkerRunLoop& runLoop) OVERRIDE; | 151 const blink::WebWorkerRunLoop& runLoop) OVERRIDE; |
| 152 virtual void didStopWorkerRunLoop( | 152 virtual void didStopWorkerRunLoop( |
| 153 const blink::WebWorkerRunLoop& runLoop) OVERRIDE; | 153 const blink::WebWorkerRunLoop& runLoop) OVERRIDE; |
| 154 virtual blink::WebCrypto* crypto() OVERRIDE; | 154 virtual blink::WebCrypto* crypto() OVERRIDE; |
| 155 | 155 |
| 156 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, | |
| 157 const std::vector<float>& new_touchscreen); | |
| 158 | |
| 159 void SuspendSharedTimer(); | 156 void SuspendSharedTimer(); |
| 160 void ResumeSharedTimer(); | 157 void ResumeSharedTimer(); |
| 161 virtual void OnStartSharedTimer(base::TimeDelta delay) {} | 158 virtual void OnStartSharedTimer(base::TimeDelta delay) {} |
| 162 | 159 |
| 163 private: | 160 private: |
| 164 static void DestroyCurrentThread(void*); | 161 static void DestroyCurrentThread(void*); |
| 165 | 162 |
| 166 void DoTimeout() { | 163 void DoTimeout() { |
| 167 if (shared_timer_func_ && !shared_timer_suspended_) | 164 if (shared_timer_func_ && !shared_timer_suspended_) |
| 168 shared_timer_func_(); | 165 shared_timer_func_(); |
| 169 } | 166 } |
| 170 | 167 |
| 171 WebThemeEngineImpl native_theme_engine_; | 168 WebThemeEngineImpl native_theme_engine_; |
| 172 WebFallbackThemeEngineImpl fallback_theme_engine_; | 169 WebFallbackThemeEngineImpl fallback_theme_engine_; |
| 173 base::MessageLoop* main_loop_; | 170 base::MessageLoop* main_loop_; |
| 174 base::OneShotTimer<BlinkPlatformImpl> shared_timer_; | 171 base::OneShotTimer<BlinkPlatformImpl> shared_timer_; |
| 175 void (*shared_timer_func_)(); | 172 void (*shared_timer_func_)(); |
| 176 double shared_timer_fire_time_; | 173 double shared_timer_fire_time_; |
| 177 bool shared_timer_fire_time_was_set_while_suspended_; | 174 bool shared_timer_fire_time_was_set_while_suspended_; |
| 178 int shared_timer_suspended_; // counter | 175 int shared_timer_suspended_; // counter |
| 179 scoped_ptr<FlingCurveConfiguration> fling_curve_configuration_; | |
| 180 base::ThreadLocalStorage::Slot current_thread_slot_; | 176 base::ThreadLocalStorage::Slot current_thread_slot_; |
| 181 WebCryptoImpl web_crypto_; | 177 WebCryptoImpl web_crypto_; |
| 182 }; | 178 }; |
| 183 | 179 |
| 184 } // namespace content | 180 } // namespace content |
| 185 | 181 |
| 186 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 182 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |