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 20 matching lines...) Expand all Loading... |
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 NoBaseWillBeGarbageCollectedFinalized<NavigatorVibration> |
38 , public WillBeHeapSupplement<Page> | 38 , public WillBeHeapSupplement<Page> |
39 , public PageLifecycleObserver { | 39 , public PageLifecycleObserver { |
40 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorVibration); | 40 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorVibration); |
| 41 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(NavigatorVibration); |
41 public: | 42 public: |
42 typedef Vector<unsigned> VibrationPattern; | 43 typedef Vector<unsigned> VibrationPattern; |
43 | 44 |
44 virtual ~NavigatorVibration(); | 45 virtual ~NavigatorVibration(); |
45 | 46 |
46 bool vibrate(const VibrationPattern&); | 47 bool vibrate(const VibrationPattern&); |
47 void cancelVibration(); | 48 void cancelVibration(); |
48 void timerStartFired(Timer<NavigatorVibration>*); | 49 void timerStartFired(Timer<NavigatorVibration>*); |
49 void timerStopFired(Timer<NavigatorVibration>*); | 50 void timerStopFired(Timer<NavigatorVibration>*); |
50 | 51 |
(...skipping 18 matching lines...) Expand all Loading... |
69 | 70 |
70 Timer<NavigatorVibration> m_timerStart; | 71 Timer<NavigatorVibration> m_timerStart; |
71 Timer<NavigatorVibration> m_timerStop; | 72 Timer<NavigatorVibration> m_timerStop; |
72 bool m_isVibrating; | 73 bool m_isVibrating; |
73 VibrationPattern m_pattern; | 74 VibrationPattern m_pattern; |
74 }; | 75 }; |
75 | 76 |
76 } // namespace blink | 77 } // namespace blink |
77 | 78 |
78 #endif // NavigatorVibration_h | 79 #endif // NavigatorVibration_h |
OLD | NEW |