| 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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 // located at a particular point in the WebView (if there is such an image), | 551 // located at a particular point in the WebView (if there is such an image), |
| 552 // reads back its pixels, and provides the snapshot to the callback. If there | 552 // reads back its pixels, and provides the snapshot to the callback. If there |
| 553 // is no image at that point, calls the callback with (0, 0, empty_snapshot). | 553 // is no image at that point, calls the callback with (0, 0, empty_snapshot). |
| 554 void CopyImageAtAndCapturePixelsAsyncThen( | 554 void CopyImageAtAndCapturePixelsAsyncThen( |
| 555 int x, int y, const v8::Handle<v8::Function> callback); | 555 int x, int y, const v8::Handle<v8::Function> callback); |
| 556 | 556 |
| 557 void SetMockPushClientSuccess(const std::string& endpoint, | 557 void SetMockPushClientSuccess(const std::string& endpoint, |
| 558 const std::string& registration_id); | 558 const std::string& registration_id); |
| 559 void SetMockPushClientError(const std::string& message); | 559 void SetMockPushClientError(const std::string& message); |
| 560 | 560 |
| 561 void RequestEcho(int id, int size); |
| 562 int GetLastEchoId() const; |
| 563 int GetLastEchoSize() const; |
| 564 |
| 561 /////////////////////////////////////////////////////////////////////////// | 565 /////////////////////////////////////////////////////////////////////////// |
| 562 // Internal helpers | 566 // Internal helpers |
| 563 | 567 |
| 564 void CapturePixelsCallback(scoped_ptr<InvokeCallbackTask> task, | 568 void CapturePixelsCallback(scoped_ptr<InvokeCallbackTask> task, |
| 565 const SkBitmap& snapshot); | 569 const SkBitmap& snapshot); |
| 566 | 570 |
| 567 void CheckResponseMimeType(); | 571 void CheckResponseMimeType(); |
| 568 void CompleteNotifyDone(); | 572 void CompleteNotifyDone(); |
| 569 | 573 |
| 570 void DidAcquirePointerLockInternal(); | 574 void DidAcquirePointerLockInternal(); |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 bool use_mock_theme_; | 770 bool use_mock_theme_; |
| 767 | 771 |
| 768 base::WeakPtrFactory<TestRunner> weak_factory_; | 772 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 769 | 773 |
| 770 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 774 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 771 }; | 775 }; |
| 772 | 776 |
| 773 } // namespace content | 777 } // namespace content |
| 774 | 778 |
| 775 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 779 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |