OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 EphemeralRange compositionEphemeralRange() const; | 72 EphemeralRange compositionEphemeralRange() const; |
73 Range* compositionRange() const; | 73 Range* compositionRange() const; |
74 | 74 |
75 void clear(); | 75 void clear(); |
76 void documentDetached(); | 76 void documentDetached(); |
77 | 77 |
78 PlainTextRange getSelectionOffsets() const; | 78 PlainTextRange getSelectionOffsets() const; |
79 // Returns true if setting selection to specified offsets, otherwise false. | 79 // Returns true if setting selection to specified offsets, otherwise false. |
80 bool setEditableSelectionOffsets(const PlainTextRange&); | 80 bool setEditableSelectionOffsets(const PlainTextRange&); |
81 void extendSelectionAndDelete(int before, int after); | 81 void extendSelectionAndDelete(int before, int after); |
| 82 void deleteSurroundingText(int before, int after); |
82 | 83 |
83 private: | 84 private: |
84 class SelectionOffsetsScope { | 85 class SelectionOffsetsScope { |
85 WTF_MAKE_NONCOPYABLE(SelectionOffsetsScope); | 86 WTF_MAKE_NONCOPYABLE(SelectionOffsetsScope); |
86 STACK_ALLOCATED(); | 87 STACK_ALLOCATED(); |
87 public: | 88 public: |
88 explicit SelectionOffsetsScope(InputMethodController*); | 89 explicit SelectionOffsetsScope(InputMethodController*); |
89 ~SelectionOffsetsScope(); | 90 ~SelectionOffsetsScope(); |
90 private: | 91 private: |
91 Member<InputMethodController> m_inputMethodController; | 92 Member<InputMethodController> m_inputMethodController; |
(...skipping 17 matching lines...) Expand all Loading... |
109 | 110 |
110 String composingText() const; | 111 String composingText() const; |
111 bool insertTextForConfirmedComposition(const String& text); | 112 bool insertTextForConfirmedComposition(const String& text); |
112 void selectComposition() const; | 113 void selectComposition() const; |
113 bool setSelectionOffsets(const PlainTextRange&); | 114 bool setSelectionOffsets(const PlainTextRange&); |
114 }; | 115 }; |
115 | 116 |
116 } // namespace blink | 117 } // namespace blink |
117 | 118 |
118 #endif // InputMethodController_h | 119 #endif // InputMethodController_h |
OLD | NEW |