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

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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 return WebInputEventResult::NotHandled; 888 return WebInputEventResult::NotHandled;
889 889
890 const bool cancelable = eventType != EventTypeNames::dragleave && 890 const bool cancelable = eventType != EventTypeNames::dragleave &&
891 eventType != EventTypeNames::dragend; 891 eventType != EventTypeNames::dragend;
892 892
893 IntPoint position = flooredIntPoint(event.positionInRootFrame()); 893 IntPoint position = flooredIntPoint(event.positionInRootFrame());
894 IntPoint movement = flooredIntPoint(event.movementInRootFrame()); 894 IntPoint movement = flooredIntPoint(event.movementInRootFrame());
895 DragEvent* me = DragEvent::create( 895 DragEvent* me = DragEvent::create(
896 eventType, true, cancelable, m_frame->document()->domWindow(), 0, 896 eventType, true, cancelable, m_frame->document()->domWindow(), 0,
897 event.globalX, event.globalY, position.x(), position.y(), movement.x(), 897 event.globalX, event.globalY, position.x(), position.y(), movement.x(),
898 movement.y(), static_cast<PlatformEvent::Modifiers>(event.modifiers()), 0, 898 movement.y(), static_cast<WebInputEvent::Modifiers>(event.modifiers()), 0,
899 MouseEvent::platformModifiersToButtons(event.modifiers()), nullptr, 899 MouseEvent::webInputEventModifiersToButtons(event.modifiers()), nullptr,
900 TimeTicks::FromSeconds(event.timeStampSeconds()), dataTransfer, 900 TimeTicks::FromSeconds(event.timeStampSeconds()), dataTransfer,
901 event.fromTouch() ? MouseEvent::FromTouch 901 event.fromTouch() ? MouseEvent::FromTouch
902 : MouseEvent::RealOrIndistinguishable); 902 : MouseEvent::RealOrIndistinguishable);
903 903
904 return EventHandlingUtil::toWebInputEventResult( 904 return EventHandlingUtil::toWebInputEventResult(
905 dragTarget->dispatchEvent(me)); 905 dragTarget->dispatchEvent(me));
906 } 906 }
907 907
908 void MouseEventManager::clearDragDataTransfer() { 908 void MouseEventManager::clearDragDataTransfer() {
909 if (dragState().m_dragDataTransfer) { 909 if (dragState().m_dragDataTransfer) {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 1007
1008 void MouseEventManager::setClickCount(int clickCount) { 1008 void MouseEventManager::setClickCount(int clickCount) {
1009 m_clickCount = clickCount; 1009 m_clickCount = clickCount;
1010 } 1010 }
1011 1011
1012 bool MouseEventManager::mouseDownMayStartDrag() { 1012 bool MouseEventManager::mouseDownMayStartDrag() {
1013 return m_mouseDownMayStartDrag; 1013 return m_mouseDownMayStartDrag;
1014 } 1014 }
1015 1015
1016 } // namespace blink 1016 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/KeyboardEventManager.cpp ('k') | third_party/WebKit/Source/core/input/ScrollManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698