Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetBase.cpp

Issue 2876403002: Move WebInputEventConversion from web/ to core/events/. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/events/WebInputEventConversion.h"
8 #include "core/exported/WebViewBase.h" 9 #include "core/exported/WebViewBase.h"
9 #include "core/frame/FrameView.h" 10 #include "core/frame/FrameView.h"
10 #include "core/frame/VisualViewport.h" 11 #include "core/frame/VisualViewport.h"
11 #include "core/frame/WebLocalFrameBase.h" 12 #include "core/frame/WebLocalFrameBase.h"
12 #include "core/input/EventHandler.h" 13 #include "core/input/EventHandler.h"
13 #include "core/page/DragActions.h" 14 #include "core/page/DragActions.h"
14 #include "core/page/DragController.h" 15 #include "core/page/DragController.h"
15 #include "core/page/DragData.h" 16 #include "core/page/DragData.h"
16 #include "core/page/DragSession.h" 17 #include "core/page/DragSession.h"
17 #include "core/page/Page.h" 18 #include "core/page/Page.h"
18 #include "core/page/PointerLockController.h" 19 #include "core/page/PointerLockController.h"
19 #include "platform/UserGestureIndicator.h" 20 #include "platform/UserGestureIndicator.h"
20 #include "public/web/WebAutofillClient.h"
21 #include "public/web/WebDocument.h"
22 #include "public/web/WebWidgetClient.h" 21 #include "public/web/WebWidgetClient.h"
23 #include "web/WebInputEventConversion.h"
24 22
25 namespace blink { 23 namespace blink {
26 24
27 namespace { 25 namespace {
28 26
29 // Helper to get LocalFrame* from WebLocalFrame*. 27 // Helper to get LocalFrame* from WebLocalFrame*.
30 // TODO(dcheng): This should be moved into WebLocalFrame. 28 // TODO(dcheng): This should be moved into WebLocalFrame.
31 LocalFrame* ToCoreFrame(WebLocalFrame* frame) { 29 LocalFrame* ToCoreFrame(WebLocalFrame* frame) {
32 return ToWebLocalFrameBase(frame)->GetFrame(); 30 return ToWebLocalFrameBase(frame)->GetFrame();
33 } 31 }
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 278
281 if (GetPage()) { 279 if (GetPage()) {
282 WebMouseEvent transformed_event = TransformWebMouseEvent( 280 WebMouseEvent transformed_event = TransformWebMouseEvent(
283 ToWebLocalFrameBase(LocalRoot())->GetFrameView(), mouse_event); 281 ToWebLocalFrameBase(LocalRoot())->GetFrameView(), mouse_event);
284 GetPage()->GetPointerLockController().DispatchLockedMouseEvent( 282 GetPage()->GetPointerLockController().DispatchLockedMouseEvent(
285 transformed_event, event_type); 283 transformed_event, event_type);
286 } 284 }
287 } 285 }
288 286
289 } // namespace blink 287 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698