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 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" | 5 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
6 | 6 |
7 #include <QuartzCore/QuartzCore.h> | 7 #include <QuartzCore/QuartzCore.h> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/mac/mac_util.h" | 11 #include "base/mac/mac_util.h" |
12 #include "base/mac/scoped_cftyperef.h" | 12 #include "base/mac/scoped_cftyperef.h" |
13 #import "base/mac/scoped_nsautorelease_pool.h" | 13 #import "base/mac/scoped_nsautorelease_pool.h" |
14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
15 #import "base/memory/scoped_nsobject.h" | 15 #import "base/memory/scoped_nsobject.h" |
16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
17 #include "base/sys_info.h" | 17 #include "base/sys_info.h" |
18 #include "base/sys_string_conversions.h" | 18 #include "base/sys_string_conversions.h" |
19 #include "chrome/browser/mac/closure_blocks_leopard_compat.h" | |
20 #import "chrome/browser/renderer_host/accelerated_plugin_view_mac.h" | 19 #import "chrome/browser/renderer_host/accelerated_plugin_view_mac.h" |
21 #import "chrome/browser/ui/cocoa/rwhvm_editcommand_helper.h" | 20 #import "chrome/browser/ui/cocoa/rwhvm_editcommand_helper.h" |
22 #import "content/browser/accessibility/browser_accessibility_cocoa.h" | 21 #import "content/browser/accessibility/browser_accessibility_cocoa.h" |
23 #include "content/browser/browser_thread.h" | 22 #include "content/browser/browser_thread.h" |
24 #include "content/browser/gpu/gpu_process_host.h" | 23 #include "content/browser/gpu/gpu_process_host.h" |
25 #include "content/browser/gpu/gpu_process_host_ui_shim.h" | 24 #include "content/browser/gpu/gpu_process_host_ui_shim.h" |
| 25 #include "content/browser/mac/closure_blocks_leopard_compat.h" |
26 #include "content/browser/plugin_process_host.h" | 26 #include "content/browser/plugin_process_host.h" |
27 #include "content/browser/renderer_host/backing_store_mac.h" | 27 #include "content/browser/renderer_host/backing_store_mac.h" |
28 #include "content/browser/renderer_host/render_process_host.h" | 28 #include "content/browser/renderer_host/render_process_host.h" |
29 #include "content/browser/renderer_host/render_view_host.h" | 29 #include "content/browser/renderer_host/render_view_host.h" |
30 #import "content/browser/renderer_host/render_widget_host_view_mac_delegate.h" | 30 #import "content/browser/renderer_host/render_widget_host_view_mac_delegate.h" |
31 #import "content/browser/renderer_host/text_input_client_mac.h" | 31 #import "content/browser/renderer_host/text_input_client_mac.h" |
32 #include "content/common/edit_command.h" | 32 #include "content/common/edit_command.h" |
33 #include "content/common/gpu/gpu_messages.h" | 33 #include "content/common/gpu/gpu_messages.h" |
34 #include "content/common/native_web_keyboard_event.h" | 34 #include "content/common/native_web_keyboard_event.h" |
35 #include "content/common/plugin_messages.h" | 35 #include "content/common/plugin_messages.h" |
(...skipping 2694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2730 if (!string) return NO; | 2730 if (!string) return NO; |
2731 | 2731 |
2732 // If the user is currently using an IME, confirm the IME input, | 2732 // If the user is currently using an IME, confirm the IME input, |
2733 // and then insert the text from the service, the same as TextEdit and Safari. | 2733 // and then insert the text from the service, the same as TextEdit and Safari. |
2734 [self confirmComposition]; | 2734 [self confirmComposition]; |
2735 [self insertText:string]; | 2735 [self insertText:string]; |
2736 return YES; | 2736 return YES; |
2737 } | 2737 } |
2738 | 2738 |
2739 @end | 2739 @end |
OLD | NEW |