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

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: Review comments. 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..c8e5307180cc218e6b92f725c0d3e7dbb487966f 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 page_scale_factor) = 0;
+
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