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

Unified Diff: public/platform/WebCompositeAndReadbackAsyncCallback.h

Issue 513723003: Add pixel readback to page popup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
Index: public/platform/WebCompositeAndReadbackAsyncCallback.h
diff --git a/public/platform/WebCompositeAndReadbackAsyncCallback.h b/public/platform/WebCompositeAndReadbackAsyncCallback.h
index 45a61be2332878a751a1f8d2b5cbe278f2be46da..4cdcc5bbc2d6a8254f1b4d47175267f57ed13f23 100644
--- a/public/platform/WebCompositeAndReadbackAsyncCallback.h
+++ b/public/platform/WebCompositeAndReadbackAsyncCallback.h
@@ -26,6 +26,8 @@
#ifndef WebCompositeAndReadbackAsyncCallback_h
#define WebCompositeAndReadbackAsyncCallback_h
+#include "public/platform/WebPoint.h"
+
class SkBitmap;
namespace blink {
@@ -33,6 +35,14 @@ namespace blink {
class WebCompositeAndReadbackAsyncCallback {
public:
virtual void didCompositeAndReadback(const SkBitmap&) = 0;
+ void setIsPopup(bool isPopup) { m_isPopup = isPopup; };
tkent 2014/09/01 05:37:03 Because this is a public API, please write comment
jamesr 2014/09/02 19:09:29 nothing in platform/ should know or care about wha
keishi 2014/09/04 13:16:20 Removed. I changed it so I don't stick these data
+ bool isPopup() { return m_isPopup; }
+ void setReadbackPosition(const WebPoint& position) { m_position = position; };
+ WebPoint& readbackPosition() { return m_position; }
+
+private:
+ bool m_isPopup;
+ WebPoint m_position;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698