| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // returns false on failure. | 211 // returns false on failure. |
| 212 virtual bool compositionRange(size_t* location, size_t* length) { return fal
se; } | 212 virtual bool compositionRange(size_t* location, size_t* length) { return fal
se; } |
| 213 | 213 |
| 214 // Returns information about the current text input of this WebWidget. | 214 // Returns information about the current text input of this WebWidget. |
| 215 virtual WebTextInputInfo textInputInfo() { return WebTextInputInfo(); } | 215 virtual WebTextInputInfo textInputInfo() { return WebTextInputInfo(); } |
| 216 | 216 |
| 217 // Returns the anchor and focus bounds of the current selection. | 217 // Returns the anchor and focus bounds of the current selection. |
| 218 // If the selection range is empty, it returns the caret bounds. | 218 // If the selection range is empty, it returns the caret bounds. |
| 219 virtual bool selectionBounds(WebRect& anchor, WebRect& focus) const { return
false; } | 219 virtual bool selectionBounds(WebRect& anchor, WebRect& focus) const { return
false; } |
| 220 | 220 |
| 221 // Called to notify that IME candidate window has changed its visibility or | |
| 222 // its appearance. These calls correspond to trigger | |
| 223 // candidatewindow{show,update,hide} events defined in W3C IME API. | |
| 224 virtual void didShowCandidateWindow() { } | |
| 225 virtual void didUpdateCandidateWindow() { } | |
| 226 virtual void didHideCandidateWindow() { } | |
| 227 | |
| 228 // Returns the text direction at the start and end bounds of the current sel
ection. | 221 // Returns the text direction at the start and end bounds of the current sel
ection. |
| 229 // If the selection range is empty, it returns false. | 222 // If the selection range is empty, it returns false. |
| 230 virtual bool selectionTextDirection(WebTextDirection& start, WebTextDirectio
n& end) const { return false; } | 223 virtual bool selectionTextDirection(WebTextDirection& start, WebTextDirectio
n& end) const { return false; } |
| 231 | 224 |
| 232 // Returns true if the selection range is nonempty and its anchor is first | 225 // Returns true if the selection range is nonempty and its anchor is first |
| 233 // (i.e its anchor is its start). | 226 // (i.e its anchor is its start). |
| 234 virtual bool isSelectionAnchorFirst() const { return false; } | 227 virtual bool isSelectionAnchorFirst() const { return false; } |
| 235 | 228 |
| 236 // Fetch the current selection range of this WebWidget. If there is no | 229 // Fetch the current selection range of this WebWidget. If there is no |
| 237 // selection, it will output a 0-length range with the location at the | 230 // selection, it will output a 0-length range with the location at the |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 // control what are valid states for top controls and if it should animate. | 282 // control what are valid states for top controls and if it should animate. |
| 290 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } | 283 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } |
| 291 | 284 |
| 292 protected: | 285 protected: |
| 293 ~WebWidget() { } | 286 ~WebWidget() { } |
| 294 }; | 287 }; |
| 295 | 288 |
| 296 } // namespace blink | 289 } // namespace blink |
| 297 | 290 |
| 298 #endif | 291 #endif |
| OLD | NEW |