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

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

Issue 242703002: Improve the handling of mock screen orientation for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
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 "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // a listener has been set via setGamepadListener. 170 // a listener has been set via setGamepadListener.
171 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); 171 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad);
172 172
173 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. 173 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked.
174 static void SetMockDeviceMotionDataForTesting( 174 static void SetMockDeviceMotionDataForTesting(
175 const blink::WebDeviceMotionData& data); 175 const blink::WebDeviceMotionData& data);
176 // Set WebDeviceOrientationData to return when setDeviceOrientationListener 176 // Set WebDeviceOrientationData to return when setDeviceOrientationListener
177 // is invoked. 177 // is invoked.
178 static void SetMockDeviceOrientationDataForTesting( 178 static void SetMockDeviceOrientationDataForTesting(
179 const blink::WebDeviceOrientationData& data); 179 const blink::WebDeviceOrientationData& data);
180 // Set WebScreenOrientation to return when setScreenOrientationListener is 180 // Forces the screen orientation for testing purposes.
181 // invoked.
182 static void SetMockScreenOrientationForTesting( 181 static void SetMockScreenOrientationForTesting(
183 blink::WebScreenOrientationType); 182 blink::WebScreenOrientationType);
184 183
185 WebDatabaseObserverImpl* web_database_observer_impl() { 184 WebDatabaseObserverImpl* web_database_observer_impl() {
186 return web_database_observer_impl_.get(); 185 return web_database_observer_impl_.get();
187 } 186 }
188 187
189 private: 188 private:
190 bool CheckPreparsedJsCachingEnabled() const; 189 bool CheckPreparsedJsCachingEnabled() const;
191 190
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; 230 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_;
232 231
233 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; 232 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_;
234 233
235 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); 234 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl);
236 }; 235 };
237 236
238 } // namespace content 237 } // namespace content
239 238
240 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 239 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698