OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
10 #include "chrome/browser/mac/closure_blocks_leopard_compat.h" | |
11 #include "chrome/browser/spellchecker/spellchecker_platform_engine.h" | 10 #include "chrome/browser/spellchecker/spellchecker_platform_engine.h" |
12 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
13 #include "chrome/browser/ui/browser_list.h" | 12 #include "chrome/browser/ui/browser_list.h" |
14 #import "chrome/browser/ui/cocoa/history_overlay_controller.h" | 13 #import "chrome/browser/ui/cocoa/history_overlay_controller.h" |
15 #import "chrome/browser/ui/cocoa/view_id_util.h" | 14 #import "chrome/browser/ui/cocoa/view_id_util.h" |
16 #include "chrome/common/spellcheck_messages.h" | 15 #include "chrome/common/spellcheck_messages.h" |
17 #include "content/browser/debugger/devtools_client_host.h" | 16 #include "content/browser/debugger/devtools_client_host.h" |
| 17 #include "content/browser/mac/closure_blocks_leopard_compat.h" |
18 #include "content/browser/renderer_host/render_view_host.h" | 18 #include "content/browser/renderer_host/render_view_host.h" |
19 #include "content/browser/renderer_host/render_view_host_observer.h" | 19 #include "content/browser/renderer_host/render_view_host_observer.h" |
20 #include "content/browser/renderer_host/render_widget_host.h" | 20 #include "content/browser/renderer_host/render_widget_host.h" |
21 #include "content/browser/renderer_host/render_widget_host_view.h" | 21 #include "content/browser/renderer_host/render_widget_host_view.h" |
22 | 22 |
23 // Declare things that are part of the 10.7 SDK. | 23 // Declare things that are part of the 10.7 SDK. |
24 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 24 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
25 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | 25 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 |
26 enum { | 26 enum { |
27 NSEventPhaseNone = 0, // event not associated with a phase. | 27 NSEventPhaseNone = 0, // event not associated with a phase. |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 } | 316 } |
317 | 317 |
318 - (void)spellCheckEnabled:(BOOL)enabled checked:(BOOL)checked { | 318 - (void)spellCheckEnabled:(BOOL)enabled checked:(BOOL)checked { |
319 spellcheck_enabled_ = enabled; | 319 spellcheck_enabled_ = enabled; |
320 spellcheck_checked_ = checked; | 320 spellcheck_checked_ = checked; |
321 } | 321 } |
322 | 322 |
323 // END Spellchecking methods | 323 // END Spellchecking methods |
324 | 324 |
325 @end | 325 @end |
OLD | NEW |