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

Side by Side Diff: Source/core/events/MouseEvent.cpp

Issue 640303002: Enable Oilpan for core/clipboard/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove some slightly pointy edges Created 5 years, 8 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
« no previous file with comments | « Source/core/events/MouseEvent.h ('k') | Source/core/html/forms/FileInputTypeTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 event.ctrlKey(), event.altKey(), event.shiftKey(), event.metaKey(), even t.button(), 54 event.ctrlKey(), event.altKey(), event.shiftKey(), event.metaKey(), even t.button(),
55 platformModifiersToButtons(event.modifiers()), 55 platformModifiersToButtons(event.modifiers()),
56 relatedTarget, nullptr, false, event.syntheticEventType(), event.timesta mp()); 56 relatedTarget, nullptr, false, event.syntheticEventType(), event.timesta mp());
57 } 57 }
58 58
59 PassRefPtrWillBeRawPtr<MouseEvent> MouseEvent::create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, 59 PassRefPtrWillBeRawPtr<MouseEvent> MouseEvent::create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view,
60 int detail, int screenX, int screenY, int windowX, int windowY, 60 int detail, int screenX, int screenY, int windowX, int windowY,
61 int movementX, int movementY, 61 int movementX, int movementY,
62 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, 62 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey,
63 unsigned short button, unsigned short buttons, 63 unsigned short button, unsigned short buttons,
64 PassRefPtrWillBeRawPtr<EventTarget> relatedTarget, PassRefPtrWillBeRawPtr<Da taTransfer> dataTransfer, bool isSimulated, PlatformMouseEvent::SyntheticEventTy pe syntheticEventType, 64 PassRefPtrWillBeRawPtr<EventTarget> relatedTarget, DataTransfer* dataTransfe r, bool isSimulated, PlatformMouseEvent::SyntheticEventType syntheticEventType,
65 double uiCreateTime) 65 double uiCreateTime)
66 { 66 {
67 return adoptRefWillBeNoop(new MouseEvent(type, canBubble, cancelable, view, 67 return adoptRefWillBeNoop(new MouseEvent(type, canBubble, cancelable, view,
68 detail, screenX, screenY, windowX, windowY, 68 detail, screenX, screenY, windowX, windowY,
69 movementX, movementY, 69 movementX, movementY,
70 ctrlKey, altKey, shiftKey, metaKey, button, buttons, relatedTarget, data Transfer, isSimulated, syntheticEventType, uiCreateTime)); 70 ctrlKey, altKey, shiftKey, metaKey, button, buttons, relatedTarget, data Transfer, isSimulated, syntheticEventType, uiCreateTime));
71 } 71 }
72 72
73 MouseEvent::MouseEvent() 73 MouseEvent::MouseEvent()
74 : m_button(0) 74 : m_button(0)
75 , m_buttons(0) 75 , m_buttons(0)
76 , m_buttonDown(false) 76 , m_buttonDown(false)
77 , m_relatedTarget(nullptr) 77 , m_relatedTarget(nullptr)
78 , m_dataTransfer(nullptr) 78 , m_dataTransfer(nullptr)
79 , m_syntheticEventType(PlatformMouseEvent::RealOrIndistinguishable) 79 , m_syntheticEventType(PlatformMouseEvent::RealOrIndistinguishable)
80 { 80 {
81 } 81 }
82 82
83 MouseEvent::MouseEvent(const AtomicString& eventType, bool canBubble, bool cance lable, PassRefPtrWillBeRawPtr<AbstractView> view, 83 MouseEvent::MouseEvent(const AtomicString& eventType, bool canBubble, bool cance lable, PassRefPtrWillBeRawPtr<AbstractView> view,
84 int detail, int screenX, int screenY, int windowX, int windowY, 84 int detail, int screenX, int screenY, int windowX, int windowY,
85 int movementX, int movementY, 85 int movementX, int movementY,
86 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, 86 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey,
87 unsigned short button, unsigned short buttons, PassRefPtrWillBeRawPtr<EventT arget> relatedTarget, 87 unsigned short button, unsigned short buttons, PassRefPtrWillBeRawPtr<EventT arget> relatedTarget,
88 PassRefPtrWillBeRawPtr<DataTransfer> dataTransfer, bool isSimulated, Platfor mMouseEvent::SyntheticEventType syntheticEventType, 88 DataTransfer* dataTransfer, bool isSimulated, PlatformMouseEvent::SyntheticE ventType syntheticEventType,
89 double uiCreateTime) 89 double uiCreateTime)
90 : MouseRelatedEvent(eventType, canBubble, cancelable, view, detail, IntPoint (screenX, screenY), 90 : MouseRelatedEvent(eventType, canBubble, cancelable, view, detail, IntPoint (screenX, screenY),
91 IntPoint(windowX, windowY), 91 IntPoint(windowX, windowY),
92 IntPoint(movementX, movementY), 92 IntPoint(movementX, movementY),
93 ctrlKey, altKey, shiftKey, metaKey, isSimulated) 93 ctrlKey, altKey, shiftKey, metaKey, isSimulated)
94 , m_button(button == (unsigned short)-1 ? 0 : button) 94 , m_button(button == (unsigned short)-1 ? 0 : button)
95 , m_buttons(buttons) 95 , m_buttons(buttons)
96 , m_buttonDown(button != (unsigned short)-1) 96 , m_buttonDown(button != (unsigned short)-1)
97 , m_relatedTarget(relatedTarget) 97 , m_relatedTarget(relatedTarget)
98 , m_dataTransfer(dataTransfer) 98 , m_dataTransfer(dataTransfer)
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 event().button(), relatedTarget, event().buttons()); 297 event().button(), relatedTarget, event().buttons());
298 if (event().defaultHandled()) 298 if (event().defaultHandled())
299 doubleClickEvent->setDefaultHandled(); 299 doubleClickEvent->setDefaultHandled();
300 EventDispatcher::dispatchEvent(dispatcher.node(), MouseEventDispatchMediator ::create(doubleClickEvent)); 300 EventDispatcher::dispatchEvent(dispatcher.node(), MouseEventDispatchMediator ::create(doubleClickEvent));
301 if (doubleClickEvent->defaultHandled() || doubleClickEvent->defaultPrevented ()) 301 if (doubleClickEvent->defaultHandled() || doubleClickEvent->defaultPrevented ())
302 return false; 302 return false;
303 return !swallowEvent; 303 return !swallowEvent;
304 } 304 }
305 305
306 } // namespace blink 306 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/events/MouseEvent.h ('k') | Source/core/html/forms/FileInputTypeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698