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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
536 void RemoveWebPageOverlay(); | 536 void RemoveWebPageOverlay(); |
537 | 537 |
538 void DisplayAsync(); | 538 void DisplayAsync(); |
539 void DisplayAsyncThen(v8::Handle<v8::Function> callback); | 539 void DisplayAsyncThen(v8::Handle<v8::Function> callback); |
540 | 540 |
541 // Similar to DisplayAsyncThen(), but pass parameters of the captured | 541 // Similar to DisplayAsyncThen(), but pass parameters of the captured |
542 // snapshot (width, height, snapshot) to the callback. The snapshot is in | 542 // snapshot (width, height, snapshot) to the callback. The snapshot is in |
543 // uint8 RGBA format. | 543 // uint8 RGBA format. |
544 void CapturePixelsAsyncThen(v8::Handle<v8::Function> callback); | 544 void CapturePixelsAsyncThen(v8::Handle<v8::Function> callback); |
545 | 545 |
546 void CopyAtAndCapturePixelsAsyncThen(int x, int y, const v8::Handle<v8::Functi on> callback); | |
Ken Russell (switch to Gerrit)
2014/07/16 20:40:50
Please document this. "Similar to CapturePixelsAsy
hj.r.chung
2014/07/17 05:33:40
Done. Thanks for writing the description!
| |
547 | |
546 void SetMockPushClientSuccess(const std::string& endpoint, | 548 void SetMockPushClientSuccess(const std::string& endpoint, |
547 const std::string& registration_id); | 549 const std::string& registration_id); |
548 void SetMockPushClientError(const std::string& message); | 550 void SetMockPushClientError(const std::string& message); |
549 | 551 |
550 /////////////////////////////////////////////////////////////////////////// | 552 /////////////////////////////////////////////////////////////////////////// |
551 // Internal helpers | 553 // Internal helpers |
552 | 554 |
553 void CapturePixelsCallback(scoped_ptr<InvokeCallbackTask> task, | 555 void CapturePixelsCallback(scoped_ptr<InvokeCallbackTask> task, |
554 const SkBitmap& snapshot); | 556 const SkBitmap& snapshot); |
555 | 557 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
755 bool use_mock_theme_; | 757 bool use_mock_theme_; |
756 | 758 |
757 base::WeakPtrFactory<TestRunner> weak_factory_; | 759 base::WeakPtrFactory<TestRunner> weak_factory_; |
758 | 760 |
759 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 761 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
760 }; | 762 }; |
761 | 763 |
762 } // namespace content | 764 } // namespace content |
763 | 765 |
764 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 766 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |