OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |