| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
| 14 #include "cc/layers/texture_layer.h" | 14 #include "cc/layers/texture_layer.h" |
| 15 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 15 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
| 16 | 16 |
| 17 class GURL; | 17 class GURL; |
| 18 | 18 |
| 19 namespace blink { | 19 namespace blink { |
| 20 class WebBatteryStatus; | |
| 21 class WebDeviceMotionData; | 20 class WebDeviceMotionData; |
| 22 class WebDeviceOrientationData; | 21 class WebDeviceOrientationData; |
| 23 class WebGamepad; | 22 class WebGamepad; |
| 24 class WebGamepads; | 23 class WebGamepads; |
| 25 class WebLayer; | 24 class WebLayer; |
| 26 struct WebSize; | 25 struct WebSize; |
| 27 class WebView; | 26 class WebView; |
| 28 class WebURLResponse; | 27 class WebURLResponse; |
| 29 } | 28 } |
| 30 | 29 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void SetMockDeviceLightData(const double data); | 71 void SetMockDeviceLightData(const double data); |
| 73 | 72 |
| 74 // Sets WebDeviceMotionData that should be used when registering | 73 // Sets WebDeviceMotionData that should be used when registering |
| 75 // a listener through BlinkPlatformImpl::setDeviceMotionListener(). | 74 // a listener through BlinkPlatformImpl::setDeviceMotionListener(). |
| 76 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); | 75 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); |
| 77 | 76 |
| 78 // Sets WebDeviceOrientationData that should be used when registering | 77 // Sets WebDeviceOrientationData that should be used when registering |
| 79 // a listener through BlinkPlatformImpl::setDeviceOrientationListener(). | 78 // a listener through BlinkPlatformImpl::setDeviceOrientationListener(). |
| 80 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); | 79 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); |
| 81 | 80 |
| 82 // Notifies blink that battery status has changed. | |
| 83 void MockBatteryStatusChanged(const blink::WebBatteryStatus& status); | |
| 84 | |
| 85 // Returns the length of the local session history of a render view. | 81 // Returns the length of the local session history of a render view. |
| 86 int GetLocalSessionHistoryLength(RenderView* render_view); | 82 int GetLocalSessionHistoryLength(RenderView* render_view); |
| 87 | 83 |
| 88 // Sync the current session history to the browser process. | 84 // Sync the current session history to the browser process. |
| 89 void SyncNavigationState(RenderView* render_view); | 85 void SyncNavigationState(RenderView* render_view); |
| 90 | 86 |
| 91 // Sets the focus of the render view depending on |enable|. This only overrides | 87 // Sets the focus of the render view depending on |enable|. This only overrides |
| 92 // the state of the renderer, and does not sync the focus to the browser | 88 // the state of the renderer, and does not sync the focus to the browser |
| 93 // process. | 89 // process. |
| 94 void SetFocusAndActivate(RenderView* render_view, bool enable); | 90 void SetFocusAndActivate(RenderView* render_view, bool enable); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 void DisableAutoResizeMode(RenderView* render_view, | 128 void DisableAutoResizeMode(RenderView* render_view, |
| 133 const blink::WebSize& new_size); | 129 const blink::WebSize& new_size); |
| 134 | 130 |
| 135 // Provides a text dump of the contents of the given page state. | 131 // Provides a text dump of the contents of the given page state. |
| 136 std::string DumpBackForwardList(std::vector<PageState>& page_state, | 132 std::string DumpBackForwardList(std::vector<PageState>& page_state, |
| 137 size_t current_index); | 133 size_t current_index); |
| 138 | 134 |
| 139 } // namespace content | 135 } // namespace content |
| 140 | 136 |
| 141 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 137 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| OLD | NEW |