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

Side by Side Diff: third_party/WebKit/public/web/WebWidget.h

Issue 2323983003: DO NOT SUBMIT: Bundle IME-related messages into one for batch edit (Closed)
Patch Set: fixed nits and fixed blimp test Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/public/web/WebLocalFrame.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) { return false; } 161 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) { return false; }
162 162
163 // Called to inform the WebWidget to confirm an ongoing composition with a 163 // Called to inform the WebWidget to confirm an ongoing composition with a
164 // new composition text. If the text is empty then the current composition 164 // new composition text. If the text is empty then the current composition
165 // text is confirmed. If there is no ongoing composition, then deletes the 165 // text is confirmed. If there is no ongoing composition, then deletes the
166 // current selection and inserts the text. This method has no effect if 166 // current selection and inserts the text. This method has no effect if
167 // there is no ongoing composition and the text is empty. 167 // there is no ongoing composition and the text is empty.
168 // Returns true if there is an ongoing composition or the text is inserted. 168 // Returns true if there is an ongoing composition or the text is inserted.
169 virtual bool confirmComposition(const WebString& text) { return false; } 169 virtual bool confirmComposition(const WebString& text) { return false; }
170 170
171 // Set selection offsets for editable content or input.
172 virtual bool setEditableSelectionOffsets(int start, int end) { return false; };
173 // Set composition offsets for existing text.
174 virtual bool setCompositionFromExistingText(int compositionStart, int compos itionEnd, const WebVector<WebCompositionUnderline>& underlines) { return false; };
175 // Select and delete text from |before| to |after|.
176 virtual void extendSelectionAndDelete(int before, int after) { };
177
171 // Fetches the character range of the current composition, also called the 178 // Fetches the character range of the current composition, also called the
172 // "marked range." 179 // "marked range."
173 virtual WebRange compositionRange() { return WebRange(); } 180 virtual WebRange compositionRange() { return WebRange(); }
174 181
175 // Returns information about the current text input of this WebWidget. 182 // Returns information about the current text input of this WebWidget.
176 // Note that this query can be expensive for long fields, as it returns the 183 // Note that this query can be expensive for long fields, as it returns the
177 // plain-text representation of the current editable element. Consider using 184 // plain-text representation of the current editable element. Consider using
178 // the lighter-weight textInputType() when appropriate. 185 // the lighter-weight textInputType() when appropriate.
179 virtual WebTextInputInfo textInputInfo() { return WebTextInputInfo(); } 186 virtual WebTextInputInfo textInputInfo() { return WebTextInputInfo(); }
180 187
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // Applies the range on the focused frame so that the text will later be rep laced. 259 // Applies the range on the focused frame so that the text will later be rep laced.
253 virtual void applyReplacementRange(const WebRange&) {} 260 virtual void applyReplacementRange(const WebRange&) {}
254 261
255 protected: 262 protected:
256 ~WebWidget() { } 263 ~WebWidget() { }
257 }; 264 };
258 265
259 } // namespace blink 266 } // namespace blink
260 267
261 #endif 268 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebLocalFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698