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_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
6 #define CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 6 #define CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.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 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 17 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
18 | 18 |
19 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE | 19 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE |
20 | 20 |
| 21 class SkBitmap; |
| 22 |
21 namespace base { | 23 namespace base { |
22 class DictionaryValue; | 24 class DictionaryValue; |
23 } | 25 } |
24 | 26 |
25 namespace blink { | 27 namespace blink { |
26 class WebInputEvent; | 28 class WebInputEvent; |
27 class WebLocalFrame; | 29 class WebLocalFrame; |
28 class WebMediaStream; | 30 class WebMediaStream; |
29 class WebPlugin; | 31 class WebPlugin; |
30 struct WebPluginParams; | 32 struct WebPluginParams; |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 296 |
295 // Forces a text input state update for the client of WebFrameWidget | 297 // Forces a text input state update for the client of WebFrameWidget |
296 // associated with |frame|. | 298 // associated with |frame|. |
297 virtual void ForceTextInputStateUpdate(blink::WebLocalFrame* frame) = 0; | 299 virtual void ForceTextInputStateUpdate(blink::WebLocalFrame* frame) = 0; |
298 | 300 |
299 // PlzNavigate | 301 // PlzNavigate |
300 // Indicates if the navigation was initiated by the browser or renderer. | 302 // Indicates if the navigation was initiated by the browser or renderer. |
301 virtual bool IsNavigationInitiatedByRenderer( | 303 virtual bool IsNavigationInitiatedByRenderer( |
302 const blink::WebURLRequest& request) = 0; | 304 const blink::WebURLRequest& request) = 0; |
303 | 305 |
| 306 // Asks the delegate to take a pixels dump of the whole page (including OOPIFs |
| 307 // if any) and to pass the result to |callback|. |
| 308 virtual void DumpPixelsAsync( |
| 309 base::OnceCallback<void(const SkBitmap&)> callback); |
| 310 |
304 protected: | 311 protected: |
305 virtual ~WebTestDelegate() {} | 312 virtual ~WebTestDelegate() {} |
306 }; | 313 }; |
307 | 314 |
308 } // namespace test_runner | 315 } // namespace test_runner |
309 | 316 |
310 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 317 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |