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_BROWSER_TAB_CONTENTS_SPELLCHECKER_SUBMENU_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_SPELLCHECKER_SUBMENU_OBSERVER_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_SPELLCHECKER_SUBMENU_OBSERVER_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_SPELLCHECKER_SUBMENU_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 26 matching lines...) Expand all Loading... |
37 // The interface for adding a submenu to the parent. | 37 // The interface for adding a submenu to the parent. |
38 RenderViewContextMenuProxy* proxy_; | 38 RenderViewContextMenuProxy* proxy_; |
39 | 39 |
40 // The submenu of the 'spell-checker options'. This class adds items to this | 40 // The submenu of the 'spell-checker options'. This class adds items to this |
41 // submenu and add it to the parent menu. | 41 // submenu and add it to the parent menu. |
42 ui::SimpleMenuModel submenu_model_; | 42 ui::SimpleMenuModel submenu_model_; |
43 | 43 |
44 // Whether spellchecking is enabled in the focused element or not. | 44 // Whether spellchecking is enabled in the focused element or not. |
45 bool spellcheck_enabled_; | 45 bool spellcheck_enabled_; |
46 | 46 |
| 47 // Whether we integrate the spelling service to Chrome. |
| 48 bool integrate_spelling_service_; |
| 49 |
47 // The radio items representing languages available for spellchecking. | 50 // The radio items representing languages available for spellchecking. |
48 int language_group_; | 51 int language_group_; |
49 int language_selected_; | 52 int language_selected_; |
50 std::vector<std::string> languages_; | 53 std::vector<std::string> languages_; |
51 | 54 |
52 DISALLOW_COPY_AND_ASSIGN(SpellCheckerSubMenuObserver); | 55 DISALLOW_COPY_AND_ASSIGN(SpellCheckerSubMenuObserver); |
53 }; | 56 }; |
54 | 57 |
55 #endif // CHROME_BROWSER_TAB_CONTENTS_SPELLCHECKER_SUBMENU_OBSERVER_H_ | 58 #endif // CHROME_BROWSER_TAB_CONTENTS_SPELLCHECKER_SUBMENU_OBSERVER_H_ |
OLD | NEW |