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

Unified Diff: headless/public/web_frame.h

Issue 1491593004: Add some more headless API feature placeholders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some more missing bits. Created 4 years, 11 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 | « headless/public/web_contents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/web_frame.h
diff --git a/headless/public/web_frame.h b/headless/public/web_frame.h
index 4b0bb0ebb3a781cb74e13f0562c08113269d69c3..587dee59c60272fcf61017a5a1a2dbcdf047e899 100644
--- a/headless/public/web_frame.h
+++ b/headless/public/web_frame.h
@@ -44,6 +44,16 @@ class HEADLESS_EXPORT WebFrame {
const std::string& source_code,
const ScriptExecutionCallback& callback) = 0;
+ virtual std::string ContentAsText(size_t max_chars) const = 0;
+ virtual std::string ContentAsMarkup() const = 0;
+ virtual proto::Document ContentAsProtobuf() const = 0;
+
+ virtual gfx::Size GetScrollOffset() const = 0;
+ virtual void SetScrollOffset(const gfx::Size& offset) = 0;
+
+ virtual float GetPageScaleFactor() const = 0;
+ virtual void SetPageScaleFactor(float) = 0;
rmcilroy 2016/01/14 15:56:51 add a parameter name.
Sami 2016/01/14 16:29:59 Done.
+
private:
DISALLOW_COPY_AND_ASSIGN(WebFrame);
};
« no previous file with comments | « headless/public/web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698