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); |
}; |