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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 339913002: Move MockScreenOrientationController to content/shell/renderer/test_runner/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 (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 CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/child/blink_platform_impl.h" 10 #include "content/child/blink_platform_impl.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // a listener has been set via setGamepadListener. 168 // a listener has been set via setGamepadListener.
169 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); 169 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad);
170 170
171 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. 171 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked.
172 static void SetMockDeviceMotionDataForTesting( 172 static void SetMockDeviceMotionDataForTesting(
173 const blink::WebDeviceMotionData& data); 173 const blink::WebDeviceMotionData& data);
174 // Set WebDeviceOrientationData to return when setDeviceOrientationListener 174 // Set WebDeviceOrientationData to return when setDeviceOrientationListener
175 // is invoked. 175 // is invoked.
176 static void SetMockDeviceOrientationDataForTesting( 176 static void SetMockDeviceOrientationDataForTesting(
177 const blink::WebDeviceOrientationData& data); 177 const blink::WebDeviceOrientationData& data);
178 // Forces the screen orientation for testing purposes.
179 static void SetMockScreenOrientationForTesting(
180 RenderView* render_view,
181 blink::WebScreenOrientationType);
182 // Resets the mock screen orientation data used for testing.
183 static void ResetMockScreenOrientationForTesting();
184 178
185 // Notifies blink::WebBatteryStatusListener that battery status has changed. 179 // Notifies blink::WebBatteryStatusListener that battery status has changed.
186 static void MockBatteryStatusChangedForTesting( 180 static void MockBatteryStatusChangedForTesting(
187 const blink::WebBatteryStatus& status); 181 const blink::WebBatteryStatus& status);
188 182
189 WebDatabaseObserverImpl* web_database_observer_impl() { 183 WebDatabaseObserverImpl* web_database_observer_impl() {
190 return web_database_observer_impl_.get(); 184 return web_database_observer_impl_.get();
191 } 185 }
192 186
193 private: 187 private:
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; 229 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_;
236 230
237 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; 231 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_;
238 232
239 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); 233 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl);
240 }; 234 };
241 235
242 } // namespace content 236 } // namespace content
243 237
244 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 238 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698