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/surface/io_surface_support_mac.h" | 9 #include "app/surface/io_surface_support_mac.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "content/browser/gpu_process_host.h" | 29 #include "content/browser/gpu_process_host.h" |
30 #include "content/browser/plugin_process_host.h" | 30 #include "content/browser/plugin_process_host.h" |
31 #include "content/browser/renderer_host/backing_store_mac.h" | 31 #include "content/browser/renderer_host/backing_store_mac.h" |
32 #include "content/browser/renderer_host/render_process_host.h" | 32 #include "content/browser/renderer_host/render_process_host.h" |
33 #include "content/browser/renderer_host/render_view_host.h" | 33 #include "content/browser/renderer_host/render_view_host.h" |
34 #include "content/browser/renderer_host/render_widget_host.h" | 34 #include "content/browser/renderer_host/render_widget_host.h" |
35 #include "content/common/edit_command.h" | 35 #include "content/common/edit_command.h" |
36 #include "content/common/gpu_messages.h" | 36 #include "content/common/gpu_messages.h" |
37 #include "content/common/native_web_keyboard_event.h" | 37 #include "content/common/native_web_keyboard_event.h" |
38 #include "content/common/plugin_messages.h" | 38 #include "content/common/plugin_messages.h" |
| 39 #include "content/common/view_messages.h" |
39 #include "skia/ext/platform_canvas.h" | 40 #include "skia/ext/platform_canvas.h" |
40 #import "third_party/mozilla/ComplexTextInputPanel.h" | 41 #import "third_party/mozilla/ComplexTextInputPanel.h" |
41 #include "third_party/skia/include/core/SkColor.h" | 42 #include "third_party/skia/include/core/SkColor.h" |
42 #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" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
44 #include "ui/gfx/gl/gl_switches.h" | 45 #include "ui/gfx/gl/gl_switches.h" |
45 #include "webkit/glue/webaccessibility.h" | 46 #include "webkit/glue/webaccessibility.h" |
46 #include "webkit/plugins/npapi/webplugin.h" | 47 #include "webkit/plugins/npapi/webplugin.h" |
47 | 48 |
48 using WebKit::WebInputEvent; | 49 using WebKit::WebInputEvent; |
(...skipping 2813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2862 if (!string) return NO; | 2863 if (!string) return NO; |
2863 | 2864 |
2864 // If the user is currently using an IME, confirm the IME input, | 2865 // If the user is currently using an IME, confirm the IME input, |
2865 // and then insert the text from the service, the same as TextEdit and Safari. | 2866 // and then insert the text from the service, the same as TextEdit and Safari. |
2866 [self confirmComposition]; | 2867 [self confirmComposition]; |
2867 [self insertText:string]; | 2868 [self insertText:string]; |
2868 return YES; | 2869 return YES; |
2869 } | 2870 } |
2870 | 2871 |
2871 @end | 2872 @end |
OLD | NEW |