Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: Source/web/SpellCheckerClientImpl.h

Issue 634893002: Replace OVERRIDE and FINAL with override and final in WebKit/public (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/SpeechRecognitionClientProxy.h ('k') | Source/web/StorageClientImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 23 matching lines...) Expand all
34 #include "core/page/SpellCheckerClient.h" 34 #include "core/page/SpellCheckerClient.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "platform/text/TextCheckerClient.h" 36 #include "platform/text/TextCheckerClient.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class LocalFrame; 40 class LocalFrame;
41 class HTMLInputElement; 41 class HTMLInputElement;
42 class WebViewImpl; 42 class WebViewImpl;
43 43
44 class SpellCheckerClientImpl FINAL : public SpellCheckerClient, public TextCheck erClient { 44 class SpellCheckerClientImpl final : public SpellCheckerClient, public TextCheck erClient {
45 public: 45 public:
46 explicit SpellCheckerClientImpl(WebViewImpl*); 46 explicit SpellCheckerClientImpl(WebViewImpl*);
47 47
48 virtual ~SpellCheckerClientImpl(); 48 virtual ~SpellCheckerClientImpl();
49 49
50 virtual bool isContinuousSpellCheckingEnabled() OVERRIDE; 50 virtual bool isContinuousSpellCheckingEnabled() override;
51 virtual void toggleContinuousSpellChecking() OVERRIDE; 51 virtual void toggleContinuousSpellChecking() override;
52 virtual bool isGrammarCheckingEnabled() OVERRIDE; 52 virtual bool isGrammarCheckingEnabled() override;
53 virtual bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const OVERRIDE; 53 virtual bool shouldEraseMarkersAfterChangeSelection(TextCheckingType) const override;
54 virtual void checkSpellingOfString(const String&, int* misspellingLocation, int* misspellingLength) OVERRIDE; 54 virtual void checkSpellingOfString(const String&, int* misspellingLocation, int* misspellingLength) override;
55 virtual void checkGrammarOfString(const String&, WTF::Vector<GrammarDetail>& , 55 virtual void checkGrammarOfString(const String&, WTF::Vector<GrammarDetail>& ,
56 int* badGrammarLocation, int* badGrammarLength) OVERRIDE; 56 int* badGrammarLocation, int* badGrammarLength) override;
57 virtual WTF::String getAutoCorrectSuggestionForMisspelledWord(const WTF::Str ing&) OVERRIDE; 57 virtual WTF::String getAutoCorrectSuggestionForMisspelledWord(const WTF::Str ing&) override;
58 virtual void updateSpellingUIWithMisspelledWord(const WTF::String&) OVERRIDE ; 58 virtual void updateSpellingUIWithMisspelledWord(const WTF::String&) override ;
59 virtual void showSpellingUI(bool show) OVERRIDE; 59 virtual void showSpellingUI(bool show) override;
60 virtual bool spellingUIIsShowing() OVERRIDE; 60 virtual bool spellingUIIsShowing() override;
61 virtual void requestCheckingOfString(PassRefPtrWillBeRawPtr<TextCheckingRequ est>) OVERRIDE; 61 virtual void requestCheckingOfString(PassRefPtrWillBeRawPtr<TextCheckingRequ est>) override;
62 62
63 virtual TextCheckerClient& textChecker() OVERRIDE { return *this; } 63 virtual TextCheckerClient& textChecker() override { return *this; }
64 64
65 private: 65 private:
66 // Returns whether or not the focused control needs spell-checking. 66 // Returns whether or not the focused control needs spell-checking.
67 // Currently, this function just retrieves the focused node and determines 67 // Currently, this function just retrieves the focused node and determines
68 // whether or not it is a <textarea> element or an element whose 68 // whether or not it is a <textarea> element or an element whose
69 // contenteditable attribute is true. 69 // contenteditable attribute is true.
70 // FIXME: Bug 740540: This code just implements the default behavior 70 // FIXME: Bug 740540: This code just implements the default behavior
71 // proposed in this issue. We should also retrieve "spellcheck" attributes 71 // proposed in this issue. We should also retrieve "spellcheck" attributes
72 // for text fields and create a flag to over-write the default behavior. 72 // for text fields and create a flag to over-write the default behavior.
73 bool shouldSpellcheckByDefault(); 73 bool shouldSpellcheckByDefault();
74 74
75 WebViewImpl* m_webView; 75 WebViewImpl* m_webView;
76 76
77 // This flag is set to false if spell check for this editor is manually 77 // This flag is set to false if spell check for this editor is manually
78 // turned off. The default setting is SpellCheckAutomatic. 78 // turned off. The default setting is SpellCheckAutomatic.
79 enum { 79 enum {
80 SpellCheckAutomatic, 80 SpellCheckAutomatic,
81 SpellCheckForcedOn, 81 SpellCheckForcedOn,
82 SpellCheckForcedOff 82 SpellCheckForcedOff
83 } m_spellCheckThisFieldStatus; 83 } m_spellCheckThisFieldStatus;
84 }; 84 };
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif 88 #endif
OLDNEW
« no previous file with comments | « Source/web/SpeechRecognitionClientProxy.h ('k') | Source/web/StorageClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698