| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 WebTextCheckingTypeMask mask, | 60 WebTextCheckingTypeMask mask, |
| 61 WebVector<WebTextCheckingResult>* results)
{ } | 61 WebVector<WebTextCheckingResult>* results)
{ } |
| 62 | 62 |
| 63 // Requests asynchronous spelling and grammar checking, whose result should
be | 63 // Requests asynchronous spelling and grammar checking, whose result should
be |
| 64 // returned by passed completion object. | 64 // returned by passed completion object. |
| 65 virtual void requestCheckingOfText(const WebString& textToCheck, | 65 virtual void requestCheckingOfText(const WebString& textToCheck, |
| 66 const WebVector<uint32_t>& markersInText, | 66 const WebVector<uint32_t>& markersInText, |
| 67 const WebVector<unsigned>& markerOffsets, | 67 const WebVector<unsigned>& markerOffsets, |
| 68 WebTextCheckingCompletion* completionCall
back) { } | 68 WebTextCheckingCompletion* completionCall
back) { } |
| 69 | 69 |
| 70 // Clear all stored references to requests, so that it will not become a |
| 71 // leak source. |
| 72 virtual void cancelAllPendingRequests() { } |
| 73 |
| 70 // Show or hide the spelling UI. | 74 // Show or hide the spelling UI. |
| 71 virtual void showSpellingUI(bool show) { } | 75 virtual void showSpellingUI(bool show) { } |
| 72 | 76 |
| 73 // Returns true if the spelling UI is showing. | 77 // Returns true if the spelling UI is showing. |
| 74 virtual bool isShowingSpellingUI() { return false; } | 78 virtual bool isShowingSpellingUI() { return false; } |
| 75 | 79 |
| 76 // Update the spelling UI with the given word. | 80 // Update the spelling UI with the given word. |
| 77 virtual void updateSpellingUIWithMisspelledWord(const WebString& word) { } | 81 virtual void updateSpellingUIWithMisspelledWord(const WebString& word) { } |
| 78 | 82 |
| 79 protected: | 83 protected: |
| 80 ~WebSpellCheckClient() { } | 84 ~WebSpellCheckClient() { } |
| 81 }; | 85 }; |
| 82 | 86 |
| 83 } // namespace blink | 87 } // namespace blink |
| 84 | 88 |
| 85 #endif | 89 #endif |
| OLD | NEW |