OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/test/render_view_test.h" | 5 #include "chrome/test/render_view_test.h" |
6 | 6 |
7 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 7 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
8 #include "chrome/common/extensions/extension.h" | 8 #include "chrome/common/extensions/extension.h" |
9 #include "chrome/common/native_web_keyboard_event.h" | 9 #include "chrome/common/native_web_keyboard_event.h" |
10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
11 #include "chrome/common/renderer_preferences.h" | 11 #include "chrome/common/renderer_preferences.h" |
12 #include "chrome/renderer/extensions/event_bindings.h" | 12 #include "chrome/renderer/extensions/event_bindings.h" |
13 #include "chrome/renderer/extensions/extension_process_bindings.h" | 13 #include "chrome/renderer/extensions/extension_process_bindings.h" |
14 #include "chrome/renderer/extensions/js_only_v8_extensions.h" | 14 #include "chrome/renderer/extensions/js_only_v8_extensions.h" |
15 #include "chrome/renderer/extensions/renderer_extension_bindings.h" | 15 #include "chrome/renderer/extensions/renderer_extension_bindings.h" |
16 #include "chrome/renderer/renderer_main_platform_delegate.h" | 16 #include "chrome/renderer/renderer_main_platform_delegate.h" |
17 #include "webkit/api/public/WebFrame.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
18 #include "webkit/api/public/WebInputEvent.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
19 #include "webkit/api/public/WebKit.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h" |
20 #include "webkit/api/public/WebScriptController.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebScriptController.h" |
21 #include "webkit/api/public/WebScriptSource.h" | 21 #include "third_party/WebKit/WebKit/chromium/public/WebScriptSource.h" |
22 #include "webkit/api/public/WebURLRequest.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h" |
23 #include "webkit/api/public/WebView.h" | 23 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" |
24 #include "webkit/glue/webkit_glue.h" | 24 #include "webkit/glue/webkit_glue.h" |
25 | 25 |
26 using WebKit::WebFrame; | 26 using WebKit::WebFrame; |
27 using WebKit::WebScriptController; | 27 using WebKit::WebScriptController; |
28 using WebKit::WebScriptSource; | 28 using WebKit::WebScriptSource; |
29 using WebKit::WebString; | 29 using WebKit::WebString; |
30 using WebKit::WebURLRequest; | 30 using WebKit::WebURLRequest; |
31 | 31 |
32 namespace { | 32 namespace { |
33 const int32 kRouteId = 5; | 33 const int32 kRouteId = 5; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 #endif | 171 #endif |
172 } | 172 } |
173 | 173 |
174 void RenderViewTest::SendNativeKeyEvent( | 174 void RenderViewTest::SendNativeKeyEvent( |
175 const NativeWebKeyboardEvent& key_event) { | 175 const NativeWebKeyboardEvent& key_event) { |
176 scoped_ptr<IPC::Message> input_message(new ViewMsg_HandleInputEvent(0)); | 176 scoped_ptr<IPC::Message> input_message(new ViewMsg_HandleInputEvent(0)); |
177 input_message->WriteData(reinterpret_cast<const char*>(&key_event), | 177 input_message->WriteData(reinterpret_cast<const char*>(&key_event), |
178 sizeof(WebKit::WebKeyboardEvent)); | 178 sizeof(WebKit::WebKeyboardEvent)); |
179 view_->OnHandleInputEvent(*input_message); | 179 view_->OnHandleInputEvent(*input_message); |
180 } | 180 } |
OLD | NEW |