| 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 27 matching lines...) Expand all Loading... |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class WebViewImpl; | 40 class WebViewImpl; |
| 41 | 41 |
| 42 class SpellCheckerClientImpl final : public SpellCheckerClient, public TextCheck
erClient { | 42 class SpellCheckerClientImpl final : public SpellCheckerClient, public TextCheck
erClient { |
| 43 public: | 43 public: |
| 44 explicit SpellCheckerClientImpl(WebViewImpl*); | 44 explicit SpellCheckerClientImpl(WebViewImpl*); |
| 45 | 45 |
| 46 ~SpellCheckerClientImpl() override; | 46 ~SpellCheckerClientImpl() override; |
| 47 | 47 |
| 48 bool isContinuousSpellCheckingEnabled() override; | 48 bool isSpellCheckingEnabled() override; |
| 49 void toggleContinuousSpellChecking() override; | 49 void toggleSpellCheckingEnabled() override; |
| 50 void checkSpellingOfString(const String&, int* misspellingLocation, int* mis
spellingLength) override; | 50 void checkSpellingOfString(const String&, int* misspellingLocation, int* mis
spellingLength) override; |
| 51 void updateSpellingUIWithMisspelledWord(const String&) override; | 51 void updateSpellingUIWithMisspelledWord(const String&) override; |
| 52 void showSpellingUI(bool show) override; | 52 void showSpellingUI(bool show) override; |
| 53 bool spellingUIIsShowing() override; | 53 bool spellingUIIsShowing() override; |
| 54 void requestCheckingOfString(TextCheckingRequest*) override; | 54 void requestCheckingOfString(TextCheckingRequest*) override; |
| 55 void cancelAllPendingRequests() override; | 55 void cancelAllPendingRequests() override; |
| 56 | 56 |
| 57 TextCheckerClient& textChecker() override { return *this; } | 57 TextCheckerClient& textChecker() override { return *this; } |
| 58 | 58 |
| 59 private: | 59 private: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 73 enum { | 73 enum { |
| 74 SpellCheckAutomatic, | 74 SpellCheckAutomatic, |
| 75 SpellCheckForcedOn, | 75 SpellCheckForcedOn, |
| 76 SpellCheckForcedOff | 76 SpellCheckForcedOff |
| 77 } m_spellCheckThisFieldStatus; | 77 } m_spellCheckThisFieldStatus; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace blink | 80 } // namespace blink |
| 81 | 81 |
| 82 #endif | 82 #endif |
| OLD | NEW |