| 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 30 matching lines...) Expand all Loading... |
| 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 isContinuousSpellCheckingEnabled() override; |
| 49 void toggleContinuousSpellChecking() override; | 49 void toggleContinuousSpellChecking() 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 checkGrammarOfString(const String&, Vector<GrammarDetail>&, | |
| 52 int* badGrammarLocation, int* badGrammarLength) override; | |
| 53 void updateSpellingUIWithMisspelledWord(const String&) override; | 51 void updateSpellingUIWithMisspelledWord(const String&) override; |
| 54 void showSpellingUI(bool show) override; | 52 void showSpellingUI(bool show) override; |
| 55 bool spellingUIIsShowing() override; | 53 bool spellingUIIsShowing() override; |
| 56 void requestCheckingOfString(TextCheckingRequest*) override; | 54 void requestCheckingOfString(TextCheckingRequest*) override; |
| 57 | 55 |
| 58 TextCheckerClient& textChecker() override { return *this; } | 56 TextCheckerClient& textChecker() override { return *this; } |
| 59 | 57 |
| 60 private: | 58 private: |
| 61 // Returns whether or not the focused control needs spell-checking. | 59 // Returns whether or not the focused control needs spell-checking. |
| 62 // Currently, this function just retrieves the focused node and determines | 60 // Currently, this function just retrieves the focused node and determines |
| (...skipping 11 matching lines...) Expand all Loading... |
| 74 enum { | 72 enum { |
| 75 SpellCheckAutomatic, | 73 SpellCheckAutomatic, |
| 76 SpellCheckForcedOn, | 74 SpellCheckForcedOn, |
| 77 SpellCheckForcedOff | 75 SpellCheckForcedOff |
| 78 } m_spellCheckThisFieldStatus; | 76 } m_spellCheckThisFieldStatus; |
| 79 }; | 77 }; |
| 80 | 78 |
| 81 } // namespace blink | 79 } // namespace blink |
| 82 | 80 |
| 83 #endif | 81 #endif |
| OLD | NEW |