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

Unified Diff: webkit/glue/webframe.h

Issue 119043: Add functions to glue to get the full html of the page and also to check if t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | « no previous file | webkit/glue/webframe_impl.h » ('j') | webkit/glue/webframe_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe.h
===================================================================
--- webkit/glue/webframe.h (revision 17400)
+++ webkit/glue/webframe.h (working copy)
@@ -326,10 +326,17 @@
// Clear any text selection in the frame.
virtual void ClearSelection() = 0;
+ // Checks if there is currently a selected area (indicates that GetSelection
M-A Ruel 2009/06/02 16:15:09 Is this function a performance optimization? I don
Sverrir 2009/06/02 17:19:58 Sort of. I'm not sure there is a defined contract
M-A Ruel 2009/06/02 18:27:40 There's only one user of GetSelection(false) and n
+ // would return a non-empty string).
+ virtual bool HasSelection() = 0;
+
// Returns the selected text if there is any. If |as_html| is true, returns
// the selection as HTML. The return value is encoded in utf-8.
virtual std::string GetSelection(bool as_html) = 0;
+ // Returns the full HTML of the page.
+ virtual std::string GetFullPageHtml() = 0;
+
// Paints the contents of this web view in a bitmapped image. This image
// will not have plugins drawn. Devices are cheap to copy because the data is
// internally refcounted so we allocate and return a new copy
« no previous file with comments | « no previous file | webkit/glue/webframe_impl.h » ('j') | webkit/glue/webframe_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698