| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/scoped_ptr.h" | |
| 15 #include "chrome/browser/tab_contents/render_view_context_menu_observer.h" | 14 #include "chrome/browser/tab_contents/render_view_context_menu_observer.h" |
| 16 #include "ui/base/models/simple_menu_model.h" | 15 #include "ui/base/models/simple_menu_model.h" |
| 17 | 16 |
| 18 class RenderViewContextMenuProxy; | 17 class RenderViewContextMenuProxy; |
| 19 | 18 |
| 20 // A class that implements the 'spell-checker options' submenu. This class | 19 // A class that implements the 'spell-checker options' submenu. This class |
| 21 // creates the submenu, add it to the parent menu, and handles events. | 20 // creates the submenu, add it to the parent menu, and handles events. |
| 22 class SpellCheckerSubMenuObserver : public RenderViewContextMenuObserver { | 21 class SpellCheckerSubMenuObserver : public RenderViewContextMenuObserver { |
| 23 public: | 22 public: |
| 24 SpellCheckerSubMenuObserver(RenderViewContextMenuProxy* proxy, | 23 SpellCheckerSubMenuObserver(RenderViewContextMenuProxy* proxy, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 54 // The radio items representing languages available for spellchecking. | 53 // The radio items representing languages available for spellchecking. |
| 55 int language_group_; | 54 int language_group_; |
| 56 int language_selected_; | 55 int language_selected_; |
| 57 std::vector<std::string> languages_; | 56 std::vector<std::string> languages_; |
| 58 #endif // !OS_MACOSX | 57 #endif // !OS_MACOSX |
| 59 | 58 |
| 60 DISALLOW_COPY_AND_ASSIGN(SpellCheckerSubMenuObserver); | 59 DISALLOW_COPY_AND_ASSIGN(SpellCheckerSubMenuObserver); |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 #endif // CHROME_BROWSER_TAB_CONTENTS_SPELLCHECKER_SUBMENU_OBSERVER_H_ | 62 #endif // CHROME_BROWSER_TAB_CONTENTS_SPELLCHECKER_SUBMENU_OBSERVER_H_ |
| OLD | NEW |