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_SPELLCHECKER_SUBMENU_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLCHECKER_SUBMENU_OBSERVER_H_ |
6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLCHECKER_SUBMENU_OBSERVER_H_ | 6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLCHECKER_SUBMENU_OBSERVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 RenderViewContextMenuProxy* proxy_; | 36 RenderViewContextMenuProxy* proxy_; |
37 | 37 |
38 // The submenu of the 'spell-checker options'. This class adds items to this | 38 // The submenu of the 'spell-checker options'. This class adds items to this |
39 // submenu and add it to the parent menu. | 39 // submenu and add it to the parent menu. |
40 ui::SimpleMenuModel submenu_model_; | 40 ui::SimpleMenuModel submenu_model_; |
41 | 41 |
42 #if !defined(OS_MACOSX) | 42 #if !defined(OS_MACOSX) |
43 // Hunspell spelling submenu. | 43 // Hunspell spelling submenu. |
44 // The radio items representing languages available for spellchecking. | 44 // The radio items representing languages available for spellchecking. |
45 int language_group_; | 45 int language_group_; |
46 int language_selected_; | 46 // The number of languages currently selected for spellchecking, which are |
| 47 // also the first elements in |languages_|. |
| 48 size_t selected_languages_; |
| 49 // A vector of all languages available for spellchecking. |
47 std::vector<std::string> languages_; | 50 std::vector<std::string> languages_; |
48 #endif // !OS_MACOSX | 51 #endif // !OS_MACOSX |
49 | 52 |
50 DISALLOW_COPY_AND_ASSIGN(SpellCheckerSubMenuObserver); | 53 DISALLOW_COPY_AND_ASSIGN(SpellCheckerSubMenuObserver); |
51 }; | 54 }; |
52 | 55 |
53 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLCHECKER_SUBMENU_OBSERVER_H_ | 56 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLCHECKER_SUBMENU_OBSERVER_H_ |
OLD | NEW |