| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
| 6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
| 7 | 7 |
| 8 #include "WebCompositionUnderline.h" | 8 #include "WebCompositionUnderline.h" |
| 9 #include "WebFrame.h" | 9 #include "WebFrame.h" |
| 10 #include "WebFrameLoadType.h" | 10 #include "WebFrameLoadType.h" |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 233 |
| 234 // Expands the selection to a word around the caret and returns | 234 // Expands the selection to a word around the caret and returns |
| 235 // true. Does nothing and returns false if there is no caret or | 235 // true. Does nothing and returns false if there is no caret or |
| 236 // there is ranged selection. | 236 // there is ranged selection. |
| 237 virtual bool selectWordAroundCaret() = 0; | 237 virtual bool selectWordAroundCaret() = 0; |
| 238 | 238 |
| 239 // DEPRECATED: Use moveRangeSelection. | 239 // DEPRECATED: Use moveRangeSelection. |
| 240 virtual void selectRange(const WebPoint& base, const WebPoint& extent) = 0; | 240 virtual void selectRange(const WebPoint& base, const WebPoint& extent) = 0; |
| 241 | 241 |
| 242 virtual void selectRange(const WebRange&) = 0; | 242 virtual void selectRange(const WebRange&) = 0; |
| 243 virtual WebString rangeAsText(const WebRange&) = 0; |
| 243 | 244 |
| 244 // Move the current selection to the provided viewport point/points. If the | 245 // Move the current selection to the provided viewport point/points. If the |
| 245 // current selection is editable, the new selection will be restricted to | 246 // current selection is editable, the new selection will be restricted to |
| 246 // the root editable element. | 247 // the root editable element. |
| 247 // |TextGranularity| represents character wrapping granularity. If | 248 // |TextGranularity| represents character wrapping granularity. If |
| 248 // WordGranularity is set, WebFrame extends selection to wrap word. | 249 // WordGranularity is set, WebFrame extends selection to wrap word. |
| 249 virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent
, WebFrame::TextGranularity = CharacterGranularity) = 0; | 250 virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent
, WebFrame::TextGranularity = CharacterGranularity) = 0; |
| 250 virtual void moveCaretSelection(const WebPoint&) = 0; | 251 virtual void moveCaretSelection(const WebPoint&) = 0; |
| 251 | 252 |
| 252 virtual bool setEditableSelectionOffsets(int start, int end) = 0; | 253 virtual bool setEditableSelectionOffsets(int start, int end) = 0; |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 // to call these on a WebLocalFrame. | 413 // to call these on a WebLocalFrame. |
| 413 bool isWebLocalFrame() const override = 0; | 414 bool isWebLocalFrame() const override = 0; |
| 414 WebLocalFrame* toWebLocalFrame() override = 0; | 415 WebLocalFrame* toWebLocalFrame() override = 0; |
| 415 bool isWebRemoteFrame() const override = 0; | 416 bool isWebRemoteFrame() const override = 0; |
| 416 WebRemoteFrame* toWebRemoteFrame() override = 0; | 417 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 417 }; | 418 }; |
| 418 | 419 |
| 419 } // namespace blink | 420 } // namespace blink |
| 420 | 421 |
| 421 #endif // WebLocalFrame_h | 422 #endif // WebLocalFrame_h |
| OLD | NEW |