| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void timerStartFired(Timer<NavigatorVibration>*); | 43 void timerStartFired(Timer<NavigatorVibration>*); |
| 44 void timerStopFired(Timer<NavigatorVibration>*); | 44 void timerStopFired(Timer<NavigatorVibration>*); |
| 45 | 45 |
| 46 // Inherited from PageLifecycleObserver | 46 // Inherited from PageLifecycleObserver |
| 47 virtual void pageVisibilityChanged() OVERRIDE; | 47 virtual void pageVisibilityChanged() OVERRIDE; |
| 48 | 48 |
| 49 static bool vibrate(Navigator*, unsigned time); | 49 static bool vibrate(Navigator*, unsigned time); |
| 50 static bool vibrate(Navigator*, const VibrationPattern&); | 50 static bool vibrate(Navigator*, const VibrationPattern&); |
| 51 static NavigatorVibration* from(Page*); | 51 static NavigatorVibration* from(Page*); |
| 52 | 52 |
| 53 bool isVibrating() { return m_isVibrating; } |
| 54 |
| 53 private: | 55 private: |
| 54 explicit NavigatorVibration(Page*); | 56 explicit NavigatorVibration(Page*); |
| 55 static const char* supplementName(); | 57 static const char* supplementName(); |
| 56 | 58 |
| 57 Timer<NavigatorVibration> m_timerStart; | 59 Timer<NavigatorVibration> m_timerStart; |
| 58 Timer<NavigatorVibration> m_timerStop; | 60 Timer<NavigatorVibration> m_timerStop; |
| 59 bool m_isVibrating; | 61 bool m_isVibrating; |
| 60 VibrationPattern m_pattern; | 62 VibrationPattern m_pattern; |
| 61 }; | 63 }; |
| 62 | 64 |
| 63 } // namespace WebCore | 65 } // namespace WebCore |
| 64 | 66 |
| 65 #endif // NavigatorVibration_h | 67 #endif // NavigatorVibration_h |
| OLD | NEW |