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

Unified Diff: components/test_runner/pixel_dump.h

Issue 1842353002: Revert of Moving pixel-capturing code from web_test_proxy_base.* into pixel_dump.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replicating-accept-languages
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/layout_test_runtime_flags.cc ('k') | components/test_runner/pixel_dump.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/pixel_dump.h
diff --git a/components/test_runner/pixel_dump.h b/components/test_runner/pixel_dump.h
deleted file mode 100644
index 8330925063fc7bd8812e7691dd03a0844c4dd239..0000000000000000000000000000000000000000
--- a/components/test_runner/pixel_dump.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_TEST_RUNNER_PIXEL_DUMP_H_
-#define COMPONENTS_TEST_RUNNER_PIXEL_DUMP_H_
-
-#include "base/callback_forward.h"
-#include "components/test_runner/test_runner_export.h"
-
-class SkBitmap;
-
-namespace blink {
-class WebView;
-} // namespace blink
-
-namespace test_runner {
-
-class LayoutTestRuntimeFlags;
-
-// Dumps image snapshot of |web_view|. Exact dump mode depends on |flags| (i.e.
-// dump_selection_rect and/or is_printing). Caller needs to ensure that
-// |layout_test_runtime_flags| stays alive until |callback| gets called.
-TEST_RUNNER_EXPORT void DumpPixelsAsync(
- blink::WebView* web_view,
- const LayoutTestRuntimeFlags& layout_test_runtime_flags,
- float device_scale_factor_for_test,
- const base::Callback<void(const SkBitmap&)>& callback);
-
-// Copy to clipboard the image present at |x|, |y| coordinates in |web_view|
-// and pass the captured image to |callback|.
-void CopyImageAtAndCapturePixels(
- blink::WebView* web_view,
- int x,
- int y,
- const base::Callback<void(const SkBitmap&)>& callback);
-
-} // namespace test_runner
-
-#endif // COMPONENTS_TEST_RUNNER_PIXEL_DUMP_H_
« no previous file with comments | « components/test_runner/layout_test_runtime_flags.cc ('k') | components/test_runner/pixel_dump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698