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

Side by Side Diff: chrome/renderer/spellchecker/spellcheck_provider.h

Issue 630603003: Replacing the OVERRIDE with override in chrome/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ 5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_
6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ 6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 return text_check_completions_.size(); 48 return text_check_completions_.size();
49 } 49 }
50 50
51 // Replace shared spellcheck data. 51 // Replace shared spellcheck data.
52 void set_spellcheck(SpellCheck* spellcheck) { spellcheck_ = spellcheck; } 52 void set_spellcheck(SpellCheck* spellcheck) { spellcheck_ = spellcheck; }
53 53
54 // Enables document-wide spellchecking. 54 // Enables document-wide spellchecking.
55 void EnableSpellcheck(bool enabled); 55 void EnableSpellcheck(bool enabled);
56 56
57 // RenderViewObserver implementation. 57 // RenderViewObserver implementation.
58 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 58 virtual bool OnMessageReceived(const IPC::Message& message) override;
59 virtual void FocusedNodeChanged(const blink::WebNode& node) OVERRIDE; 59 virtual void FocusedNodeChanged(const blink::WebNode& node) override;
60 60
61 private: 61 private:
62 friend class TestingSpellCheckProvider; 62 friend class TestingSpellCheckProvider;
63 63
64 // Tries to satisfy a spell check request from the cache in |last_request_|. 64 // Tries to satisfy a spell check request from the cache in |last_request_|.
65 // Returns true (and cancels/finishes the completion) if it can, false 65 // Returns true (and cancels/finishes the completion) if it can, false
66 // if the provider should forward the query on. 66 // if the provider should forward the query on.
67 bool SatisfyRequestFromCache(const base::string16& text, 67 bool SatisfyRequestFromCache(const base::string16& text,
68 blink::WebTextCheckingCompletion* completion); 68 blink::WebTextCheckingCompletion* completion);
69 69
70 // blink::WebSpellCheckClient implementation. 70 // blink::WebSpellCheckClient implementation.
71 virtual void spellCheck( 71 virtual void spellCheck(
72 const blink::WebString& text, 72 const blink::WebString& text,
73 int& offset, 73 int& offset,
74 int& length, 74 int& length,
75 blink::WebVector<blink::WebString>* optional_suggestions) OVERRIDE; 75 blink::WebVector<blink::WebString>* optional_suggestions) override;
76 virtual void checkTextOfParagraph( 76 virtual void checkTextOfParagraph(
77 const blink::WebString& text, 77 const blink::WebString& text,
78 blink::WebTextCheckingTypeMask mask, 78 blink::WebTextCheckingTypeMask mask,
79 blink::WebVector<blink::WebTextCheckingResult>* results) OVERRIDE; 79 blink::WebVector<blink::WebTextCheckingResult>* results) override;
80 80
81 virtual void requestCheckingOfText( 81 virtual void requestCheckingOfText(
82 const blink::WebString& text, 82 const blink::WebString& text,
83 const blink::WebVector<uint32>& markers, 83 const blink::WebVector<uint32>& markers,
84 const blink::WebVector<unsigned>& marker_offsets, 84 const blink::WebVector<unsigned>& marker_offsets,
85 blink::WebTextCheckingCompletion* completion) OVERRIDE; 85 blink::WebTextCheckingCompletion* completion) override;
86 86
87 virtual blink::WebString autoCorrectWord( 87 virtual blink::WebString autoCorrectWord(
88 const blink::WebString& misspelled_word) OVERRIDE; 88 const blink::WebString& misspelled_word) override;
89 virtual void showSpellingUI(bool show) OVERRIDE; 89 virtual void showSpellingUI(bool show) override;
90 virtual bool isShowingSpellingUI() OVERRIDE; 90 virtual bool isShowingSpellingUI() override;
91 virtual void updateSpellingUIWithMisspelledWord( 91 virtual void updateSpellingUIWithMisspelledWord(
92 const blink::WebString& word) OVERRIDE; 92 const blink::WebString& word) override;
93 93
94 #if !defined(OS_MACOSX) 94 #if !defined(OS_MACOSX)
95 void OnRespondSpellingService( 95 void OnRespondSpellingService(
96 int identifier, 96 int identifier,
97 bool succeeded, 97 bool succeeded,
98 const base::string16& text, 98 const base::string16& text,
99 const std::vector<SpellCheckResult>& results); 99 const std::vector<SpellCheckResult>& results);
100 #endif 100 #endif
101 101
102 // Returns whether |text| has word characters, i.e. whether a spellchecker 102 // Returns whether |text| has word characters, i.e. whether a spellchecker
(...skipping 19 matching lines...) Expand all
122 // True if the browser is showing the spelling panel for us. 122 // True if the browser is showing the spelling panel for us.
123 bool spelling_panel_visible_; 123 bool spelling_panel_visible_;
124 124
125 // Weak pointer to shared (per RenderView) spellcheck data. 125 // Weak pointer to shared (per RenderView) spellcheck data.
126 SpellCheck* spellcheck_; 126 SpellCheck* spellcheck_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider); 128 DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider);
129 }; 129 };
130 130
131 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ 131 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck.cc ('k') | chrome/renderer/spellchecker/spellcheck_provider_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698