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

Side by Side Diff: content/shell/renderer/test_runner/WebTestDelegate.h

Issue 446603002: Refactor code listening to platform events in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webkitplatform_impl_start_stop
Patch Set: rebase Created 6 years, 4 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 26 matching lines...) Expand all
37 struct TestPreferences; 37 struct TestPreferences;
38 38
39 class WebTestDelegate { 39 class WebTestDelegate {
40 public: 40 public:
41 // Set and clear the edit command to execute on the next call to 41 // Set and clear the edit command to execute on the next call to
42 // WebViewClient::handleCurrentKeyboardEvent(). 42 // WebViewClient::handleCurrentKeyboardEvent().
43 virtual void clearEditCommand() = 0; 43 virtual void clearEditCommand() = 0;
44 virtual void setEditCommand(const std::string& name, const std::string& valu e) = 0; 44 virtual void setEditCommand(const std::string& name, const std::string& valu e) = 0;
45 45
46 // Sets gamepad provider to be used for tests. 46 // Sets gamepad provider to be used for tests.
47 virtual void setGamepadProvider(RendererGamepadProvider*) = 0; 47 virtual void setGamepadProvider(scoped_ptr<RendererGamepadProvider>) = 0;
48 48
49 // Set data to return when registering via 49 // Set data to return when registering via
50 // Platform::setDeviceLightListener(). 50 // Platform::setDeviceLightListener().
51 virtual void setDeviceLightData(const double) = 0; 51 virtual void setDeviceLightData(const double) = 0;
52 // Set data to return when registering via 52 // Set data to return when registering via
53 // Platform::setDeviceMotionListener(). 53 // Platform::setDeviceMotionListener().
54 virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0; 54 virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0;
55 // Set data to return when registering via Platform::setDeviceOrientationLis tener(). 55 // Set data to return when registering via Platform::setDeviceOrientationLis tener().
56 virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData& ) = 0; 56 virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData& ) = 0;
57 57
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 virtual bool allowExternalPages() = 0; 166 virtual bool allowExternalPages() = 0;
167 167
168 // Returns a text dump the back/forward history for the WebView associated 168 // Returns a text dump the back/forward history for the WebView associated
169 // with the given WebTestProxyBase. 169 // with the given WebTestProxyBase.
170 virtual std::string dumpHistoryForWindow(WebTestProxyBase*) = 0; 170 virtual std::string dumpHistoryForWindow(WebTestProxyBase*) = 0;
171 }; 171 };
172 172
173 } // namespace content 173 } // namespace content
174 174
175 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ 175 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698