| 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 26 matching lines...) Expand all Loading... |
| 37 namespace blink { | 37 namespace blink { |
| 38 class LocalFrame; | 38 class LocalFrame; |
| 39 class HTMLInputElement; | 39 class HTMLInputElement; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 class WebViewImpl; | 43 class WebViewImpl; |
| 44 | 44 |
| 45 class SpellCheckerClientImpl FINAL : public blink::SpellCheckerClient, public bl
ink::TextCheckerClient { | 45 class SpellCheckerClientImpl FINAL : public blink::SpellCheckerClient, public bl
ink::TextCheckerClient { |
| 46 public: | 46 public: |
| 47 SpellCheckerClientImpl(WebViewImpl*); | 47 explicit SpellCheckerClientImpl(WebViewImpl*); |
| 48 | 48 |
| 49 virtual ~SpellCheckerClientImpl(); | 49 virtual ~SpellCheckerClientImpl(); |
| 50 | 50 |
| 51 virtual bool isContinuousSpellCheckingEnabled() OVERRIDE; | 51 virtual bool isContinuousSpellCheckingEnabled() OVERRIDE; |
| 52 virtual void toggleContinuousSpellChecking() OVERRIDE; | 52 virtual void toggleContinuousSpellChecking() OVERRIDE; |
| 53 virtual bool isGrammarCheckingEnabled() OVERRIDE; | 53 virtual bool isGrammarCheckingEnabled() OVERRIDE; |
| 54 virtual bool shouldEraseMarkersAfterChangeSelection(blink::TextCheckingType)
const OVERRIDE; | 54 virtual bool shouldEraseMarkersAfterChangeSelection(blink::TextCheckingType)
const OVERRIDE; |
| 55 virtual void checkSpellingOfString(const String&, int* misspellingLocation,
int* misspellingLength) OVERRIDE; | 55 virtual void checkSpellingOfString(const String&, int* misspellingLocation,
int* misspellingLength) OVERRIDE; |
| 56 virtual void checkGrammarOfString(const String&, WTF::Vector<blink::GrammarD
etail>&, | 56 virtual void checkGrammarOfString(const String&, WTF::Vector<blink::GrammarD
etail>&, |
| 57 int* badGrammarLocation, int* badGrammarLength) OVERRIDE; | 57 int* badGrammarLocation, int* badGrammarLength) OVERRIDE; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 80 enum { | 80 enum { |
| 81 SpellCheckAutomatic, | 81 SpellCheckAutomatic, |
| 82 SpellCheckForcedOn, | 82 SpellCheckForcedOn, |
| 83 SpellCheckForcedOff | 83 SpellCheckForcedOff |
| 84 } m_spellCheckThisFieldStatus; | 84 } m_spellCheckThisFieldStatus; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace blink | 87 } // namespace blink |
| 88 | 88 |
| 89 #endif | 89 #endif |
| OLD | NEW |