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

Side by Side Diff: third_party/WebKit/Source/core/events/MouseEvent.h

Issue 2255323004: Create MouseEventManager and EventHandlingUtil (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 4 years, 3 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 | « no previous file | third_party/WebKit/Source/core/html/HTMLLabelElement.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, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 bool fromTouch() const { return m_syntheticEventType == PlatformMouseEvent:: FromTouch; } 86 bool fromTouch() const { return m_syntheticEventType == PlatformMouseEvent:: FromTouch; }
87 87
88 const AtomicString& interfaceName() const override; 88 const AtomicString& interfaceName() const override;
89 89
90 bool isMouseEvent() const override; 90 bool isMouseEvent() const override;
91 int which() const final; 91 int which() const final;
92 92
93 EventDispatchMediator* createMediator() override; 93 EventDispatchMediator* createMediator() override;
94 94
95 int clickCount() { return detail(); }
96
95 DECLARE_VIRTUAL_TRACE(); 97 DECLARE_VIRTUAL_TRACE();
96 98
97 protected: 99 protected:
98 MouseEvent(const AtomicString& type, bool canBubble, bool cancelable, Abstra ctView*, 100 MouseEvent(const AtomicString& type, bool canBubble, bool cancelable, Abstra ctView*,
99 int detail, int screenX, int screenY, int windowX, int windowY, 101 int detail, int screenX, int screenY, int windowX, int windowY,
100 int movementX, int movementY, 102 int movementX, int movementY,
101 PlatformEvent::Modifiers, short button, unsigned short buttons, 103 PlatformEvent::Modifiers, short button, unsigned short buttons,
102 EventTarget* relatedTarget, 104 EventTarget* relatedTarget,
103 double platformTimeStamp, 105 double platformTimeStamp,
104 PlatformMouseEvent::SyntheticEventType, 106 PlatformMouseEvent::SyntheticEventType,
(...skipping 28 matching lines...) Expand all
133 MouseEvent& event() const; 135 MouseEvent& event() const;
134 136
135 DispatchEventResult dispatchEvent(EventDispatcher&) const override; 137 DispatchEventResult dispatchEvent(EventDispatcher&) const override;
136 }; 138 };
137 139
138 DEFINE_EVENT_TYPE_CASTS(MouseEvent); 140 DEFINE_EVENT_TYPE_CASTS(MouseEvent);
139 141
140 } // namespace blink 142 } // namespace blink
141 143
142 #endif // MouseEvent_h 144 #endif // MouseEvent_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLLabelElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698