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/test/render_view_test.h" | 5 #include "content/test/render_view_test.h" |
6 | 6 |
7 #include "content/common/view_messages.h" | 7 #include "content/common/view_messages.h" |
8 #include "content/public/browser/native_web_keyboard_event.h" | 8 #include "content/public/browser/native_web_keyboard_event.h" |
9 #include "content/public/common/renderer_preferences.h" | 9 #include "content/public/common/renderer_preferences.h" |
10 #include "content/renderer/render_thread_impl.h" | 10 #include "content/renderer/render_thread_impl.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "ui/base/x/x11_util.h" | 37 #include "ui/base/x/x11_util.h" |
38 #endif | 38 #endif |
39 | 39 |
40 using WebKit::WebFrame; | 40 using WebKit::WebFrame; |
41 using WebKit::WebInputEvent; | 41 using WebKit::WebInputEvent; |
42 using WebKit::WebMouseEvent; | 42 using WebKit::WebMouseEvent; |
43 using WebKit::WebScriptController; | 43 using WebKit::WebScriptController; |
44 using WebKit::WebScriptSource; | 44 using WebKit::WebScriptSource; |
45 using WebKit::WebString; | 45 using WebKit::WebString; |
46 using WebKit::WebURLRequest; | 46 using WebKit::WebURLRequest; |
| 47 using content::NativeWebKeyboardEvent; |
47 | 48 |
48 namespace { | 49 namespace { |
49 const int32 kOpenerId = -2; | 50 const int32 kOpenerId = -2; |
50 const int32 kRouteId = 5; | 51 const int32 kRouteId = 5; |
51 const int32 kNewWindowRouteId = 6; | 52 const int32 kNewWindowRouteId = 6; |
52 const int32 kSurfaceId = 42; | 53 const int32 kSurfaceId = 42; |
53 | 54 |
54 #if defined(USE_AURA) && defined(USE_X11) | 55 #if defined(USE_AURA) && defined(USE_X11) |
55 // Converts MockKeyboard::Modifiers to ui::EventFlags. | 56 // Converts MockKeyboard::Modifiers to ui::EventFlags. |
56 int ConvertMockKeyboardModifier(MockKeyboard::Modifiers modifiers) { | 57 int ConvertMockKeyboardModifier(MockKeyboard::Modifiers modifiers) { |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); | 458 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
458 impl->set_send_content_state_immediately(true); | 459 impl->set_send_content_state_immediately(true); |
459 } | 460 } |
460 | 461 |
461 WebKit::WebWidget* RenderViewTest::GetWebWidget() { | 462 WebKit::WebWidget* RenderViewTest::GetWebWidget() { |
462 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); | 463 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); |
463 return impl->webwidget(); | 464 return impl->webwidget(); |
464 } | 465 } |
465 | 466 |
466 } // namespace content | 467 } // namespace content |
OLD | NEW |