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 <QuartzCore/QuartzCore.h> | 5 #include <QuartzCore/QuartzCore.h> |
6 | 6 |
7 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" | 7 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
8 | 8 |
9 #include "app/app_switches.h" | 9 #include "app/app_switches.h" |
10 #include "app/surface/io_surface_support_mac.h" | 10 #include "app/surface/io_surface_support_mac.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/mac/scoped_cftyperef.h" | 13 #include "base/mac/scoped_cftyperef.h" |
14 #import "base/mac/scoped_nsautorelease_pool.h" | 14 #import "base/mac/scoped_nsautorelease_pool.h" |
15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
16 #import "base/scoped_nsobject.h" | 16 #import "base/scoped_nsobject.h" |
17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
18 #include "base/sys_info.h" | 18 #include "base/sys_info.h" |
19 #include "base/sys_string_conversions.h" | 19 #include "base/sys_string_conversions.h" |
20 #import "chrome/browser/accessibility/browser_accessibility_cocoa.h" | 20 #import "chrome/browser/accessibility/browser_accessibility_cocoa.h" |
21 #include "chrome/browser/accessibility/browser_accessibility_state.h" | 21 #include "chrome/browser/accessibility/browser_accessibility_state.h" |
22 #include "chrome/browser/browser_trial.h" | 22 #include "chrome/browser/browser_trial.h" |
23 #include "chrome/browser/gpu_process_host_ui_shim.h" | 23 #include "chrome/browser/gpu_process_host_ui_shim.h" |
24 #include "chrome/browser/spellchecker_platform_engine.h" | 24 #include "chrome/browser/spellchecker_platform_engine.h" |
25 #import "chrome/browser/ui/cocoa/rwhvm_editcommand_helper.h" | 25 #import "chrome/browser/ui/cocoa/rwhvm_editcommand_helper.h" |
26 #import "chrome/browser/ui/cocoa/view_id_util.h" | 26 #import "chrome/browser/ui/cocoa/view_id_util.h" |
27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
28 #include "chrome/common/edit_command.h" | 28 #include "chrome/common/edit_command.h" |
29 #include "chrome/common/native_web_keyboard_event.h" | |
30 #include "chrome/common/render_messages.h" | 29 #include "chrome/common/render_messages.h" |
31 #include "content/browser/browser_thread.h" | 30 #include "content/browser/browser_thread.h" |
32 #include "content/browser/gpu_process_host.h" | 31 #include "content/browser/gpu_process_host.h" |
33 #include "content/browser/plugin_process_host.h" | 32 #include "content/browser/plugin_process_host.h" |
34 #include "content/browser/renderer_host/backing_store_mac.h" | 33 #include "content/browser/renderer_host/backing_store_mac.h" |
35 #include "content/browser/renderer_host/render_process_host.h" | 34 #include "content/browser/renderer_host/render_process_host.h" |
36 #include "content/browser/renderer_host/render_view_host.h" | 35 #include "content/browser/renderer_host/render_view_host.h" |
37 #include "content/browser/renderer_host/render_widget_host.h" | 36 #include "content/browser/renderer_host/render_widget_host.h" |
38 #include "content/common/gpu_messages.h" | 37 #include "content/common/gpu_messages.h" |
| 38 #include "content/common/native_web_keyboard_event.h" |
39 #include "content/common/plugin_messages.h" | 39 #include "content/common/plugin_messages.h" |
40 #include "skia/ext/platform_canvas.h" | 40 #include "skia/ext/platform_canvas.h" |
41 #import "third_party/mozilla/ComplexTextInputPanel.h" | 41 #import "third_party/mozilla/ComplexTextInputPanel.h" |
42 #include "third_party/skia/include/core/SkColor.h" | 42 #include "third_party/skia/include/core/SkColor.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/mac/WebInputEventFact
ory.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/mac/WebInputEventFact
ory.h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
45 #include "webkit/glue/webaccessibility.h" | 45 #include "webkit/glue/webaccessibility.h" |
46 #include "webkit/plugins/npapi/webplugin.h" | 46 #include "webkit/plugins/npapi/webplugin.h" |
47 | 47 |
48 using WebKit::WebInputEvent; | 48 using WebKit::WebInputEvent; |
(...skipping 2794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2843 if (!string) return NO; | 2843 if (!string) return NO; |
2844 | 2844 |
2845 // If the user is currently using an IME, confirm the IME input, | 2845 // If the user is currently using an IME, confirm the IME input, |
2846 // and then insert the text from the service, the same as TextEdit and Safari. | 2846 // and then insert the text from the service, the same as TextEdit and Safari. |
2847 [self confirmComposition]; | 2847 [self confirmComposition]; |
2848 [self insertText:string]; | 2848 [self insertText:string]; |
2849 return YES; | 2849 return YES; |
2850 } | 2850 } |
2851 | 2851 |
2852 @end | 2852 @end |
OLD | NEW |