| 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 20 matching lines...) Expand all Loading... |
| 31 #ifndef SpellCheckerClientImpl_h | 31 #ifndef SpellCheckerClientImpl_h |
| 32 #define SpellCheckerClientImpl_h | 32 #define SpellCheckerClientImpl_h |
| 33 | 33 |
| 34 #include "core/page/SpellCheckerClient.h" | 34 #include "core/page/SpellCheckerClient.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class TextCheckerClient; | 38 class TextCheckerClient; |
| 39 class WebViewImpl; | 39 class WebViewImpl; |
| 40 | 40 |
| 41 // TODO(xiaochengh): Split SpellCheckerClientImpl into two classes according to |
| 42 // the split that should be done to its interface. |
| 41 class SpellCheckerClientImpl final : public SpellCheckerClient { | 43 class SpellCheckerClientImpl final : public SpellCheckerClient { |
| 42 public: | 44 public: |
| 43 explicit SpellCheckerClientImpl(WebViewImpl*, TextCheckerClient*); | 45 explicit SpellCheckerClientImpl(WebViewImpl*, TextCheckerClient*); |
| 44 | 46 |
| 45 ~SpellCheckerClientImpl() override; | 47 ~SpellCheckerClientImpl() override; |
| 46 | 48 |
| 47 bool isSpellCheckingEnabled() override; | 49 bool isSpellCheckingEnabled() override; |
| 48 void toggleSpellCheckingEnabled() override; | 50 void toggleSpellCheckingEnabled() override; |
| 49 void updateSpellingUIWithMisspelledWord(const String&) override; | 51 void updateSpellingUIWithMisspelledWord(const String&) override; |
| 50 void showSpellingUI(bool show) override; | 52 void showSpellingUI(bool show) override; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 70 enum { | 72 enum { |
| 71 SpellCheckAutomatic, | 73 SpellCheckAutomatic, |
| 72 SpellCheckForcedOn, | 74 SpellCheckForcedOn, |
| 73 SpellCheckForcedOff | 75 SpellCheckForcedOff |
| 74 } m_spellCheckThisFieldStatus; | 76 } m_spellCheckThisFieldStatus; |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 } // namespace blink | 79 } // namespace blink |
| 78 | 80 |
| 79 #endif | 81 #endif |
| OLD | NEW |