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