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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); | 56 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); |
57 | 57 |
58 // Sets WebDeviceOrientationData that should be used when registering | 58 // Sets WebDeviceOrientationData that should be used when registering |
59 // a listener through WebKitPlatformSupport::setDeviceOrientationListener(). | 59 // a listener through WebKitPlatformSupport::setDeviceOrientationListener(). |
60 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); | 60 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); |
61 | 61 |
62 // Sets WebScreenOrientationType that should be used as a mock orientation. | 62 // Sets WebScreenOrientationType that should be used as a mock orientation. |
63 void SetMockScreenOrientation( | 63 void SetMockScreenOrientation( |
64 const blink::WebScreenOrientationType& orientation); | 64 const blink::WebScreenOrientationType& orientation); |
65 | 65 |
| 66 // Resets the mock screen orientation data. |
| 67 void ResetMockScreenOrientation(); |
| 68 |
66 // Returns the length of the local session history of a render view. | 69 // Returns the length of the local session history of a render view. |
67 int GetLocalSessionHistoryLength(RenderView* render_view); | 70 int GetLocalSessionHistoryLength(RenderView* render_view); |
68 | 71 |
69 // Sync the current session history to the browser process. | 72 // Sync the current session history to the browser process. |
70 void SyncNavigationState(RenderView* render_view); | 73 void SyncNavigationState(RenderView* render_view); |
71 | 74 |
72 // Sets the focus of the render view depending on |enable|. This only overrides | 75 // Sets the focus of the render view depending on |enable|. This only overrides |
73 // the state of the renderer, and does not sync the focus to the browser | 76 // the state of the renderer, and does not sync the focus to the browser |
74 // process. | 77 // process. |
75 void SetFocusAndActivate(RenderView* render_view, bool enable); | 78 void SetFocusAndActivate(RenderView* render_view, bool enable); |
(...skipping 25 matching lines...) Expand all Loading... |
101 // Forces the |render_frame| to use mock media streams. | 104 // Forces the |render_frame| to use mock media streams. |
102 void UseMockMediaStreams(RenderFrame* render_frame); | 105 void UseMockMediaStreams(RenderFrame* render_frame); |
103 | 106 |
104 // Provides a text dump of the contents of the given page state. | 107 // Provides a text dump of the contents of the given page state. |
105 std::string DumpBackForwardList(std::vector<PageState>& page_state, | 108 std::string DumpBackForwardList(std::vector<PageState>& page_state, |
106 size_t current_index); | 109 size_t current_index); |
107 | 110 |
108 } // namespace content | 111 } // namespace content |
109 | 112 |
110 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 113 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
OLD | NEW |