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

Side by Side Diff: chrome/browser/renderer_context_menu/spellchecker_submenu_observer_mac.cc

Issue 469993006: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 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 #include "chrome/browser/renderer_context_menu/spellchecker_submenu_observer.h" 5 #include "chrome/browser/renderer_context_menu/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 "base/prefs/pref_service.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" 10 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
11 #include "chrome/browser/renderer_context_menu/spelling_bubble_model.h" 11 #include "chrome/browser/renderer_context_menu/spelling_bubble_model.h"
12 #include "chrome/browser/spellchecker/spellcheck_platform_mac.h" 12 #include "chrome/browser/spellchecker/spellcheck_platform_mac.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 "chrome/grit/generated_resources.h"
16 #include "components/user_prefs/user_prefs.h" 17 #include "components/user_prefs/user_prefs.h"
17 #include "content/public/browser/render_view_host.h" 18 #include "content/public/browser/render_view_host.h"
18 #include "content/public/browser/render_widget_host_view.h" 19 #include "content/public/browser/render_widget_host_view.h"
19 #include "grit/generated_resources.h"
20 #include "ui/base/l10n/l10n_util.h" 20 #include "ui/base/l10n/l10n_util.h"
21 #include "ui/base/models/simple_menu_model.h" 21 #include "ui/base/models/simple_menu_model.h"
22 22
23 using content::BrowserThread; 23 using content::BrowserThread;
24 24
25 namespace { 25 namespace {
26 26
27 PrefService* GetPrefs(content::BrowserContext* context) { 27 PrefService* GetPrefs(content::BrowserContext* context) {
28 return user_prefs::UserPrefs::Get(context); 28 return user_prefs::UserPrefs::Get(context);
29 } 29 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 prefs::kEnableContinuousSpellcheck, 123 prefs::kEnableContinuousSpellcheck,
124 !GetPrefs(context)->GetBoolean(prefs::kEnableContinuousSpellcheck)); 124 !GetPrefs(context)->GetBoolean(prefs::kEnableContinuousSpellcheck));
125 break; 125 break;
126 126
127 case IDC_SPELLPANEL_TOGGLE: 127 case IDC_SPELLPANEL_TOGGLE:
128 rvh->Send(new SpellCheckMsg_ToggleSpellPanel( 128 rvh->Send(new SpellCheckMsg_ToggleSpellPanel(
129 rvh->GetRoutingID(), spellcheck_mac::SpellingPanelVisible())); 129 rvh->GetRoutingID(), spellcheck_mac::SpellingPanelVisible()));
130 break; 130 break;
131 } 131 }
132 } 132 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698