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 #include "content/browser/renderer_host/render_widget_host_view_mac.h" | 5 #include "content/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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/mac/closure_blocks_leopard_compat.h" | 13 #include "base/mac/closure_blocks_leopard_compat.h" |
14 #include "base/mac/mac_util.h" | 14 #include "base/mac/mac_util.h" |
15 #include "base/mac/scoped_cftyperef.h" | 15 #include "base/mac/scoped_cftyperef.h" |
16 #import "base/mac/scoped_nsautorelease_pool.h" | 16 #import "base/mac/scoped_nsautorelease_pool.h" |
17 #import "base/memory/scoped_nsobject.h" | 17 #import "base/memory/scoped_nsobject.h" |
| 18 #include "base/message_loop.h" |
18 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
19 #include "base/string_util.h" | 20 #include "base/string_util.h" |
20 #include "base/sys_info.h" | 21 #include "base/sys_info.h" |
21 #include "base/sys_string_conversions.h" | 22 #include "base/sys_string_conversions.h" |
22 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
23 #import "content/browser/accessibility/browser_accessibility_cocoa.h" | 24 #import "content/browser/accessibility/browser_accessibility_cocoa.h" |
24 #include "content/browser/accessibility/browser_accessibility_manager.h" | 25 #include "content/browser/accessibility/browser_accessibility_manager.h" |
25 #include "content/browser/plugin_process_host.h" | 26 #include "content/browser/plugin_process_host.h" |
26 #import "content/browser/renderer_host/accelerated_plugin_view_mac.h" | 27 #import "content/browser/renderer_host/accelerated_plugin_view_mac.h" |
27 #include "content/browser/renderer_host/backing_store_mac.h" | 28 #include "content/browser/renderer_host/backing_store_mac.h" |
(...skipping 3063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3091 if (!string) return NO; | 3092 if (!string) return NO; |
3092 | 3093 |
3093 // If the user is currently using an IME, confirm the IME input, | 3094 // If the user is currently using an IME, confirm the IME input, |
3094 // and then insert the text from the service, the same as TextEdit and Safari. | 3095 // and then insert the text from the service, the same as TextEdit and Safari. |
3095 [self confirmComposition]; | 3096 [self confirmComposition]; |
3096 [self insertText:string]; | 3097 [self insertText:string]; |
3097 return YES; | 3098 return YES; |
3098 } | 3099 } |
3099 | 3100 |
3100 @end | 3101 @end |
OLD | NEW |