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

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

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 17 matching lines...) Expand all
28 #include "wtf/Vector.h" 28 #include "wtf/Vector.h"
29 29
30 namespace blink { 30 namespace blink {
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 GarbageCollectedFinalized<NavigatorVibration> 37 : public GarbageCollectedFinalized<NavigatorVibration>
38 , public HeapSupplement<Page> 38 , public Supplement<Page>
39 , public PageLifecycleObserver { 39 , public PageLifecycleObserver {
40 USING_GARBAGE_COLLECTED_MIXIN(NavigatorVibration); 40 USING_GARBAGE_COLLECTED_MIXIN(NavigatorVibration);
41 public: 41 public:
42 typedef Vector<unsigned> VibrationPattern; 42 typedef Vector<unsigned> VibrationPattern;
43 43
44 virtual ~NavigatorVibration(); 44 virtual ~NavigatorVibration();
45 45
46 bool vibrate(const VibrationPattern&); 46 bool vibrate(const VibrationPattern&);
47 void cancelVibration(); 47 void cancelVibration();
48 void timerStartFired(Timer<NavigatorVibration>*); 48 void timerStartFired(Timer<NavigatorVibration>*);
(...skipping 20 matching lines...) Expand all
69 69
70 Timer<NavigatorVibration> m_timerStart; 70 Timer<NavigatorVibration> m_timerStart;
71 Timer<NavigatorVibration> m_timerStop; 71 Timer<NavigatorVibration> m_timerStop;
72 bool m_isVibrating; 72 bool m_isVibrating;
73 VibrationPattern m_pattern; 73 VibrationPattern m_pattern;
74 }; 74 };
75 75
76 } // namespace blink 76 } // namespace blink
77 77
78 #endif // NavigatorVibration_h 78 #endif // NavigatorVibration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698