| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 #include "wtf/StdLibExtras.h" | 103 #include "wtf/StdLibExtras.h" |
| 104 #include "wtf/TemporaryChange.h" | 104 #include "wtf/TemporaryChange.h" |
| 105 | 105 |
| 106 namespace blink { | 106 namespace blink { |
| 107 | 107 |
| 108 namespace { | 108 namespace { |
| 109 | 109 |
| 110 bool hasTouchHandlers(const EventHandlerRegistry& registry) | 110 bool hasTouchHandlers(const EventHandlerRegistry& registry) |
| 111 { | 111 { |
| 112 return registry.hasEventHandlers(EventHandlerRegistry::TouchEventBlocking) | 112 return registry.hasEventHandlers(EventHandlerRegistry::TouchEventBlocking) |
| 113 || registry.hasEventHandlers(EventHandlerRegistry::TouchEventPassive); | 113 || registry.hasEventHandlers(EventHandlerRegistry::TouchEventPassive) |
| 114 || registry.hasEventHandlers(EventHandlerRegistry::TouchEndOrCancelEvent
Blocking) |
| 115 || registry.hasEventHandlers(EventHandlerRegistry::TouchEndOrCancelEvent
Passive); |
| 114 } | 116 } |
| 115 | 117 |
| 116 const AtomicString& touchEventNameForTouchPointState(PlatformTouchPoint::TouchSt
ate state) | 118 const AtomicString& touchEventNameForTouchPointState(PlatformTouchPoint::TouchSt
ate state) |
| 117 { | 119 { |
| 118 switch (state) { | 120 switch (state) { |
| 119 case PlatformTouchPoint::TouchReleased: | 121 case PlatformTouchPoint::TouchReleased: |
| 120 return EventTypeNames::touchend; | 122 return EventTypeNames::touchend; |
| 121 case PlatformTouchPoint::TouchCancelled: | 123 case PlatformTouchPoint::TouchCancelled: |
| 122 return EventTypeNames::touchcancel; | 124 return EventTypeNames::touchcancel; |
| 123 case PlatformTouchPoint::TouchPressed: | 125 case PlatformTouchPoint::TouchPressed: |
| (...skipping 3892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4016 PlatformEvent::Modifiers EventHandler::accessKeyModifiers() | 4018 PlatformEvent::Modifiers EventHandler::accessKeyModifiers() |
| 4017 { | 4019 { |
| 4018 #if OS(MACOSX) | 4020 #if OS(MACOSX) |
| 4019 return static_cast<PlatformEvent::Modifiers>(PlatformEvent::CtrlKey | Platfo
rmEvent::AltKey); | 4021 return static_cast<PlatformEvent::Modifiers>(PlatformEvent::CtrlKey | Platfo
rmEvent::AltKey); |
| 4020 #else | 4022 #else |
| 4021 return PlatformEvent::AltKey; | 4023 return PlatformEvent::AltKey; |
| 4022 #endif | 4024 #endif |
| 4023 } | 4025 } |
| 4024 | 4026 |
| 4025 } // namespace blink | 4027 } // namespace blink |
| OLD | NEW |