| 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/prefs/pref_service.h" | |
| 10 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 11 #include "chrome/browser/devtools/devtools_window.h" | 10 #include "chrome/browser/devtools/devtools_window.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 13 #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" |
| 14 #include "chrome/browser/spellchecker/spellcheck_platform.h" | 13 #include "chrome/browser/spellchecker/spellcheck_platform.h" |
| 15 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/browser_commands.h" | 15 #include "chrome/browser/ui/browser_commands.h" |
| 17 #include "chrome/browser/ui/browser_finder.h" | 16 #include "chrome/browser/ui/browser_finder.h" |
| 18 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 17 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 19 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
| 20 #include "chrome/common/spellcheck_messages.h" | 19 #include "chrome/common/spellcheck_messages.h" |
| 21 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
| 21 #include "components/prefs/pref_service.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 #include "content/public/browser/web_contents_observer.h" | 27 #include "content/public/browser/web_contents_observer.h" |
| 28 | 28 |
| 29 using content::RenderViewHost; | 29 using content::RenderViewHost; |
| 30 | 30 |
| 31 @interface ChromeRenderWidgetHostViewMacDelegate () <HistorySwiperDelegate> | 31 @interface ChromeRenderWidgetHostViewMacDelegate () <HistorySwiperDelegate> |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 } | 250 } |
| 251 | 251 |
| 252 - (void)spellCheckEnabled:(BOOL)enabled checked:(BOOL)checked { | 252 - (void)spellCheckEnabled:(BOOL)enabled checked:(BOOL)checked { |
| 253 spellcheckEnabled_ = enabled; | 253 spellcheckEnabled_ = enabled; |
| 254 spellcheckChecked_ = checked; | 254 spellcheckChecked_ = checked; |
| 255 } | 255 } |
| 256 | 256 |
| 257 // END Spellchecking methods | 257 // END Spellchecking methods |
| 258 | 258 |
| 259 @end | 259 @end |
| OLD | NEW |