OLD | NEW |
---|---|
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
225 // composition. Returns false if there is no focused input or any ongoing | 225 // composition. Returns false if there is no focused input or any ongoing |
226 // composition. | 226 // composition. |
227 virtual bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) { | 227 virtual bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) { |
228 return false; | 228 return false; |
229 } | 229 } |
230 | 230 |
231 // Applies the range on the focused frame so that the text will later be | 231 // Applies the range on the focused frame so that the text will later be |
232 // replaced. | 232 // replaced. |
233 virtual void applyReplacementRange(const WebRange&) {} | 233 virtual void applyReplacementRange(const WebRange&) {} |
234 | 234 |
235 // Current instance of the active WebInputMethodController, that is, the | |
236 // WebInputMethodController corresponding to (and owned by) the focused | |
237 // WebLocalFrameImpl. It might return nullptr when there are no focused | |
238 // frames or possibly when the WebFrameWidget does not accept IME events. | |
239 // This should only be overriden by frame widgets. | |
240 virtual WebInputMethodController* getActiveWebInputMethodController() { | |
dcheng
2016/12/05 19:19:49
Please add a comment here that the presence of thi
lfg
2016/12/05 19:26:33
When I reviewed this, I considered this to be a mo
EhsanK
2016/12/05 19:50:48
dcheng@: I actually think it might be better to ha
| |
241 return nullptr; | |
242 } | |
243 | |
235 protected: | 244 protected: |
236 ~WebWidget() {} | 245 ~WebWidget() {} |
237 }; | 246 }; |
238 | 247 |
239 } // namespace blink | 248 } // namespace blink |
240 | 249 |
241 #endif | 250 #endif |
OLD | NEW |