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

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

Issue 2542693002: Use WTF::TimeTicks to represent timestamp in Platform/Core event types (Closed)
Patch Set: rebase Created 4 years 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 void WebFrameWidgetBase::dragSourceEndedAt(const WebPoint& pointInViewport, 120 void WebFrameWidgetBase::dragSourceEndedAt(const WebPoint& pointInViewport,
121 const WebPoint& screenPoint, 121 const WebPoint& screenPoint,
122 WebDragOperation operation) { 122 WebDragOperation operation) {
123 WebPoint pointInRootFrame( 123 WebPoint pointInRootFrame(
124 page()->frameHost().visualViewport().viewportToRootFrame( 124 page()->frameHost().visualViewport().viewportToRootFrame(
125 pointInViewport)); 125 pointInViewport));
126 PlatformMouseEvent pme( 126 PlatformMouseEvent pme(
127 pointInRootFrame, screenPoint, WebPointerProperties::Button::Left, 127 pointInRootFrame, screenPoint, WebPointerProperties::Button::Left,
128 PlatformEvent::MouseMoved, 0, PlatformEvent::NoModifiers, 128 PlatformEvent::MouseMoved, 0, PlatformEvent::NoModifiers,
129 PlatformMouseEvent::RealOrIndistinguishable, 129 PlatformMouseEvent::RealOrIndistinguishable, TimeTicks::Now());
130 WTF::monotonicallyIncreasingTime());
131 toCoreFrame(localRoot()) 130 toCoreFrame(localRoot())
132 ->eventHandler() 131 ->eventHandler()
133 .dragSourceEndedAt(pme, static_cast<DragOperation>(operation)); 132 .dragSourceEndedAt(pme, static_cast<DragOperation>(operation));
134 } 133 }
135 134
136 void WebFrameWidgetBase::dragSourceSystemDragEnded() { 135 void WebFrameWidgetBase::dragSourceSystemDragEnded() {
137 // It's possible for us to get this callback while not doing a drag if it's 136 // It's possible for us to get this callback while not doing a drag if it's
138 // from a previous page that got unloaded. 137 // from a previous page that got unloaded.
139 if (m_doingDragAndDrop) { 138 if (m_doingDragAndDrop) {
140 page()->dragController().dragEnded(); 139 page()->dragController().dragEnded();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 187
189 WebViewImpl* WebFrameWidgetBase::view() const { 188 WebViewImpl* WebFrameWidgetBase::view() const {
190 return toWebLocalFrameImpl(localRoot())->viewImpl(); 189 return toWebLocalFrameImpl(localRoot())->viewImpl();
191 } 190 }
192 191
193 Page* WebFrameWidgetBase::page() const { 192 Page* WebFrameWidgetBase::page() const {
194 return view()->page(); 193 return view()->page();
195 } 194 }
196 195
197 } // namespace blink 196 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/PlatformMouseEvent.h ('k') | third_party/WebKit/Source/web/WebInputEventConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698