| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 virtual void didBeginEditing() = 0; | 110 virtual void didBeginEditing() = 0; |
| 111 virtual void didChangeSelection(bool isSelectionEmpty) = 0; | 111 virtual void didChangeSelection(bool isSelectionEmpty) = 0; |
| 112 virtual void didChangeContents() = 0; | 112 virtual void didChangeContents() = 0; |
| 113 virtual void didExecuteCommand(const WebString& commandName) = 0; | 113 virtual void didExecuteCommand(const WebString& commandName) = 0; |
| 114 virtual void didEndEditing() = 0; | 114 virtual void didEndEditing() = 0; |
| 115 | 115 |
| 116 | 116 |
| 117 // Spellchecker -------------------------------------------------------- | 117 // Spellchecker -------------------------------------------------------- |
| 118 | 118 |
| 119 // The client should perform spell-checking on the given word | 119 // The client should perform spell-checking on the given text. If the |
| 120 // synchronously. Return a length of 0 if the word is not misspelled. | 120 // text contains a misspelled word, then upon return misspelledOffset |
| 121 // FIXME hook this up | 121 // will point to the start of the misspelled word, and misspelledLength |
| 122 //virtual void spellCheck( | 122 // will indicates its length. Otherwise, if there was not a spelling |
| 123 // const WebString& word, int& misspelledOffset, int& misspelledLength) = 0; | 123 // error, then upon return misspelledLength is 0. |
| 124 virtual void spellCheck( |
| 125 const WebString& text, int& misspelledOffset, int& misspelledLength) = 0; |
| 126 |
| 127 // Computes an auto-corrected replacement for a misspelled word. If no |
| 128 // replacement is found, then an empty string is returned. |
| 129 virtual WebString autoCorrectWord(const WebString& misspelledWord) = 0; |
| 130 |
| 131 // Update the spelling UI with the given word. |
| 132 virtual void updateSpellingUIWithMisspelledWord(const WebString& word) = 0; |
| 124 | 133 |
| 125 | 134 |
| 126 // Dialogs ------------------------------------------------------------- | 135 // Dialogs ------------------------------------------------------------- |
| 127 | 136 |
| 128 // Displays a modal alert dialog containing the given message. Returns | 137 // Displays a modal alert dialog containing the given message. Returns |
| 129 // once the user dismisses the dialog. | 138 // once the user dismisses the dialog. |
| 130 virtual void runModalAlertDialog( | 139 virtual void runModalAlertDialog( |
| 131 WebFrame*, const WebString& message) = 0; | 140 WebFrame*, const WebString& message) = 0; |
| 132 | 141 |
| 133 // Displays a modal confirmation dialog with the given message as | 142 // Displays a modal confirmation dialog with the given message as |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // QueryFormFieldAutofill | 217 // QueryFormFieldAutofill |
| 209 // RemoveStoredAutofillEntry | 218 // RemoveStoredAutofillEntry |
| 210 // ShowModalHTMLDialog <-- we should be able to kill this | 219 // ShowModalHTMLDialog <-- we should be able to kill this |
| 211 // GetWebDevToolsAgentDelegate | 220 // GetWebDevToolsAgentDelegate |
| 212 // WasOpenedByUserGesture | 221 // WasOpenedByUserGesture |
| 213 }; | 222 }; |
| 214 | 223 |
| 215 } // namespace WebKit | 224 } // namespace WebKit |
| 216 | 225 |
| 217 #endif | 226 #endif |
| OLD | NEW |