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