| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); | 53 void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); |
| 54 | 54 |
| 55 // Sets WebDeviceMotionData that should be used when registering | 55 // Sets WebDeviceMotionData that should be used when registering |
| 56 // a listener through WebKitPlatformSupport::setDeviceMotionListener(). | 56 // a listener through WebKitPlatformSupport::setDeviceMotionListener(). |
| 57 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); | 57 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); |
| 58 | 58 |
| 59 // Sets WebDeviceOrientationData that should be used when registering | 59 // Sets WebDeviceOrientationData that should be used when registering |
| 60 // a listener through WebKitPlatformSupport::setDeviceOrientationListener(). | 60 // a listener through WebKitPlatformSupport::setDeviceOrientationListener(). |
| 61 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); | 61 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); |
| 62 | 62 |
| 63 // Sets WebScreenOrientationType that should be used as a mock orientation. | |
| 64 void SetMockScreenOrientation( | |
| 65 RenderView* render_view, | |
| 66 const blink::WebScreenOrientationType& orientation); | |
| 67 | |
| 68 // Resets the mock screen orientation data. | |
| 69 void ResetMockScreenOrientation(); | |
| 70 | |
| 71 // Notifies blink that battery status has changed. | 63 // Notifies blink that battery status has changed. |
| 72 void MockBatteryStatusChanged(const blink::WebBatteryStatus& status); | 64 void MockBatteryStatusChanged(const blink::WebBatteryStatus& status); |
| 73 | 65 |
| 74 // Returns the length of the local session history of a render view. | 66 // Returns the length of the local session history of a render view. |
| 75 int GetLocalSessionHistoryLength(RenderView* render_view); | 67 int GetLocalSessionHistoryLength(RenderView* render_view); |
| 76 | 68 |
| 77 // Sync the current session history to the browser process. | 69 // Sync the current session history to the browser process. |
| 78 void SyncNavigationState(RenderView* render_view); | 70 void SyncNavigationState(RenderView* render_view); |
| 79 | 71 |
| 80 // Sets the focus of the render view depending on |enable|. This only overrides | 72 // Sets the focus of the render view depending on |enable|. This only overrides |
| (...skipping 25 matching lines...) Expand all Loading... |
| 106 void DisableAutoResizeMode(RenderView* render_view, | 98 void DisableAutoResizeMode(RenderView* render_view, |
| 107 const blink::WebSize& new_size); | 99 const blink::WebSize& new_size); |
| 108 | 100 |
| 109 // Provides a text dump of the contents of the given page state. | 101 // Provides a text dump of the contents of the given page state. |
| 110 std::string DumpBackForwardList(std::vector<PageState>& page_state, | 102 std::string DumpBackForwardList(std::vector<PageState>& page_state, |
| 111 size_t current_index); | 103 size_t current_index); |
| 112 | 104 |
| 113 } // namespace content | 105 } // namespace content |
| 114 | 106 |
| 115 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 107 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| OLD | NEW |