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

Side by Side Diff: content/child/blink_platform_impl.h

Issue 304793003: use enum to specify deviceSource for fling animation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased for parallel breaking changes Created 6 years, 6 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 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/platform_file.h" 10 #include "base/platform_file.h"
11 #include "base/threading/thread_local_storage.h" 11 #include "base/threading/thread_local_storage.h"
12 #include "base/timer/timer.h" 12 #include "base/timer/timer.h"
13 #include "content/child/webcrypto/webcrypto_impl.h" 13 #include "content/child/webcrypto/webcrypto_impl.h"
14 #include "content/child/webfallbackthemeengine_impl.h" 14 #include "content/child/webfallbackthemeengine_impl.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "third_party/WebKit/public/platform/Platform.h" 16 #include "third_party/WebKit/public/platform/Platform.h"
17 #include "third_party/WebKit/public/platform/WebGestureDevice.h"
17 #include "third_party/WebKit/public/platform/WebURLError.h" 18 #include "third_party/WebKit/public/platform/WebURLError.h"
18 #include "ui/base/layout.h" 19 #include "ui/base/layout.h"
19 20
20 #if defined(USE_DEFAULT_RENDER_THEME) 21 #if defined(USE_DEFAULT_RENDER_THEME)
21 #include "content/child/webthemeengine_impl_default.h" 22 #include "content/child/webthemeengine_impl_default.h"
22 #elif defined(OS_WIN) 23 #elif defined(OS_WIN)
23 #include "content/child/webthemeengine_impl_win.h" 24 #include "content/child/webthemeengine_impl_win.h"
24 #elif defined(OS_MACOSX) 25 #elif defined(OS_MACOSX)
25 #include "content/child/webthemeengine_impl_mac.h" 26 #include "content/child/webthemeengine_impl_mac.h"
26 #elif defined(OS_ANDROID) 27 #elif defined(OS_ANDROID)
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 virtual void suddenTerminationChanged(bool enabled) { } 135 virtual void suddenTerminationChanged(bool enabled) { }
135 virtual double currentTime(); 136 virtual double currentTime();
136 virtual double monotonicallyIncreasingTime(); 137 virtual double monotonicallyIncreasingTime();
137 virtual void cryptographicallyRandomValues( 138 virtual void cryptographicallyRandomValues(
138 unsigned char* buffer, size_t length); 139 unsigned char* buffer, size_t length);
139 virtual void setSharedTimerFiredFunction(void (*func)()); 140 virtual void setSharedTimerFiredFunction(void (*func)());
140 virtual void setSharedTimerFireInterval(double interval_seconds); 141 virtual void setSharedTimerFireInterval(double interval_seconds);
141 virtual void stopSharedTimer(); 142 virtual void stopSharedTimer();
142 virtual void callOnMainThread(void (*func)(void*), void* context); 143 virtual void callOnMainThread(void (*func)(void*), void* context);
143 virtual blink::WebGestureCurve* createFlingAnimationCurve( 144 virtual blink::WebGestureCurve* createFlingAnimationCurve(
144 int device_source, 145 blink::WebGestureDevice device_source,
145 const blink::WebFloatPoint& velocity, 146 const blink::WebFloatPoint& velocity,
146 const blink::WebSize& cumulative_scroll) OVERRIDE; 147 const blink::WebSize& cumulative_scroll) OVERRIDE;
147 virtual void didStartWorkerRunLoop( 148 virtual void didStartWorkerRunLoop(
148 const blink::WebWorkerRunLoop& runLoop) OVERRIDE; 149 const blink::WebWorkerRunLoop& runLoop) OVERRIDE;
149 virtual void didStopWorkerRunLoop( 150 virtual void didStopWorkerRunLoop(
150 const blink::WebWorkerRunLoop& runLoop) OVERRIDE; 151 const blink::WebWorkerRunLoop& runLoop) OVERRIDE;
151 virtual blink::WebCrypto* crypto() OVERRIDE; 152 virtual blink::WebCrypto* crypto() OVERRIDE;
152 153
153 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, 154 void SetFlingCurveParameters(const std::vector<float>& new_touchpad,
154 const std::vector<float>& new_touchscreen); 155 const std::vector<float>& new_touchscreen);
(...skipping 19 matching lines...) Expand all
174 bool shared_timer_fire_time_was_set_while_suspended_; 175 bool shared_timer_fire_time_was_set_while_suspended_;
175 int shared_timer_suspended_; // counter 176 int shared_timer_suspended_; // counter
176 scoped_ptr<FlingCurveConfiguration> fling_curve_configuration_; 177 scoped_ptr<FlingCurveConfiguration> fling_curve_configuration_;
177 base::ThreadLocalStorage::Slot current_thread_slot_; 178 base::ThreadLocalStorage::Slot current_thread_slot_;
178 WebCryptoImpl web_crypto_; 179 WebCryptoImpl web_crypto_;
179 }; 180 };
180 181
181 } // namespace content 182 } // namespace content
182 183
183 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 184 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698