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

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

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_TEST_RUNNER_PIXEL_DUMP_H_
6 #define COMPONENTS_TEST_RUNNER_PIXEL_DUMP_H_
7
8 #include "base/callback_forward.h"
9 #include "components/test_runner/test_runner_export.h"
10
11 class SkBitmap;
12
13 namespace blink {
14 class WebView;
15 } // namespace blink
16
17 namespace test_runner {
18
19 class LayoutTestRuntimeFlags;
20
21 // Dumps image snapshot of |web_view|. Exact dump mode depends on |flags| (i.e.
22 // dump_selection_rect and/or is_printing). Caller needs to ensure that
23 // |layout_test_runtime_flags| stays alive until |callback| gets called.
24 TEST_RUNNER_EXPORT void DumpPixelsAsync(
25 blink::WebView* web_view,
26 const LayoutTestRuntimeFlags& layout_test_runtime_flags,
27 float device_scale_factor_for_test,
28 const base::Callback<void(const SkBitmap&)>& callback);
29
30 // Copy to clipboard the image present at |x|, |y| coordinates in |web_view|
31 // and pass the captured image to |callback|.
32 void CopyImageAtAndCapturePixels(
33 blink::WebView* web_view,
34 int x,
35 int y,
36 const base::Callback<void(const SkBitmap&)>& callback);
37
38 } // namespace test_runner
39
40 #endif // COMPONENTS_TEST_RUNNER_PIXEL_DUMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698