OLD | NEW |
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/WebScreenOrientation.h" | 10 #include "third_party/WebKit/public/platform/WebScreenOrientation.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // Notifies blink about a new gamepad. | 45 // Notifies blink about a new gamepad. |
46 virtual void didConnectGamepad(int index, const blink::WebGamepad&) = 0; | 46 virtual void didConnectGamepad(int index, const blink::WebGamepad&) = 0; |
47 | 47 |
48 // Notifies blink that a gamepad has been disconnected. | 48 // Notifies blink that a gamepad has been disconnected. |
49 virtual void didDisconnectGamepad(int index, const blink::WebGamepad&) = 0; | 49 virtual void didDisconnectGamepad(int index, const blink::WebGamepad&) = 0; |
50 | 50 |
51 // Set data to return when registering via Platform::setDeviceMotionListener
(). | 51 // Set data to return when registering via Platform::setDeviceMotionListener
(). |
52 virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0; | 52 virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0; |
53 // Set data to return when registering via Platform::setDeviceOrientationLis
tener(). | 53 // Set data to return when registering via Platform::setDeviceOrientationLis
tener(). |
54 virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData&
) = 0; | 54 virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData&
) = 0; |
| 55 // Set data to return when registering via Platform::setDeviceLightListener(
). |
| 56 virtual void setDeviceLightData(const double&) = 0; |
55 | 57 |
56 // Set orientation to set when registering via Platform::setScreenOrientatio
nListener(). | 58 // Set orientation to set when registering via Platform::setScreenOrientatio
nListener(). |
57 virtual void setScreenOrientation(const blink::WebScreenOrientation&) = 0; | 59 virtual void setScreenOrientation(const blink::WebScreenOrientation&) = 0; |
58 | 60 |
59 // Add a message to the text dump for the layout test. | 61 // Add a message to the text dump for the layout test. |
60 virtual void printMessage(const std::string& message) = 0; | 62 virtual void printMessage(const std::string& message) = 0; |
61 | 63 |
62 // The delegate takes ownership of the WebTask objects and is responsible | 64 // The delegate takes ownership of the WebTask objects and is responsible |
63 // for deleting them. | 65 // for deleting them. |
64 virtual void postTask(WebTask*) = 0; | 66 virtual void postTask(WebTask*) = 0; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 virtual bool allowExternalPages() = 0; | 149 virtual bool allowExternalPages() = 0; |
148 | 150 |
149 // Returns the back/forward history for the WebView associated with the | 151 // Returns the back/forward history for the WebView associated with the |
150 // given WebTestProxyBase as well as the index of the current entry. | 152 // given WebTestProxyBase as well as the index of the current entry. |
151 virtual void captureHistoryForWindow(WebTestProxyBase*, blink::WebVector<bli
nk::WebHistoryItem>*, size_t* currentEntryIndex) = 0; | 153 virtual void captureHistoryForWindow(WebTestProxyBase*, blink::WebVector<bli
nk::WebHistoryItem>*, size_t* currentEntryIndex) = 0; |
152 }; | 154 }; |
153 | 155 |
154 } | 156 } |
155 | 157 |
156 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ | 158 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ |
OLD | NEW |