| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 const std::string& avatar, | 565 const std::string& avatar, |
| 566 const std::string& password); | 566 const std::string& password); |
| 567 | 567 |
| 568 // WebPageOverlay related functions. Permits the adding and removing of only | 568 // WebPageOverlay related functions. Permits the adding and removing of only |
| 569 // one opaque overlay. | 569 // one opaque overlay. |
| 570 void AddWebPageOverlay(); | 570 void AddWebPageOverlay(); |
| 571 void RemoveWebPageOverlay(); | 571 void RemoveWebPageOverlay(); |
| 572 | 572 |
| 573 void LayoutAndPaintAsync(); | 573 void LayoutAndPaintAsync(); |
| 574 void LayoutAndPaintAsyncThen(v8::Local<v8::Function> callback); | 574 void LayoutAndPaintAsyncThen(v8::Local<v8::Function> callback); |
| 575 // TODO(wangxianzhu): Remove the following two methods after all blink | |
| 576 // layout tests are modified to use the above two new functions. | |
| 577 void DisplayAsync(); | |
| 578 void DisplayAsyncThen(v8::Local<v8::Function> callback); | |
| 579 | 575 |
| 580 // Similar to LayoutAndPaintAsyncThen(), but pass parameters of the captured | 576 // Similar to LayoutAndPaintAsyncThen(), but pass parameters of the captured |
| 581 // snapshot (width, height, snapshot) to the callback. The snapshot is in | 577 // snapshot (width, height, snapshot) to the callback. The snapshot is in |
| 582 // uint8 RGBA format. | 578 // uint8 RGBA format. |
| 583 void CapturePixelsAsyncThen(v8::Local<v8::Function> callback); | 579 void CapturePixelsAsyncThen(v8::Local<v8::Function> callback); |
| 584 // Similar to CapturePixelsAsyncThen(). Copies to the clipboard the image | 580 // Similar to CapturePixelsAsyncThen(). Copies to the clipboard the image |
| 585 // located at a particular point in the WebView (if there is such an image), | 581 // located at a particular point in the WebView (if there is such an image), |
| 586 // reads back its pixels, and provides the snapshot to the callback. If there | 582 // reads back its pixels, and provides the snapshot to the callback. If there |
| 587 // is no image at that point, calls the callback with (0, 0, empty_snapshot). | 583 // is no image at that point, calls the callback with (0, 0, empty_snapshot). |
| 588 void CopyImageAtAndCapturePixelsAsyncThen( | 584 void CopyImageAtAndCapturePixelsAsyncThen( |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 bool use_mock_theme_; | 802 bool use_mock_theme_; |
| 807 | 803 |
| 808 base::WeakPtrFactory<TestRunner> weak_factory_; | 804 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 809 | 805 |
| 810 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 806 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 811 }; | 807 }; |
| 812 | 808 |
| 813 } // namespace content | 809 } // namespace content |
| 814 | 810 |
| 815 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 811 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |