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

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

Issue 336823002: [DeviceLight] Add Layout support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unrelated changes Created 6 years, 5 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 | « no previous file | content/shell/renderer/test_runner/WebTestDelegate.h » ('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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 30 matching lines...) Expand all
41 41
42 // Enable injecting of a WebTestProxy between WebViews and RenderViews. 42 // Enable injecting of a WebTestProxy between WebViews and RenderViews.
43 // |callback| is invoked with a pointer to WebTestProxyBase for each created 43 // |callback| is invoked with a pointer to WebTestProxyBase for each created
44 // WebTestProxy. 44 // WebTestProxy.
45 void EnableWebTestProxyCreation( 45 void EnableWebTestProxyCreation(
46 const base::Callback<void(RenderView*, WebTestProxyBase*)>& callback); 46 const base::Callback<void(RenderView*, WebTestProxyBase*)>& callback);
47 47
48 // Sets gamepad provider to be used for layout tests. 48 // Sets gamepad provider to be used for layout tests.
49 void SetMockGamepadProvider(RendererGamepadProvider* provider); 49 void SetMockGamepadProvider(RendererGamepadProvider* provider);
50 50
51 // Sets a double that should be used when registering
52 // a listener through WebKitPlatformSupport::setDeviceLightListener().
53 void SetMockDeviceLightData(const double data);
54
51 // Sets WebDeviceMotionData that should be used when registering 55 // Sets WebDeviceMotionData that should be used when registering
52 // a listener through WebKitPlatformSupport::setDeviceMotionListener(). 56 // a listener through WebKitPlatformSupport::setDeviceMotionListener().
53 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); 57 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data);
54 58
55 // Sets WebDeviceOrientationData that should be used when registering 59 // Sets WebDeviceOrientationData that should be used when registering
56 // a listener through WebKitPlatformSupport::setDeviceOrientationListener(). 60 // a listener through WebKitPlatformSupport::setDeviceOrientationListener().
57 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); 61 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data);
58 62
59 // Notifies blink that battery status has changed. 63 // Notifies blink that battery status has changed.
60 void MockBatteryStatusChanged(const blink::WebBatteryStatus& status); 64 void MockBatteryStatusChanged(const blink::WebBatteryStatus& status);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // 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.
98 std::string DumpBackForwardList(std::vector<PageState>& page_state, 102 std::string DumpBackForwardList(std::vector<PageState>& page_state,
99 size_t current_index); 103 size_t current_index);
100 104
101 // Instantiates WebLayerImpl for TestPlugin. 105 // Instantiates WebLayerImpl for TestPlugin.
102 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer); 106 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer);
103 107
104 } // namespace content 108 } // namespace content
105 109
106 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 110 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/WebTestDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698