Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1146)

Side by Side Diff: Source/modules/vibration/NavigatorVibration.h

Issue 18478003: Vibration cannot be canceled during pattern vibration. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for Relanding Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/vibration/NavigatorVibration.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; }
56
55 private: 57 private:
56 explicit NavigatorVibration(Page*); 58 explicit NavigatorVibration(Page*);
57 static const char* supplementName(); 59 static const char* supplementName();
58 60
59 Timer<NavigatorVibration> m_timerStart; 61 Timer<NavigatorVibration> m_timerStart;
60 Timer<NavigatorVibration> m_timerStop; 62 Timer<NavigatorVibration> m_timerStop;
61 bool m_isVibrating; 63 bool m_isVibrating;
62 VibrationPattern m_pattern; 64 VibrationPattern m_pattern;
63 }; 65 };
64 66
65 } // namespace WebCore 67 } // namespace WebCore
66 68
67 #endif // NavigatorVibration_h 69 #endif // NavigatorVibration_h
OLDNEW
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/vibration/NavigatorVibration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698