| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010, The Android Open Source Project | 2 * Copyright 2010, The Android Open Source Project |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * * Redistributions in binary form must reproduce the above copyright | 9 * * Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 DeviceOrientationEvent::~DeviceOrientationEvent() {} | 32 DeviceOrientationEvent::~DeviceOrientationEvent() {} |
| 33 | 33 |
| 34 DeviceOrientationEvent::DeviceOrientationEvent() | 34 DeviceOrientationEvent::DeviceOrientationEvent() |
| 35 : m_orientation(DeviceOrientationData::create()) {} | 35 : m_orientation(DeviceOrientationData::create()) {} |
| 36 | 36 |
| 37 DeviceOrientationEvent::DeviceOrientationEvent( | 37 DeviceOrientationEvent::DeviceOrientationEvent( |
| 38 const AtomicString& eventType, | 38 const AtomicString& eventType, |
| 39 DeviceOrientationData* orientation) | 39 DeviceOrientationData* orientation) |
| 40 : Event(eventType, false, false) // Can't bubble, not cancelable | 40 : Event(eventType, false, false), // Can't bubble, not cancelable |
| 41 , | |
| 42 m_orientation(orientation) {} | 41 m_orientation(orientation) {} |
| 43 | 42 |
| 44 void DeviceOrientationEvent::initDeviceOrientationEvent( | 43 void DeviceOrientationEvent::initDeviceOrientationEvent( |
| 45 const AtomicString& type, | 44 const AtomicString& type, |
| 46 bool bubbles, | 45 bool bubbles, |
| 47 bool cancelable, | 46 bool cancelable, |
| 48 const Nullable<double>& alpha, | 47 const Nullable<double>& alpha, |
| 49 const Nullable<double>& beta, | 48 const Nullable<double>& beta, |
| 50 const Nullable<double>& gamma, | 49 const Nullable<double>& gamma, |
| 51 bool absolute) { | 50 bool absolute) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 const AtomicString& DeviceOrientationEvent::interfaceName() const { | 86 const AtomicString& DeviceOrientationEvent::interfaceName() const { |
| 88 return EventNames::DeviceOrientationEvent; | 87 return EventNames::DeviceOrientationEvent; |
| 89 } | 88 } |
| 90 | 89 |
| 91 DEFINE_TRACE(DeviceOrientationEvent) { | 90 DEFINE_TRACE(DeviceOrientationEvent) { |
| 92 visitor->trace(m_orientation); | 91 visitor->trace(m_orientation); |
| 93 Event::trace(visitor); | 92 Event::trace(visitor); |
| 94 } | 93 } |
| 95 | 94 |
| 96 } // namespace blink | 95 } // namespace blink |
| OLD | NEW |