Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: chrome/browser/tab_contents/spellchecker_submenu_observer.h

Issue 10548022: Synchronize the check status of the "Check Spelling While Typing" item. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
(...skipping 22 matching lines...) Expand all
33 virtual void ExecuteCommand(int command_id) OVERRIDE; 33 virtual void ExecuteCommand(int command_id) OVERRIDE;
34 34
35 private: 35 private:
36 // The interface for adding a submenu to the parent. 36 // The interface for adding a submenu to the parent.
37 RenderViewContextMenuProxy* proxy_; 37 RenderViewContextMenuProxy* proxy_;
38 38
39 // The submenu of the 'spell-checker options'. This class adds items to this 39 // The submenu of the 'spell-checker options'. This class adds items to this
40 // submenu and add it to the parent menu. 40 // submenu and add it to the parent menu.
41 ui::SimpleMenuModel submenu_model_; 41 ui::SimpleMenuModel submenu_model_;
42 42
43 #if defined(OS_MACOSX) 43 #if !defined(OS_MACOSX)
44 // On OS X we use the Cocoa spellchecker and try to match the native context
45 // menu.
46 bool check_spelling_while_typing_;
47 #else
48 // Hunspell spelling submenu. 44 // Hunspell spelling submenu.
49
50 // Whether spellchecking is enabled in the focused element or not.
51 bool spellcheck_enabled_;
52
53 // The radio items representing languages available for spellchecking. 45 // The radio items representing languages available for spellchecking.
54 int language_group_; 46 int language_group_;
55 int language_selected_; 47 int language_selected_;
56 std::vector<std::string> languages_; 48 std::vector<std::string> languages_;
57 #endif // !OS_MACOSX 49 #endif // !OS_MACOSX
58 50
59 DISALLOW_COPY_AND_ASSIGN(SpellCheckerSubMenuObserver); 51 DISALLOW_COPY_AND_ASSIGN(SpellCheckerSubMenuObserver);
60 }; 52 };
61 53
62 #endif // CHROME_BROWSER_TAB_CONTENTS_SPELLCHECKER_SUBMENU_OBSERVER_H_ 54 #endif // CHROME_BROWSER_TAB_CONTENTS_SPELLCHECKER_SUBMENU_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698