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 8613004: Add OVERRIDE to chrome/renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck.h ('k') | chrome/renderer/translate_helper.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 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual bool is_using_platform_spelling_engine() const; 43 virtual bool is_using_platform_spelling_engine() const;
44 44
45 // The number of ongoing IPC requests. 45 // The number of ongoing IPC requests.
46 size_t pending_text_request_size() const { 46 size_t pending_text_request_size() const {
47 return text_check_completions_.size(); 47 return text_check_completions_.size();
48 } 48 }
49 49
50 int document_tag() const { return document_tag_; } 50 int document_tag() const { return document_tag_; }
51 51
52 // RenderViewObserver implementation. 52 // RenderViewObserver implementation.
53 virtual bool OnMessageReceived(const IPC::Message& message); 53 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
54 virtual void FocusedNodeChanged(const WebKit::WebNode& node); 54 virtual void FocusedNodeChanged(const WebKit::WebNode& node) OVERRIDE;
55 55
56 void SetSpellCheck(SpellCheck* spellcheck); 56 void SetSpellCheck(SpellCheck* spellcheck);
57 57
58 private: 58 private:
59 // WebKit::WebSpellCheckClient implementation. 59 // WebKit::WebSpellCheckClient implementation.
60 virtual void spellCheck( 60 virtual void spellCheck(
61 const WebKit::WebString& text, 61 const WebKit::WebString& text,
62 int& offset, 62 int& offset,
63 int& length, 63 int& length,
64 WebKit::WebVector<WebKit::WebString>* optional_suggestions); 64 WebKit::WebVector<WebKit::WebString>* optional_suggestions);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // True if the browser is showing the spelling panel for us. 96 // True if the browser is showing the spelling panel for us.
97 bool spelling_panel_visible_; 97 bool spelling_panel_visible_;
98 98
99 // Spellcheck implementation for use. Weak reference. 99 // Spellcheck implementation for use. Weak reference.
100 SpellCheck* spellcheck_; 100 SpellCheck* spellcheck_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider); 102 DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider);
103 }; 103 };
104 104
105 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ 105 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck.h ('k') | chrome/renderer/translate_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698