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

Side by Side Diff: content/shell/renderer/test_runner/WebTestDelegate.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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" 10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
(...skipping 11 matching lines...) Expand all
22 class WebGamepad; 22 class WebGamepad;
23 class WebGamepads; 23 class WebGamepads;
24 class WebHistoryItem; 24 class WebHistoryItem;
25 struct WebRect; 25 struct WebRect;
26 struct WebSize; 26 struct WebSize;
27 struct WebURLError; 27 struct WebURLError;
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 31
32 class DeviceLightData;
32 class RendererGamepadProvider; 33 class RendererGamepadProvider;
33 class WebTask; 34 class WebTask;
34 class WebTestProxyBase; 35 class WebTestProxyBase;
35 struct TestPreferences; 36 struct TestPreferences;
36 37
37 class WebTestDelegate { 38 class WebTestDelegate {
38 public: 39 public:
39 // Set and clear the edit command to execute on the next call to 40 // Set and clear the edit command to execute on the next call to
40 // WebViewClient::handleCurrentKeyboardEvent(). 41 // WebViewClient::handleCurrentKeyboardEvent().
41 virtual void clearEditCommand() = 0; 42 virtual void clearEditCommand() = 0;
42 virtual void setEditCommand(const std::string& name, const std::string& valu e) = 0; 43 virtual void setEditCommand(const std::string& name, const std::string& valu e) = 0;
43 44
44 // Sets gamepad provider to be used for tests. 45 // Sets gamepad provider to be used for tests.
45 virtual void setGamepadProvider(RendererGamepadProvider*) = 0; 46 virtual void setGamepadProvider(RendererGamepadProvider*) = 0;
46 47
47 // Set data to return when registering via Platform::setDeviceMotionListener (). 48 // Set data to return when registering via
49 // Platform::setDeviceLightListener().
50 virtual void setDeviceLightData(const double) = 0;
51 // Set data to return when registering via
52 // Platform::setDeviceMotionListener().
48 virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0; 53 virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0;
49 // Set data to return when registering via Platform::setDeviceOrientationLis tener(). 54 // Set data to return when registering via Platform::setDeviceOrientationLis tener().
50 virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData& ) = 0; 55 virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData& ) = 0;
51 56
52 // Set orientation to set when registering via Platform::setScreenOrientatio nListener(). 57 // Set orientation to set when registering via Platform::setScreenOrientatio nListener().
53 virtual void setScreenOrientation(const blink::WebScreenOrientationType&) = 0; 58 virtual void setScreenOrientation(const blink::WebScreenOrientationType&) = 0;
54 59
55 // Reset the screen orientation data used for testing. 60 // Reset the screen orientation data used for testing.
56 virtual void resetScreenOrientation() = 0; 61 virtual void resetScreenOrientation() = 0;
57 62
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 virtual bool allowExternalPages() = 0; 158 virtual bool allowExternalPages() = 0;
154 159
155 // Returns a text dump the back/forward history for the WebView associated 160 // Returns a text dump the back/forward history for the WebView associated
156 // with the given WebTestProxyBase. 161 // with the given WebTestProxyBase.
157 virtual std::string dumpHistoryForWindow(WebTestProxyBase*) = 0; 162 virtual std::string dumpHistoryForWindow(WebTestProxyBase*) = 0;
158 }; 163 };
159 164
160 } // namespace content 165 } // namespace content
161 166
162 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ 167 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/shell/renderer/test_runner/test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698