| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Samsung Electronics | 2 * Copyright (C) 2012 Samsung Electronics |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "wtf/PassOwnPtr.h" | 27 #include "wtf/PassOwnPtr.h" |
| 28 #include "wtf/Vector.h" | 28 #include "wtf/Vector.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 class LocalFrame; | 32 class LocalFrame; |
| 33 class Navigator; | 33 class Navigator; |
| 34 class UnsignedLongOrUnsignedLongSequence; | 34 class UnsignedLongOrUnsignedLongSequence; |
| 35 | 35 |
| 36 class MODULES_EXPORT NavigatorVibration final | 36 class MODULES_EXPORT NavigatorVibration final |
| 37 : public NoBaseWillBeGarbageCollectedFinalized<NavigatorVibration> | 37 : public GarbageCollectedFinalized<NavigatorVibration> |
| 38 , public WillBeHeapSupplement<Page> | 38 , public HeapSupplement<Page> |
| 39 , public PageLifecycleObserver { | 39 , public PageLifecycleObserver { |
| 40 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorVibration); | 40 USING_GARBAGE_COLLECTED_MIXIN(NavigatorVibration); |
| 41 USING_FAST_MALLOC_WILL_BE_REMOVED(NavigatorVibration); | |
| 42 public: | 41 public: |
| 43 typedef Vector<unsigned> VibrationPattern; | 42 typedef Vector<unsigned> VibrationPattern; |
| 44 | 43 |
| 45 virtual ~NavigatorVibration(); | 44 virtual ~NavigatorVibration(); |
| 46 | 45 |
| 47 bool vibrate(const VibrationPattern&); | 46 bool vibrate(const VibrationPattern&); |
| 48 void cancelVibration(); | 47 void cancelVibration(); |
| 49 void timerStartFired(Timer<NavigatorVibration>*); | 48 void timerStartFired(Timer<NavigatorVibration>*); |
| 50 void timerStopFired(Timer<NavigatorVibration>*); | 49 void timerStopFired(Timer<NavigatorVibration>*); |
| 51 | 50 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 70 | 69 |
| 71 Timer<NavigatorVibration> m_timerStart; | 70 Timer<NavigatorVibration> m_timerStart; |
| 72 Timer<NavigatorVibration> m_timerStop; | 71 Timer<NavigatorVibration> m_timerStop; |
| 73 bool m_isVibrating; | 72 bool m_isVibrating; |
| 74 VibrationPattern m_pattern; | 73 VibrationPattern m_pattern; |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 } // namespace blink | 76 } // namespace blink |
| 78 | 77 |
| 79 #endif // NavigatorVibration_h | 78 #endif // NavigatorVibration_h |
| OLD | NEW |