| OLD | NEW |
| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 bool ctrl_key, | 84 bool ctrl_key, |
| 85 bool alt_key, | 85 bool alt_key, |
| 86 bool shift_key, | 86 bool shift_key, |
| 87 bool meta_key, | 87 bool meta_key, |
| 88 short button, | 88 short button, |
| 89 EventTarget* related_target, | 89 EventTarget* related_target, |
| 90 unsigned short buttons = 0); | 90 unsigned short buttons = 0); |
| 91 | 91 |
| 92 // WinIE uses 1,4,2 for left/middle/right but not for click (just for | 92 // WinIE uses 1,4,2 for left/middle/right but not for click (just for |
| 93 // mousedown/up, maybe others), but we will match the standard DOM. | 93 // mousedown/up, maybe others), but we will match the standard DOM. |
| 94 virtual short button() const { return button_ == -1 ? 0 : button_; } | 94 virtual short button() const; |
| 95 unsigned short buttons() const { return buttons_; } | 95 unsigned short buttons() const { return buttons_; } |
| 96 bool ButtonDown() const { return button_ != -1; } | 96 bool ButtonDown() const { return button_ != -1; } |
| 97 EventTarget* relatedTarget() const { return related_target_.Get(); } | 97 EventTarget* relatedTarget() const { return related_target_.Get(); } |
| 98 void SetRelatedTarget(EventTarget* related_target) { | 98 void SetRelatedTarget(EventTarget* related_target) { |
| 99 related_target_ = related_target; | 99 related_target_ = related_target; |
| 100 } | 100 } |
| 101 SyntheticEventType GetSyntheticEventType() const { | 101 SyntheticEventType GetSyntheticEventType() const { |
| 102 return synthetic_event_type_; | 102 return synthetic_event_type_; |
| 103 } | 103 } |
| 104 const String& region() const { return region_; } | 104 const String& region() const { return region_; } |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 MouseEvent& Event() const; | 271 MouseEvent& Event() const; |
| 272 | 272 |
| 273 DispatchEventResult DispatchEvent(EventDispatcher&) const override; | 273 DispatchEventResult DispatchEvent(EventDispatcher&) const override; |
| 274 }; | 274 }; |
| 275 | 275 |
| 276 DEFINE_EVENT_TYPE_CASTS(MouseEvent); | 276 DEFINE_EVENT_TYPE_CASTS(MouseEvent); |
| 277 | 277 |
| 278 } // namespace blink | 278 } // namespace blink |
| 279 | 279 |
| 280 #endif // MouseEvent_h | 280 #endif // MouseEvent_h |
| OLD | NEW |