OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_RENDERER_CONTEXT_MENU_SPELLING_MENU_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLING_MENU_OBSERVER_H_ |
6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLING_MENU_OBSERVER_H_ | 6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLING_MENU_OBSERVER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/prefs/pref_member.h" | |
17 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
18 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
19 #include "chrome/browser/spellchecker/spelling_service_client.h" | 18 #include "chrome/browser/spellchecker/spelling_service_client.h" |
| 19 #include "components/prefs/pref_member.h" |
20 #include "components/renderer_context_menu/render_view_context_menu_observer.h" | 20 #include "components/renderer_context_menu/render_view_context_menu_observer.h" |
21 | 21 |
22 class RenderViewContextMenuProxy; | 22 class RenderViewContextMenuProxy; |
23 struct SpellCheckResult; | 23 struct SpellCheckResult; |
24 | 24 |
25 // An observer that listens to events from the RenderViewContextMenu class and | 25 // An observer that listens to events from the RenderViewContextMenu class and |
26 // shows suggestions from the Spelling ("do you mean") service to a context menu | 26 // shows suggestions from the Spelling ("do you mean") service to a context menu |
27 // while we show it. This class implements two interfaces: | 27 // while we show it. This class implements two interfaces: |
28 // * RenderViewContextMenuObserver | 28 // * RenderViewContextMenuObserver |
29 // This interface is used for adding a menu item and update it while showing. | 29 // This interface is used for adding a menu item and update it while showing. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // JSON-RPC request to the service and retrieve suggestions. | 115 // JSON-RPC request to the service and retrieve suggestions. |
116 BooleanPrefMember integrate_spelling_service_; | 116 BooleanPrefMember integrate_spelling_service_; |
117 | 117 |
118 // Flag indicating whether automatic spelling correction is enabled. | 118 // Flag indicating whether automatic spelling correction is enabled. |
119 BooleanPrefMember autocorrect_spelling_; | 119 BooleanPrefMember autocorrect_spelling_; |
120 | 120 |
121 DISALLOW_COPY_AND_ASSIGN(SpellingMenuObserver); | 121 DISALLOW_COPY_AND_ASSIGN(SpellingMenuObserver); |
122 }; | 122 }; |
123 | 123 |
124 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLING_MENU_OBSERVER_H_ | 124 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLING_MENU_OBSERVER_H_ |
OLD | NEW |