| OLD | NEW |
| 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_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| 6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "third_party/WebKit/public/platform/WebScreenOrientation.h" | 9 #include "third_party/WebKit/public/platform/WebScreenOrientation.h" |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // Sets the WebGamepads that should be returned by | 42 // Sets the WebGamepads that should be returned by |
| 43 // WebKitPlatformSupport::sampleGamepads(). | 43 // WebKitPlatformSupport::sampleGamepads(). |
| 44 void SetMockGamepads(const blink::WebGamepads& pads); | 44 void SetMockGamepads(const blink::WebGamepads& pads); |
| 45 | 45 |
| 46 // Notifies blink about a new gamepad. | 46 // Notifies blink about a new gamepad. |
| 47 void MockGamepadConnected(int index, const blink::WebGamepad& pad); | 47 void MockGamepadConnected(int index, const blink::WebGamepad& pad); |
| 48 | 48 |
| 49 // Notifies blink that a gamepad has been disconnected. | 49 // Notifies blink that a gamepad has been disconnected. |
| 50 void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); | 50 void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); |
| 51 | 51 |
| 52 // Sets WebDeviceLightData that should be used when registering |
| 53 // a listener through WebKitPlatformSupport::setDeviceLightListener(). |
| 54 void SetMockDeviceLightData(const double& data); |
| 55 |
| 52 // Sets WebDeviceMotionData that should be used when registering | 56 // Sets WebDeviceMotionData that should be used when registering |
| 53 // a listener through WebKitPlatformSupport::setDeviceMotionListener(). | 57 // a listener through WebKitPlatformSupport::setDeviceMotionListener(). |
| 54 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); | 58 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); |
| 55 | 59 |
| 56 // Sets WebDeviceOrientationData that should be used when registering | 60 // Sets WebDeviceOrientationData that should be used when registering |
| 57 // a listener through WebKitPlatformSupport::setDeviceOrientationListener(). | 61 // a listener through WebKitPlatformSupport::setDeviceOrientationListener(). |
| 58 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); | 62 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); |
| 59 | 63 |
| 60 // Sets WebScreenOrientation that should be used when registering a listener | 64 // Sets WebScreenOrientation that should be used when registering a listener |
| 61 // through WebKitPlatformSupport::setScreenOrientationListener(). | 65 // through WebKitPlatformSupport::setScreenOrientationListener(). |
| (...skipping 30 matching lines...) Expand all Loading... |
| 92 const blink::WebSize& max_size); | 96 const blink::WebSize& max_size); |
| 93 void DisableAutoResizeMode(RenderView* render_view, | 97 void DisableAutoResizeMode(RenderView* render_view, |
| 94 const blink::WebSize& new_size); | 98 const blink::WebSize& new_size); |
| 95 | 99 |
| 96 // Forces the |render_view| to use mock media streams. | 100 // Forces the |render_view| to use mock media streams. |
| 97 void UseMockMediaStreams(RenderView* render_view); | 101 void UseMockMediaStreams(RenderView* render_view); |
| 98 | 102 |
| 99 } // namespace content | 103 } // namespace content |
| 100 | 104 |
| 101 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 105 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| OLD | NEW |