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

Side by Side Diff: content/public/test/layouttest_support.h

Issue 1740843002: Revert of Migrates battery_status from content/renderer/ to WebKit/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/battery_status/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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;
20 class WebDeviceMotionData; 21 class WebDeviceMotionData;
21 class WebDeviceOrientationData; 22 class WebDeviceOrientationData;
22 class WebGamepad; 23 class WebGamepad;
23 class WebGamepads; 24 class WebGamepads;
24 class WebLayer; 25 class WebLayer;
25 struct WebSize; 26 struct WebSize;
26 class WebView; 27 class WebView;
27 class WebURLResponse; 28 class WebURLResponse;
28 } 29 }
29 30
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void SetMockDeviceLightData(const double data); 72 void SetMockDeviceLightData(const double data);
72 73
73 // Sets WebDeviceMotionData that should be used when registering 74 // Sets WebDeviceMotionData that should be used when registering
74 // a listener through BlinkPlatformImpl::setDeviceMotionListener(). 75 // a listener through BlinkPlatformImpl::setDeviceMotionListener().
75 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); 76 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data);
76 77
77 // Sets WebDeviceOrientationData that should be used when registering 78 // Sets WebDeviceOrientationData that should be used when registering
78 // a listener through BlinkPlatformImpl::setDeviceOrientationListener(). 79 // a listener through BlinkPlatformImpl::setDeviceOrientationListener().
79 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); 80 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data);
80 81
82 // Notifies blink that battery status has changed.
83 void MockBatteryStatusChanged(const blink::WebBatteryStatus& status);
84
81 // Returns the length of the local session history of a render view. 85 // Returns the length of the local session history of a render view.
82 int GetLocalSessionHistoryLength(RenderView* render_view); 86 int GetLocalSessionHistoryLength(RenderView* render_view);
83 87
84 // Sync the current session history to the browser process. 88 // Sync the current session history to the browser process.
85 void SyncNavigationState(RenderView* render_view); 89 void SyncNavigationState(RenderView* render_view);
86 90
87 // Sets the focus of the render view depending on |enable|. This only overrides 91 // Sets the focus of the render view depending on |enable|. This only overrides
88 // the state of the renderer, and does not sync the focus to the browser 92 // the state of the renderer, and does not sync the focus to the browser
89 // process. 93 // process.
90 void SetFocusAndActivate(RenderView* render_view, bool enable); 94 void SetFocusAndActivate(RenderView* render_view, bool enable);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void DisableAutoResizeMode(RenderView* render_view, 132 void DisableAutoResizeMode(RenderView* render_view,
129 const blink::WebSize& new_size); 133 const blink::WebSize& new_size);
130 134
131 // Provides a text dump of the contents of the given page state. 135 // Provides a text dump of the contents of the given page state.
132 std::string DumpBackForwardList(std::vector<PageState>& page_state, 136 std::string DumpBackForwardList(std::vector<PageState>& page_state,
133 size_t current_index); 137 size_t current_index);
134 138
135 } // namespace content 139 } // namespace content
136 140
137 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 141 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/battery_status/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698