Chromium Code Reviews| Index: public/web/WebFrame.h |
| diff --git a/public/web/WebFrame.h b/public/web/WebFrame.h |
| index d630f801834c1614177372f90fccbcb1fbaf5bcd..681ef44189d1333a0ad2701eef21d1378fac6ecf 100644 |
| --- a/public/web/WebFrame.h |
| +++ b/public/web/WebFrame.h |
| @@ -474,6 +474,15 @@ public: |
| virtual void setCaretVisible(bool) = 0; |
| + // Returns the text surrounding the selection with a maximum length of |
| + // |maxLength|. |startOffset| and |endOffset| will be populated with |
| + // respectively the start and end offset of the selection relatively to the |
| + // returned text. If the selection is a caret, |startOffset| will be equal |
| + // to |endOffset|. |
| + // Note: the surrounding text length is |maxLength| which means that the |
| + // returned text will be at max selectionLength + maxLength. |
| + virtual WebString textSurroundingSelection(int maxLength, int* startOffset, int* endOffset) const = 0; |
|
Yuta Kitamura
2014/06/06 02:20:08
1. We usually use non-const references for output
|
| + |
| // Printing ------------------------------------------------------------ |
| // Reformats the WebFrame for printing. WebPrintParams specifies the printable |