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

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

Issue 2655873003: Remove PlatformEvent it is no longer used. (Closed)
Patch Set: Remove PlatformEvent it is no longer used. Created 3 years, 10 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/frame/FrameHost.h" 7 #include "core/frame/FrameHost.h"
8 #include "core/frame/VisualViewport.h" 8 #include "core/frame/VisualViewport.h"
9 #include "core/input/EventHandler.h" 9 #include "core/input/EventHandler.h"
10 #include "core/page/DragActions.h" 10 #include "core/page/DragActions.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 cancelDrag(); 131 cancelDrag();
132 return; 132 return;
133 } 133 }
134 WebFloatPoint pointInRootFrame( 134 WebFloatPoint pointInRootFrame(
135 page()->frameHost().visualViewport().viewportToRootFrame( 135 page()->frameHost().visualViewport().viewportToRootFrame(
136 pointInViewport)); 136 pointInViewport));
137 137
138 WebMouseEvent fakeMouseMove(WebInputEvent::MouseMove, pointInRootFrame, 138 WebMouseEvent fakeMouseMove(WebInputEvent::MouseMove, pointInRootFrame,
139 WebFloatPoint(screenPoint.x, screenPoint.y), 139 WebFloatPoint(screenPoint.x, screenPoint.y),
140 WebPointerProperties::Button::Left, 0, 140 WebPointerProperties::Button::Left, 0,
141 PlatformEvent::NoModifiers, 141 WebInputEvent::NoModifiers,
142 TimeTicks::Now().InSeconds()); 142 TimeTicks::Now().InSeconds());
143 fakeMouseMove.setFrameScale(1); 143 fakeMouseMove.setFrameScale(1);
144 toCoreFrame(localRoot()) 144 toCoreFrame(localRoot())
145 ->eventHandler() 145 ->eventHandler()
146 .dragSourceEndedAt(fakeMouseMove, static_cast<DragOperation>(operation)); 146 .dragSourceEndedAt(fakeMouseMove, static_cast<DragOperation>(operation));
147 } 147 }
148 148
149 void WebFrameWidgetBase::dragSourceSystemDragEnded() { 149 void WebFrameWidgetBase::dragSourceSystemDragEnded() {
150 cancelDrag(); 150 cancelDrag();
151 } 151 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 WebViewImpl* WebFrameWidgetBase::view() const { 210 WebViewImpl* WebFrameWidgetBase::view() const {
211 return toWebLocalFrameImpl(localRoot())->viewImpl(); 211 return toWebLocalFrameImpl(localRoot())->viewImpl();
212 } 212 }
213 213
214 Page* WebFrameWidgetBase::page() const { 214 Page* WebFrameWidgetBase::page() const {
215 return view()->page(); 215 return view()->page();
216 } 216 }
217 217
218 } // namespace blink 218 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698