| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 virtual void spellCheck( | 137 virtual void spellCheck( |
| 138 const WebString& text, int& misspelledOffset, int& misspelledLength) = 0; | 138 const WebString& text, int& misspelledOffset, int& misspelledLength) = 0; |
| 139 | 139 |
| 140 // Computes an auto-corrected replacement for a misspelled word. If no | 140 // Computes an auto-corrected replacement for a misspelled word. If no |
| 141 // replacement is found, then an empty string is returned. | 141 // replacement is found, then an empty string is returned. |
| 142 virtual WebString autoCorrectWord(const WebString& misspelledWord) = 0; | 142 virtual WebString autoCorrectWord(const WebString& misspelledWord) = 0; |
| 143 | 143 |
| 144 // Show or hide the spelling UI. | 144 // Show or hide the spelling UI. |
| 145 virtual void showSpellingUI(bool show) = 0; | 145 virtual void showSpellingUI(bool show) = 0; |
| 146 | 146 |
| 147 // Returns true if the spelling UI is showing. |
| 148 virtual bool isShowingSpellingUI() = 0; |
| 149 |
| 147 // Update the spelling UI with the given word. | 150 // Update the spelling UI with the given word. |
| 148 virtual void updateSpellingUIWithMisspelledWord(const WebString& word) = 0; | 151 virtual void updateSpellingUIWithMisspelledWord(const WebString& word) = 0; |
| 149 | 152 |
| 150 | 153 |
| 151 // Dialogs ------------------------------------------------------------- | 154 // Dialogs ------------------------------------------------------------- |
| 152 | 155 |
| 153 // Displays a modal alert dialog containing the given message. Returns | 156 // Displays a modal alert dialog containing the given message. Returns |
| 154 // once the user dismisses the dialog. | 157 // once the user dismisses the dialog. |
| 155 virtual void runModalAlertDialog( | 158 virtual void runModalAlertDialog( |
| 156 WebFrame*, const WebString& message) = 0; | 159 WebFrame*, const WebString& message) = 0; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // Called to determine if drag-n-drop operations may initiate a page | 211 // Called to determine if drag-n-drop operations may initiate a page |
| 209 // navigation. | 212 // navigation. |
| 210 virtual bool acceptsLoadDrops() = 0; | 213 virtual bool acceptsLoadDrops() = 0; |
| 211 | 214 |
| 212 // Take focus away from the WebView by focusing an adjacent UI element | 215 // Take focus away from the WebView by focusing an adjacent UI element |
| 213 // in the containing window. | 216 // in the containing window. |
| 214 virtual void focusNext() = 0; | 217 virtual void focusNext() = 0; |
| 215 virtual void focusPrevious() = 0; | 218 virtual void focusPrevious() = 0; |
| 216 | 219 |
| 217 | 220 |
| 218 // Session History ----------------------------------------------------- | 221 // Session history ----------------------------------------------------- |
| 219 | 222 |
| 220 // Tells the embedder to navigate back or forward in session history by | 223 // Tells the embedder to navigate back or forward in session history by |
| 221 // the given offset (relative to the current position in session | 224 // the given offset (relative to the current position in session |
| 222 // history). | 225 // history). |
| 223 virtual void navigateBackForwardSoon(int offset) = 0; | 226 virtual void navigateBackForwardSoon(int offset) = 0; |
| 224 | 227 |
| 225 // Returns the number of history items before/after the current | 228 // Returns the number of history items before/after the current |
| 226 // history item. | 229 // history item. |
| 227 virtual int historyBackListCount() = 0; | 230 virtual int historyBackListCount() = 0; |
| 228 virtual int historyForwardListCount() = 0; | 231 virtual int historyForwardListCount() = 0; |
| 229 | 232 |
| 230 // Called to notify the embedder when a new history item is added. | 233 // Called to notify the embedder when a new history item is added. |
| 231 virtual void didAddHistoryItem() = 0; | 234 virtual void didAddHistoryItem() = 0; |
| 232 | 235 |
| 233 | 236 |
| 237 // Developer tools ----------------------------------------------------- |
| 238 |
| 239 // Called to notify the client that the inspector's settings were |
| 240 // changed and should be saved. See WebView::inspectorSettings. |
| 241 virtual void didUpdateInspectorSettings() = 0; |
| 242 |
| 243 |
| 234 // FIXME need to something for: | 244 // FIXME need to something for: |
| 235 // OnPasswordFormsSeen | 245 // OnPasswordFormsSeen |
| 236 // OnAutofillFormSubmitted | 246 // OnAutofillFormSubmitted |
| 237 // QueryFormFieldAutofill | 247 // QueryFormFieldAutofill |
| 238 // RemoveStoredAutofillEntry | 248 // RemoveStoredAutofillEntry |
| 239 // ShowModalHTMLDialog <-- we should be able to kill this | 249 // ShowModalHTMLDialog <-- we should be able to kill this |
| 240 // GetWebDevToolsAgentDelegate | 250 // GetWebDevToolsAgentDelegate |
| 241 // WasOpenedByUserGesture | 251 // WasOpenedByUserGesture |
| 242 }; | 252 }; |
| 243 | 253 |
| 244 } // namespace WebKit | 254 } // namespace WebKit |
| 245 | 255 |
| 246 #endif | 256 #endif |
| OLD | NEW |