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

Unified Diff: public/web/WebNode.h

Issue 19856004: Adds WebElement::imageContents() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: put it on WebNode since we retain the context menu node Created 7 years, 5 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
« Source/web/WebNode.cpp ('K') | « Source/web/WebNode.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebNode.h
diff --git a/public/web/WebNode.h b/public/web/WebNode.h
index ccfed2565af4abc9cd0174be32c20b4dac8a6d8a..3f50665b977552ea2b3abe160e22ec7a57d09c4d 100644
--- a/public/web/WebNode.h
+++ b/public/web/WebNode.h
@@ -32,6 +32,7 @@
#define WebNode_h
#include "../platform/WebCommon.h"
+#include "../platform/WebImage.h"
#include "../platform/WebPrivatePtr.h"
#include "../platform/WebString.h"
#include "WebExceptionCode.h"
@@ -123,6 +124,10 @@ public:
WEBKIT_EXPORT WebPluginContainer* pluginContainer() const;
WEBKIT_EXPORT WebElement shadowHost() const;
+ // Returns the image contents of this WebNode or a null WebImage
+ // if there isn't any.
+ WEBKIT_EXPORT WebImage imageContents();
+
template<typename T> T to()
{
T res;
« Source/web/WebNode.cpp ('K') | « Source/web/WebNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698