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

Unified Diff: components/test_runner/web_test_proxy.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/web_test_delegate.h ('k') | components/test_runner/web_test_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_test_proxy.h
diff --git a/components/test_runner/web_test_proxy.h b/components/test_runner/web_test_proxy.h
index a9b86c0e472aa40314c0892681963e7acb3e77cf..443cd7e8506bbd88c3b9b5033ca2202d5021d7da 100644
--- a/components/test_runner/web_test_proxy.h
+++ b/components/test_runner/web_test_proxy.h
@@ -13,6 +13,7 @@
#include "build/build_config.h"
#include "components/test_runner/test_runner_export.h"
#include "components/test_runner/web_task.h"
+#include "third_party/WebKit/public/platform/WebImage.h"
#include "third_party/WebKit/public/platform/WebRect.h"
#include "third_party/WebKit/public/platform/WebScreenInfo.h"
#include "third_party/WebKit/public/platform/WebURLError.h"
@@ -23,10 +24,12 @@
#include "third_party/WebKit/public/web/WebNavigationPolicy.h"
#include "third_party/WebKit/public/web/WebTextDirection.h"
+class SkBitmap;
+class SkCanvas;
+
namespace blink {
class WebDragData;
class WebFileChooserCompletion;
-class WebImage;
class WebLocalFrame;
class WebSpeechRecognizer;
class WebSpellCheckClient;
@@ -69,6 +72,12 @@
blink::WebTextDirection sub_message_hint);
std::string DumpBackForwardLists();
+ void CapturePixelsForPrinting(
+ const base::Callback<void(const SkBitmap&)>& callback);
+ void CopyImageAtAndCapturePixels(
+ int x, int y, const base::Callback<void(const SkBitmap&)>& callback);
+ void CapturePixelsAsync(
+ const base::Callback<void(const SkBitmap&)>& callback);
void LayoutAndPaintAsyncThen(const base::Closure& callback);
@@ -118,12 +127,18 @@
private:
void AnimateNow();
+ void DrawSelectionRect(SkCanvas* canvas);
+ void DidCapturePixelsAsync(
+ const base::Callback<void(const SkBitmap&)>& callback,
+ const SkBitmap& bitmap);
TestInterfaces* test_interfaces_;
WebTestDelegate* delegate_;
blink::WebWidget* web_widget_;
WebTaskList task_list_;
+
+ blink::WebImage drag_image_;
scoped_ptr<SpellCheckClient> spellcheck_;
« no previous file with comments | « components/test_runner/web_test_delegate.h ('k') | components/test_runner/web_test_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698