OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "web/WebFrameWidgetBase.h" | 5 #include "web/WebFrameWidgetBase.h" |
6 | 6 |
7 #include "core/dom/DocumentUserGestureToken.h" | 7 #include "core/dom/DocumentUserGestureToken.h" |
| 8 #include "core/exported/WebViewBase.h" |
8 #include "core/frame/FrameView.h" | 9 #include "core/frame/FrameView.h" |
9 #include "core/frame/VisualViewport.h" | 10 #include "core/frame/VisualViewport.h" |
10 #include "core/input/EventHandler.h" | 11 #include "core/input/EventHandler.h" |
11 #include "core/page/DragActions.h" | 12 #include "core/page/DragActions.h" |
12 #include "core/page/DragController.h" | 13 #include "core/page/DragController.h" |
13 #include "core/page/DragData.h" | 14 #include "core/page/DragData.h" |
14 #include "core/page/DragSession.h" | 15 #include "core/page/DragSession.h" |
15 #include "core/page/Page.h" | 16 #include "core/page/Page.h" |
16 #include "core/page/PointerLockController.h" | 17 #include "core/page/PointerLockController.h" |
17 #include "platform/UserGestureIndicator.h" | 18 #include "platform/UserGestureIndicator.h" |
18 #include "public/web/WebAutofillClient.h" | 19 #include "public/web/WebAutofillClient.h" |
19 #include "public/web/WebDocument.h" | 20 #include "public/web/WebDocument.h" |
20 #include "public/web/WebWidgetClient.h" | 21 #include "public/web/WebWidgetClient.h" |
21 #include "web/WebInputEventConversion.h" | 22 #include "web/WebInputEventConversion.h" |
22 #include "web/WebLocalFrameImpl.h" | 23 #include "web/WebLocalFrameImpl.h" |
23 #include "web/WebViewImpl.h" | |
24 | 24 |
25 namespace blink { | 25 namespace blink { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // Helper to get LocalFrame* from WebLocalFrame*. | 29 // Helper to get LocalFrame* from WebLocalFrame*. |
30 // TODO(dcheng): This should be moved into WebLocalFrame. | 30 // TODO(dcheng): This should be moved into WebLocalFrame. |
31 LocalFrame* ToCoreFrame(WebLocalFrame* frame) { | 31 LocalFrame* ToCoreFrame(WebLocalFrame* frame) { |
32 return ToWebLocalFrameImpl(frame)->GetFrame(); | 32 return ToWebLocalFrameImpl(frame)->GetFrame(); |
33 } | 33 } |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 280 |
281 if (GetPage()) { | 281 if (GetPage()) { |
282 WebMouseEvent transformed_event = TransformWebMouseEvent( | 282 WebMouseEvent transformed_event = TransformWebMouseEvent( |
283 ToWebLocalFrameImpl(LocalRoot())->GetFrameView(), mouse_event); | 283 ToWebLocalFrameImpl(LocalRoot())->GetFrameView(), mouse_event); |
284 GetPage()->GetPointerLockController().DispatchLockedMouseEvent( | 284 GetPage()->GetPointerLockController().DispatchLockedMouseEvent( |
285 transformed_event, event_type); | 285 transformed_event, event_type); |
286 } | 286 } |
287 } | 287 } |
288 | 288 |
289 } // namespace blink | 289 } // namespace blink |
OLD | NEW |