Chromium Code Reviews| 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 |