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

Side by Side Diff: third_party/WebKit/Source/core/input/MouseEventManager.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 "core/input/MouseEventManager.h" 5 #include "core/input/MouseEventManager.h"
6 6
7 #include "core/clipboard/DataObject.h" 7 #include "core/clipboard/DataObject.h"
8 #include "core/clipboard/DataTransfer.h" 8 #include "core/clipboard/DataTransfer.h"
9 #include "core/dom/Element.h" 9 #include "core/dom/Element.h"
10 #include "core/dom/ElementTraversal.h" 10 #include "core/dom/ElementTraversal.h"
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 return WebInputEventResult::NotHandled; 890 return WebInputEventResult::NotHandled;
891 891
892 const bool cancelable = eventType != EventTypeNames::dragleave && 892 const bool cancelable = eventType != EventTypeNames::dragleave &&
893 eventType != EventTypeNames::dragend; 893 eventType != EventTypeNames::dragend;
894 894
895 IntPoint position = flooredIntPoint(event.positionInRootFrame()); 895 IntPoint position = flooredIntPoint(event.positionInRootFrame());
896 IntPoint movement = flooredIntPoint(event.movementInRootFrame()); 896 IntPoint movement = flooredIntPoint(event.movementInRootFrame());
897 DragEvent* me = DragEvent::create( 897 DragEvent* me = DragEvent::create(
898 eventType, true, cancelable, m_frame->document()->domWindow(), 0, 898 eventType, true, cancelable, m_frame->document()->domWindow(), 0,
899 event.globalX, event.globalY, position.x(), position.y(), movement.x(), 899 event.globalX, event.globalY, position.x(), position.y(), movement.x(),
900 movement.y(), static_cast<PlatformEvent::Modifiers>(event.modifiers()), 0, 900 movement.y(), static_cast<WebInputEvent::Modifiers>(event.modifiers()), 0,
901 MouseEvent::platformModifiersToButtons(event.modifiers()), nullptr, 901 MouseEvent::webInputEventModifiersToButtons(event.modifiers()), nullptr,
902 TimeTicks::FromSeconds(event.timeStampSeconds()), dataTransfer, 902 TimeTicks::FromSeconds(event.timeStampSeconds()), dataTransfer,
903 event.fromTouch() ? MouseEvent::FromTouch 903 event.fromTouch() ? MouseEvent::FromTouch
904 : MouseEvent::RealOrIndistinguishable); 904 : MouseEvent::RealOrIndistinguishable);
905 905
906 return EventHandlingUtil::toWebInputEventResult( 906 return EventHandlingUtil::toWebInputEventResult(
907 dragTarget->dispatchEvent(me)); 907 dragTarget->dispatchEvent(me));
908 } 908 }
909 909
910 void MouseEventManager::clearDragDataTransfer() { 910 void MouseEventManager::clearDragDataTransfer() {
911 if (dragState().m_dragDataTransfer) { 911 if (dragState().m_dragDataTransfer) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 1003
1004 void MouseEventManager::setClickCount(int clickCount) { 1004 void MouseEventManager::setClickCount(int clickCount) {
1005 m_clickCount = clickCount; 1005 m_clickCount = clickCount;
1006 } 1006 }
1007 1007
1008 bool MouseEventManager::mouseDownMayStartDrag() { 1008 bool MouseEventManager::mouseDownMayStartDrag() {
1009 return m_mouseDownMayStartDrag; 1009 return m_mouseDownMayStartDrag;
1010 } 1010 }
1011 1011
1012 } // namespace blink 1012 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698