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 COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <deque> | 10 #include <deque> |
9 #include <set> | 11 #include <set> |
10 #include <string> | 12 #include <string> |
11 #include <vector> | 13 #include <vector> |
12 | 14 |
| 15 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
15 #include "components/test_runner/test_runner_export.h" | 18 #include "components/test_runner/test_runner_export.h" |
16 #include "components/test_runner/web_task.h" | 19 #include "components/test_runner/web_task.h" |
17 #include "components/test_runner/web_test_runner.h" | 20 #include "components/test_runner/web_test_runner.h" |
18 #include "v8/include/v8.h" | 21 #include "v8/include/v8.h" |
19 | 22 |
20 class GURL; | 23 class GURL; |
21 class SkBitmap; | 24 class SkBitmap; |
22 | 25 |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 // WebPageOverlay related functions. Permits the adding and removing of only | 605 // WebPageOverlay related functions. Permits the adding and removing of only |
603 // one opaque overlay. | 606 // one opaque overlay. |
604 void AddWebPageOverlay(); | 607 void AddWebPageOverlay(); |
605 void RemoveWebPageOverlay(); | 608 void RemoveWebPageOverlay(); |
606 | 609 |
607 void LayoutAndPaintAsync(); | 610 void LayoutAndPaintAsync(); |
608 void LayoutAndPaintAsyncThen(v8::Local<v8::Function> callback); | 611 void LayoutAndPaintAsyncThen(v8::Local<v8::Function> callback); |
609 | 612 |
610 // Similar to LayoutAndPaintAsyncThen(), but pass parameters of the captured | 613 // Similar to LayoutAndPaintAsyncThen(), but pass parameters of the captured |
611 // snapshot (width, height, snapshot) to the callback. The snapshot is in | 614 // snapshot (width, height, snapshot) to the callback. The snapshot is in |
612 // uint8 RGBA format. | 615 // uint8_t RGBA format. |
613 void CapturePixelsAsyncThen(v8::Local<v8::Function> callback); | 616 void CapturePixelsAsyncThen(v8::Local<v8::Function> callback); |
614 // Similar to CapturePixelsAsyncThen(). Copies to the clipboard the image | 617 // Similar to CapturePixelsAsyncThen(). Copies to the clipboard the image |
615 // located at a particular point in the WebView (if there is such an image), | 618 // located at a particular point in the WebView (if there is such an image), |
616 // reads back its pixels, and provides the snapshot to the callback. If there | 619 // reads back its pixels, and provides the snapshot to the callback. If there |
617 // is no image at that point, calls the callback with (0, 0, empty_snapshot). | 620 // is no image at that point, calls the callback with (0, 0, empty_snapshot). |
618 void CopyImageAtAndCapturePixelsAsyncThen( | 621 void CopyImageAtAndCapturePixelsAsyncThen( |
619 int x, int y, const v8::Local<v8::Function> callback); | 622 int x, int y, const v8::Local<v8::Function> callback); |
620 | 623 |
621 void GetManifestThen(v8::Local<v8::Function> callback); | 624 void GetManifestThen(v8::Local<v8::Function> callback); |
622 | 625 |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 bool use_mock_theme_; | 842 bool use_mock_theme_; |
840 | 843 |
841 base::WeakPtrFactory<TestRunner> weak_factory_; | 844 base::WeakPtrFactory<TestRunner> weak_factory_; |
842 | 845 |
843 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 846 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
844 }; | 847 }; |
845 | 848 |
846 } // namespace test_runner | 849 } // namespace test_runner |
847 | 850 |
848 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 851 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |