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

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

Issue 2372493002: Workaround for setComposition styling clobber (Closed)
Patch Set: Address changwan@'s review Created 4 years, 2 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 // Inserts the given text string in the place of the existing composition. 109 // Inserts the given text string in the place of the existing composition.
110 // Returns true if did replace. 110 // Returns true if did replace.
111 bool replaceComposition(const String& text); 111 bool replaceComposition(const String& text);
112 // Inserts the given text string in the place of the existing composition 112 // Inserts the given text string in the place of the existing composition
113 // and moves caret. Returns true if did replace and moved caret successfully . 113 // and moves caret. Returns true if did replace and moved caret successfully .
114 bool replaceCompositionAndMoveCaret(const String&, int relativeCaretPosition ); 114 bool replaceCompositionAndMoveCaret(const String&, int relativeCaretPosition );
115 115
116 // Returns true if moved caret successfully. 116 // Returns true if moved caret successfully.
117 bool moveCaret(int newCaretPosition); 117 bool moveCaret(int newCaretPosition);
118
119 size_t computeCommonGraphemeClusterPrefixLengthForSetComposition(const Strin g& newText) const;
yosin_UTC9 2016/10/04 09:00:05 Do we really need to have |computeCommonGraphemeCl
yabinh 2016/10/11 01:42:22 Done.
120 PlainTextRange createSelectionRangeForSetComposition(int selectionStart, int selectionEnd, size_t textLength) const;
118 }; 121 };
119 122
120 } // namespace blink 123 } // namespace blink
121 124
122 #endif // InputMethodController_h 125 #endif // InputMethodController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698