Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Side by Side Diff: third_party/WebKit/Source/core/editing/InputMethodController.h

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Add some DCHECK Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 PlainTextRange getSelectionOffsets() const; 94 PlainTextRange getSelectionOffsets() const;
95 // Returns true if setting selection to specified offsets, otherwise false. 95 // Returns true if setting selection to specified offsets, otherwise false.
96 bool setEditableSelectionOffsets( 96 bool setEditableSelectionOffsets(
97 const PlainTextRange&, 97 const PlainTextRange&,
98 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); 98 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping);
99 void extendSelectionAndDelete(int before, int after); 99 void extendSelectionAndDelete(int before, int after);
100 PlainTextRange createRangeForSelection(int start, 100 PlainTextRange createRangeForSelection(int start,
101 int end, 101 int end,
102 size_t textLength) const; 102 size_t textLength) const;
103 void deleteSurroundingText(int before, int after); 103 void deleteSurroundingText(int before, int after);
104 void deleteSurroundingTextInCodePoints(int before, int after);
104 WebTextInputInfo textInputInfo() const; 105 WebTextInputInfo textInputInfo() const;
105 WebTextInputType textInputType() const; 106 WebTextInputType textInputType() const;
106 107
107 // Call this when we will change focus. 108 // Call this when we will change focus.
108 void willChangeFocus(); 109 void willChangeFocus();
109 110
110 private: 111 private:
111 Document& document() const; 112 Document& document() const;
112 bool isAvailable() const; 113 bool isAvailable() const;
113 114
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 int textInputFlags() const; 162 int textInputFlags() const;
162 WebTextInputMode inputModeOfFocusedElement() const; 163 WebTextInputMode inputModeOfFocusedElement() const;
163 164
164 // Implements |SynchronousMutationObserver|. 165 // Implements |SynchronousMutationObserver|.
165 void contextDestroyed(Document*) final; 166 void contextDestroyed(Document*) final;
166 }; 167 };
167 168
168 } // namespace blink 169 } // namespace blink
169 170
170 #endif // InputMethodController_h 171 #endif // InputMethodController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698