OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/shell/renderer/test_runner/event_sender.h" | 5 #include "content/shell/renderer/test_runner/event_sender.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "content/public/common/page_zoom.h" | 11 #include "content/public/common/page_zoom.h" |
12 #include "content/shell/renderer/test_runner/mock_spell_check.h" | 12 #include "content/shell/renderer/test_runner/mock_spell_check.h" |
13 #include "content/shell/renderer/test_runner/test_interfaces.h" | 13 #include "content/shell/renderer/test_runner/test_interfaces.h" |
14 #include "content/shell/renderer/test_runner/web_test_delegate.h" | 14 #include "content/shell/renderer/test_runner/web_test_delegate.h" |
15 #include "content/shell/renderer/test_runner/web_test_proxy.h" | 15 #include "content/shell/renderer/test_runner/web_test_proxy.h" |
16 #include "gin/handle.h" | 16 #include "gin/handle.h" |
17 #include "gin/object_template_builder.h" | 17 #include "gin/object_template_builder.h" |
18 #include "gin/wrappable.h" | 18 #include "gin/wrappable.h" |
19 #include "third_party/WebKit/public/platform/WebString.h" | 19 #include "third_party/WebKit/public/platform/WebString.h" |
20 #include "third_party/WebKit/public/platform/WebVector.h" | 20 #include "third_party/WebKit/public/platform/WebVector.h" |
21 #include "third_party/WebKit/public/web/WebContextMenuData.h" | 21 #include "third_party/WebKit/public/web/WebContextMenuData.h" |
22 #include "third_party/WebKit/public/web/WebFrame.h" | 22 #include "third_party/WebKit/public/web/WebFrame.h" |
23 #include "third_party/WebKit/public/web/WebKit.h" | 23 #include "third_party/WebKit/public/web/WebKit.h" |
24 #include "third_party/WebKit/public/web/WebPagePopup.h" | 24 #include "third_party/WebKit/public/web/WebPagePopup.h" |
25 #include "third_party/WebKit/public/web/WebView.h" | 25 #include "third_party/WebKit/public/web/WebView.h" |
26 #include "ui/events/keycodes/dom4/keycode_converter.h" | 26 #include "ui/events/keycodes/dom/keycode_converter.h" |
27 #include "ui/events/keycodes/keyboard_codes.h" | 27 #include "ui/events/keycodes/keyboard_codes.h" |
28 #include "v8/include/v8.h" | 28 #include "v8/include/v8.h" |
29 | 29 |
30 using blink::WebContextMenuData; | 30 using blink::WebContextMenuData; |
31 using blink::WebDragData; | 31 using blink::WebDragData; |
32 using blink::WebDragOperationsMask; | 32 using blink::WebDragOperationsMask; |
33 using blink::WebFloatPoint; | 33 using blink::WebFloatPoint; |
34 using blink::WebFrame; | 34 using blink::WebFrame; |
35 using blink::WebGestureEvent; | 35 using blink::WebGestureEvent; |
36 using blink::WebInputEvent; | 36 using blink::WebInputEvent; |
(...skipping 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2513 | 2513 |
2514 bool EventSender::HandleInputEventOnViewOrPopup(const WebInputEvent& event) { | 2514 bool EventSender::HandleInputEventOnViewOrPopup(const WebInputEvent& event) { |
2515 if (WebPagePopup* popup = view_->pagePopup()) { | 2515 if (WebPagePopup* popup = view_->pagePopup()) { |
2516 if (!WebInputEvent::isKeyboardEventType(event.type)) | 2516 if (!WebInputEvent::isKeyboardEventType(event.type)) |
2517 return popup->handleInputEvent(event); | 2517 return popup->handleInputEvent(event); |
2518 } | 2518 } |
2519 return view_->handleInputEvent(event); | 2519 return view_->handleInputEvent(event); |
2520 } | 2520 } |
2521 | 2521 |
2522 } // namespace content | 2522 } // namespace content |
OLD | NEW |