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

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

Issue 135653002: Update modules classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove change to web/ Created 6 years, 11 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 | Annotate | Revision Log
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 13 matching lines...) Expand all
24 #include "core/page/PageLifecycleObserver.h" 24 #include "core/page/PageLifecycleObserver.h"
25 #include "platform/Timer.h" 25 #include "platform/Timer.h"
26 #include "wtf/PassOwnPtr.h" 26 #include "wtf/PassOwnPtr.h"
27 #include "wtf/Vector.h" 27 #include "wtf/Vector.h"
28 28
29 namespace WebCore { 29 namespace WebCore {
30 30
31 class Frame; 31 class Frame;
32 class Navigator; 32 class Navigator;
33 33
34 class NavigatorVibration 34 class NavigatorVibration FINAL
35 : public Supplement<Page> 35 : public Supplement<Page>
36 , public PageLifecycleObserver { 36 , public PageLifecycleObserver {
37 public: 37 public:
38 typedef Vector<unsigned> VibrationPattern; 38 typedef Vector<unsigned> VibrationPattern;
39 39
40 virtual ~NavigatorVibration(); 40 virtual ~NavigatorVibration();
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>*);
(...skipping 17 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « Source/modules/speech/testing/PlatformSpeechSynthesizerMock.h ('k') | Source/modules/webaudio/AnalyserNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698