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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 // Updates top controls constraints and current state. Allows embedder to | 244 // Updates top controls constraints and current state. Allows embedder to |
245 // control what are valid states for top controls and if it should animate. | 245 // control what are valid states for top controls and if it should animate. |
246 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } | 246 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } |
247 | 247 |
248 // Populate |bounds| with the composition character bounds for the ongoing | 248 // Populate |bounds| with the composition character bounds for the ongoing |
249 // composition. Returns false if there is no focused input or any ongoing | 249 // composition. Returns false if there is no focused input or any ongoing |
250 // composition. | 250 // composition. |
251 virtual bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) { ret
urn false; } | 251 virtual bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) { ret
urn false; } |
252 | 252 |
253 // Applies the range from |start| to |start + length| on the foucsed frame s
o that the text will later be replaced. | 253 // Applies the range on the focused frame so that the text will later be rep
laced. |
254 virtual void applyReplacementRange(int start, int length) {} | 254 virtual void applyReplacementRange(const WebRange&) {} |
255 | 255 |
256 protected: | 256 protected: |
257 ~WebWidget() { } | 257 ~WebWidget() { } |
258 }; | 258 }; |
259 | 259 |
260 } // namespace blink | 260 } // namespace blink |
261 | 261 |
262 #endif | 262 #endif |
OLD | NEW |