| 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 #import "chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegat
e.h" | 5 #import "chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegat
e.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "chrome/browser/devtools/devtools_window.h" | 10 #include "chrome/browser/devtools/devtools_window.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #import "chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history
_swiper.h" | 12 #import "chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history
_swiper.h" |
| 13 #include "chrome/browser/spellchecker/spellcheck_platform.h" | 13 #include "chrome/browser/spellchecker/spellcheck_platform.h" |
| 14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/browser/ui/browser_commands.h" | 15 #include "chrome/browser/ui/browser_commands.h" |
| 16 #include "chrome/browser/ui/browser_finder.h" | 16 #include "chrome/browser/ui/browser_finder.h" |
| 17 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 17 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
| 19 #include "chrome/common/spellcheck_messages.h" | |
| 20 #include "chrome/common/url_constants.h" | 19 #include "chrome/common/url_constants.h" |
| 21 #include "components/prefs/pref_service.h" | 20 #include "components/prefs/pref_service.h" |
| 21 #include "components/spellcheck/common/spellcheck_messages.h" |
| 22 #include "content/public/browser/render_process_host.h" | 22 #include "content/public/browser/render_process_host.h" |
| 23 #include "content/public/browser/render_view_host.h" | 23 #include "content/public/browser/render_view_host.h" |
| 24 #include "content/public/browser/render_widget_host.h" | 24 #include "content/public/browser/render_widget_host.h" |
| 25 #include "content/public/browser/render_widget_host_view.h" | 25 #include "content/public/browser/render_widget_host_view.h" |
| 26 #include "content/public/browser/web_contents.h" | 26 #include "content/public/browser/web_contents.h" |
| 27 | 27 |
| 28 using content::RenderViewHost; | 28 using content::RenderViewHost; |
| 29 | 29 |
| 30 @interface ChromeRenderWidgetHostViewMacDelegate () <HistorySwiperDelegate> | 30 @interface ChromeRenderWidgetHostViewMacDelegate () <HistorySwiperDelegate> |
| 31 @end | 31 @end |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); | 204 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); |
| 205 DCHECK(profile); | 205 DCHECK(profile); |
| 206 PrefService* pref = profile->GetPrefs(); | 206 PrefService* pref = profile->GetPrefs(); |
| 207 pref->SetBoolean(prefs::kEnableContinuousSpellcheck, | 207 pref->SetBoolean(prefs::kEnableContinuousSpellcheck, |
| 208 !pref->GetBoolean(prefs::kEnableContinuousSpellcheck)); | 208 !pref->GetBoolean(prefs::kEnableContinuousSpellcheck)); |
| 209 } | 209 } |
| 210 | 210 |
| 211 // END Spellchecking methods | 211 // END Spellchecking methods |
| 212 | 212 |
| 213 @end | 213 @end |
| OLD | NEW |