| OLD | NEW |
| 1 // Copyright (c) 2011 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 "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
| 9 #include "chrome/browser/prefs/pref_service.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/browser/renderer_host/render_view_host.h" | 16 #include "content/browser/renderer_host/render_view_host.h" |
| 17 #include "content/browser/renderer_host/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" |
| 20 #include "ui/base/models/simple_menu_model.h" | 20 #include "ui/base/models/simple_menu_model.h" |
| 21 | 21 |
| 22 using content::BrowserThread; | 22 using content::BrowserThread; |
| 23 | 23 |
| 24 SpellCheckerSubMenuObserver::SpellCheckerSubMenuObserver( | 24 SpellCheckerSubMenuObserver::SpellCheckerSubMenuObserver( |
| 25 RenderViewContextMenuProxy* proxy, | 25 RenderViewContextMenuProxy* proxy, |
| 26 ui::SimpleMenuModel::Delegate* delegate, | 26 ui::SimpleMenuModel::Delegate* delegate, |
| 27 int group) | 27 int group) |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 case IDC_CHECK_SPELLING_OF_THIS_FIELD: | 122 case IDC_CHECK_SPELLING_OF_THIS_FIELD: |
| 123 rvh->Send(new SpellCheckMsg_ToggleSpellCheck(rvh->routing_id())); | 123 rvh->Send(new SpellCheckMsg_ToggleSpellCheck(rvh->routing_id())); |
| 124 break; | 124 break; |
| 125 | 125 |
| 126 case IDC_SPELLPANEL_TOGGLE: | 126 case IDC_SPELLPANEL_TOGGLE: |
| 127 rvh->Send(new SpellCheckMsg_ToggleSpellPanel( | 127 rvh->Send(new SpellCheckMsg_ToggleSpellPanel( |
| 128 rvh->routing_id(), spellcheck_mac::SpellingPanelVisible())); | 128 rvh->routing_id(), spellcheck_mac::SpellingPanelVisible())); |
| 129 break; | 129 break; |
| 130 } | 130 } |
| 131 } | 131 } |
| OLD | NEW |