| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef SpellCheckerClient_h | 27 #ifndef SpellCheckerClient_h |
| 28 #define SpellCheckerClient_h | 28 #define SpellCheckerClient_h |
| 29 | 29 |
| 30 #include "wtf/Forward.h" | 30 #include "wtf/Forward.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class TextCheckerClient; | |
| 35 | |
| 36 class SpellCheckerClient { | 34 class SpellCheckerClient { |
| 37 public: | 35 public: |
| 38 virtual ~SpellCheckerClient() {} | 36 virtual ~SpellCheckerClient() {} |
| 39 | 37 |
| 40 virtual bool isSpellCheckingEnabled() = 0; | 38 virtual bool isSpellCheckingEnabled() = 0; |
| 41 virtual void toggleSpellCheckingEnabled() = 0; | 39 virtual void toggleSpellCheckingEnabled() = 0; |
| 42 | |
| 43 virtual TextCheckerClient& textChecker() = 0; | |
| 44 | |
| 45 virtual void updateSpellingUIWithMisspelledWord(const WTF::String&) = 0; | 40 virtual void updateSpellingUIWithMisspelledWord(const WTF::String&) = 0; |
| 46 virtual void showSpellingUI(bool show) = 0; | 41 virtual void showSpellingUI(bool show) = 0; |
| 47 virtual bool spellingUIIsShowing() = 0; | 42 virtual bool spellingUIIsShowing() = 0; |
| 48 }; | 43 }; |
| 49 | 44 |
| 50 } // namespace blink | 45 } // namespace blink |
| 51 | 46 |
| 52 #endif // SpellCheckerClient_h | 47 #endif // SpellCheckerClient_h |
| OLD | NEW |