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 #include "chrome/browser/tab_contents/spellchecker_submenu_observer.h" | 5 #include "chrome/browser/tab_contents/spellchecker_submenu_observer.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/prefs/pref_service.h" |
8 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
9 #include "chrome/browser/prefs/pref_service.h" | |
10 #include "chrome/browser/spellchecker/spellcheck_platform_mac.h" | 10 #include "chrome/browser/spellchecker/spellcheck_platform_mac.h" |
11 #include "chrome/browser/tab_contents/render_view_context_menu.h" | 11 #include "chrome/browser/tab_contents/render_view_context_menu.h" |
12 #include "chrome/browser/tab_contents/spelling_bubble_model.h" | 12 #include "chrome/browser/tab_contents/spelling_bubble_model.h" |
13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
15 #include "chrome/common/spellcheck_messages.h" | 15 #include "chrome/common/spellcheck_messages.h" |
16 #include "content/public/browser/render_view_host.h" | 16 #include "content/public/browser/render_view_host.h" |
17 #include "content/public/browser/render_widget_host_view.h" | 17 #include "content/public/browser/render_widget_host_view.h" |
18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 prefs::kEnableContinuousSpellcheck, | 114 prefs::kEnableContinuousSpellcheck, |
115 !profile->GetPrefs()->GetBoolean(prefs::kEnableContinuousSpellcheck)); | 115 !profile->GetPrefs()->GetBoolean(prefs::kEnableContinuousSpellcheck)); |
116 break; | 116 break; |
117 | 117 |
118 case IDC_SPELLPANEL_TOGGLE: | 118 case IDC_SPELLPANEL_TOGGLE: |
119 rvh->Send(new SpellCheckMsg_ToggleSpellPanel( | 119 rvh->Send(new SpellCheckMsg_ToggleSpellPanel( |
120 rvh->GetRoutingID(), spellcheck_mac::SpellingPanelVisible())); | 120 rvh->GetRoutingID(), spellcheck_mac::SpellingPanelVisible())); |
121 break; | 121 break; |
122 } | 122 } |
123 } | 123 } |
OLD | NEW |