| 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_WEB_TEST_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" | 13 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" |
| 14 #include "third_party/WebKit/public/platform/WebString.h" | 14 #include "third_party/WebKit/public/platform/WebString.h" |
| 15 #include "third_party/WebKit/public/platform/WebURL.h" | 15 #include "third_party/WebKit/public/platform/WebURL.h" |
| 16 #include "third_party/WebKit/public/platform/WebVector.h" | 16 #include "third_party/WebKit/public/platform/WebVector.h" |
| 17 | 17 |
| 18 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE | 18 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 class WebBatteryStatus; | 21 class WebBatteryStatus; |
| 22 class WebDeviceMotionData; | 22 class WebDeviceMotionData; |
| 23 class WebDeviceOrientationData; | 23 class WebDeviceOrientationData; |
| 24 class WebFrame; | 24 class WebFrame; |
| 25 class WebGamepad; | 25 class WebGamepad; |
| 26 class WebGamepads; | 26 class WebGamepads; |
| 27 class WebHistoryItem; | 27 class WebHistoryItem; |
| 28 class WebLayer; | 28 class WebLayer; |
| 29 class WebLocalFrame; |
| 30 class WebPlugin; |
| 31 struct WebPluginParams; |
| 29 class WebURLResponse; | 32 class WebURLResponse; |
| 30 class WebView; | 33 class WebView; |
| 31 struct WebRect; | 34 struct WebRect; |
| 32 struct WebSize; | 35 struct WebSize; |
| 33 struct WebURLError; | 36 struct WebURLError; |
| 34 } | 37 } |
| 35 | 38 |
| 36 namespace cc { | 39 namespace cc { |
| 37 class TextureLayer; | 40 class TextureLayer; |
| 38 class TextureLayerClient; | 41 class TextureLayerClient; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 const std::vector<std::string>& event_platforms, | 246 const std::vector<std::string>& event_platforms, |
| 244 const base::Callback<void(bool)>& callback) = 0; | 247 const base::Callback<void(bool)>& callback) = 0; |
| 245 | 248 |
| 246 // Resolve the promise associated with the beforeinstallprompt even with | 249 // Resolve the promise associated with the beforeinstallprompt even with |
| 247 // request id |request_id|. The promise is resolved with a result.platform set | 250 // request id |request_id|. The promise is resolved with a result.platform set |
| 248 // to |platform|. If |platform| is not empty, result.outcome will be | 251 // to |platform|. If |platform| is not empty, result.outcome will be |
| 249 // 'accepted', otherwise it will be 'dismissed'. | 252 // 'accepted', otherwise it will be 'dismissed'. |
| 250 virtual void ResolveBeforeInstallPromptPromise( | 253 virtual void ResolveBeforeInstallPromptPromise( |
| 251 int request_id, | 254 int request_id, |
| 252 const std::string& platform) = 0; | 255 const std::string& platform) = 0; |
| 256 |
| 257 virtual blink::WebPlugin* CreatePluginPlaceholder( |
| 258 blink::WebLocalFrame* frame, |
| 259 const blink::WebPluginParams& params) = 0; |
| 253 }; | 260 }; |
| 254 | 261 |
| 255 } // namespace content | 262 } // namespace content |
| 256 | 263 |
| 257 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 264 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |