Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: components/test_runner/test_runner_for_specific_view.h

Issue 2034393003: testRunner.layoutAndPaintAsyncThen ==> testRunner.compositeAsyncThen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_FOR_SPECIFIC_VIEW_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_
6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void PostV8CallbackWithArgs(v8::UniquePersistent<v8::Function> callback, 65 void PostV8CallbackWithArgs(v8::UniquePersistent<v8::Function> callback,
66 int argc, 66 int argc,
67 v8::Local<v8::Value> argv[]); 67 v8::Local<v8::Value> argv[]);
68 void InvokeV8Callback(const v8::UniquePersistent<v8::Function>& callback); 68 void InvokeV8Callback(const v8::UniquePersistent<v8::Function>& callback);
69 void InvokeV8CallbackWithArgs( 69 void InvokeV8CallbackWithArgs(
70 const v8::UniquePersistent<v8::Function>& callback, 70 const v8::UniquePersistent<v8::Function>& callback,
71 const std::vector<v8::UniquePersistent<v8::Value>>& args); 71 const std::vector<v8::UniquePersistent<v8::Value>>& args);
72 base::Closure CreateClosureThatPostsV8Callback( 72 base::Closure CreateClosureThatPostsV8Callback(
73 const v8::Local<v8::Function>& callback); 73 const v8::Local<v8::Function>& callback);
74 74
75 void LayoutAndPaintAsync(); 75 // Updates all lifecycles of the WebView and schedules an asynchronous
76 void LayoutAndPaintAsyncThen(v8::Local<v8::Function> callback); 76 // composite. Will invoke the callback when compositing finishes.
77 void CompositeAsyncThen(v8::Local<v8::Function> callback);
77 78
78 // Similar to LayoutAndPaintAsyncThen(), but pass parameters of the captured 79 // Similar to CompositeAsyncThen(), but pass parameters of the captured
79 // snapshot (width, height, snapshot) to the callback. The snapshot is in 80 // snapshot (width, height, snapshot) to the callback. The snapshot is in
80 // uint8_t RGBA format. 81 // uint8_t RGBA format.
81 void CapturePixelsAsyncThen(v8::Local<v8::Function> callback); 82 void CapturePixelsAsyncThen(v8::Local<v8::Function> callback);
82 void CapturePixelsCallback(v8::UniquePersistent<v8::Function> callback, 83 void CapturePixelsCallback(v8::UniquePersistent<v8::Function> callback,
83 const SkBitmap& snapshot); 84 const SkBitmap& snapshot);
84 85
85 // Similar to CapturePixelsAsyncThen(). Copies to the clipboard the image 86 // Similar to CapturePixelsAsyncThen(). Copies to the clipboard the image
86 // located at a particular point in the WebView (if there is such an image), 87 // located at a particular point in the WebView (if there is such an image),
87 // reads back its pixels, and provides the snapshot to the callback. If there 88 // reads back its pixels, and provides the snapshot to the callback. If there
88 // is no image at that point, calls the callback with (0, 0, empty_snapshot). 89 // is no image at that point, calls the callback with (0, 0, empty_snapshot).
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 WebTestProxyBase* web_test_proxy_base_; 224 WebTestProxyBase* web_test_proxy_base_;
224 225
225 base::WeakPtrFactory<TestRunnerForSpecificView> weak_factory_; 226 base::WeakPtrFactory<TestRunnerForSpecificView> weak_factory_;
226 227
227 DISALLOW_COPY_AND_ASSIGN(TestRunnerForSpecificView); 228 DISALLOW_COPY_AND_ASSIGN(TestRunnerForSpecificView);
228 }; 229 };
229 230
230 } // namespace test_runner 231 } // namespace test_runner
231 232
232 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ 233 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.gyp ('k') | components/test_runner/test_runner_for_specific_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698