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

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

Issue 2314093002: Revert of Make a pen in eraser mode visible thru PointerEvent.buttons (Closed)
Patch Set: 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
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 enum class Buttons : unsigned {
96 None = 0,
97 Left = 1 << 0,
98 Right = 1 << 1,
99 Middle = 1 << 2
100 };
101
95 DECLARE_VIRTUAL_TRACE(); 102 DECLARE_VIRTUAL_TRACE();
96 103
97 protected: 104 protected:
98 MouseEvent(const AtomicString& type, bool canBubble, bool cancelable, Abstra ctView*, 105 MouseEvent(const AtomicString& type, bool canBubble, bool cancelable, Abstra ctView*,
99 int detail, int screenX, int screenY, int windowX, int windowY, 106 int detail, int screenX, int screenY, int windowX, int windowY,
100 int movementX, int movementY, 107 int movementX, int movementY,
101 PlatformEvent::Modifiers, short button, unsigned short buttons, 108 PlatformEvent::Modifiers, short button, unsigned short buttons,
102 EventTarget* relatedTarget, 109 EventTarget* relatedTarget,
103 double platformTimeStamp, 110 double platformTimeStamp,
104 PlatformMouseEvent::SyntheticEventType, 111 PlatformMouseEvent::SyntheticEventType,
(...skipping 28 matching lines...) Expand all
133 MouseEvent& event() const; 140 MouseEvent& event() const;
134 141
135 DispatchEventResult dispatchEvent(EventDispatcher&) const override; 142 DispatchEventResult dispatchEvent(EventDispatcher&) const override;
136 }; 143 };
137 144
138 DEFINE_EVENT_TYPE_CASTS(MouseEvent); 145 DEFINE_EVENT_TYPE_CASTS(MouseEvent);
139 146
140 } // namespace blink 147 } // namespace blink
141 148
142 #endif // MouseEvent_h 149 #endif // MouseEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698