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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 virtual WebString rangeAsText(const WebRange&) = 0; | 243 virtual WebString rangeAsText(const WebRange&) = 0; |
244 | 244 |
245 // 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 |
246 // current selection is editable, the new selection will be restricted to | 246 // current selection is editable, the new selection will be restricted to |
247 // the root editable element. | 247 // the root editable element. |
248 // |TextGranularity| represents character wrapping granularity. If | 248 // |TextGranularity| represents character wrapping granularity. If |
249 // WordGranularity is set, WebFrame extends selection to wrap word. | 249 // WordGranularity is set, WebFrame extends selection to wrap word. |
250 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; |
251 virtual void moveCaretSelection(const WebPoint&) = 0; | 251 virtual void moveCaretSelection(const WebPoint&) = 0; |
252 | 252 |
253 virtual bool setEditableSelectionOffsets(int start, int end) = 0; | |
254 virtual bool setCompositionFromExistingText(int compositionStart, int compos
itionEnd, const WebVector<WebCompositionUnderline>& underlines) = 0; | |
255 virtual void extendSelectionAndDelete(int before, int after) = 0; | |
256 | |
257 virtual void setCaretVisible(bool) = 0; | 253 virtual void setCaretVisible(bool) = 0; |
258 | 254 |
259 // Moves the selection extent point. This function does not allow the | 255 // Moves the selection extent point. This function does not allow the |
260 // selection to collapse. If the new extent is set to the same position as | 256 // selection to collapse. If the new extent is set to the same position as |
261 // the current base, this function will do nothing. | 257 // the current base, this function will do nothing. |
262 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; | 258 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; |
263 // Replaces the selection with the input string. | 259 // Replaces the selection with the input string. |
264 virtual void replaceSelection(const WebString&) = 0; | 260 virtual void replaceSelection(const WebString&) = 0; |
265 | 261 |
266 // Spell-checking support ------------------------------------------------- | 262 // Spell-checking support ------------------------------------------------- |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 // to call these on a WebLocalFrame. | 413 // to call these on a WebLocalFrame. |
418 bool isWebLocalFrame() const override = 0; | 414 bool isWebLocalFrame() const override = 0; |
419 WebLocalFrame* toWebLocalFrame() override = 0; | 415 WebLocalFrame* toWebLocalFrame() override = 0; |
420 bool isWebRemoteFrame() const override = 0; | 416 bool isWebRemoteFrame() const override = 0; |
421 WebRemoteFrame* toWebRemoteFrame() override = 0; | 417 WebRemoteFrame* toWebRemoteFrame() override = 0; |
422 }; | 418 }; |
423 | 419 |
424 } // namespace blink | 420 } // namespace blink |
425 | 421 |
426 #endif // WebLocalFrame_h | 422 #endif // WebLocalFrame_h |
OLD | NEW |