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

Side by Side Diff: third_party/WebKit/Source/core/frame/PlatformEventController.h

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PlatformEventController_h 5 #ifndef PlatformEventController_h
6 #define PlatformEventController_h 6 #define PlatformEventController_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/page/PageVisibilityObserver.h" 9 #include "core/page/PageVisibilityObserver.h"
10 #include "platform/Timer.h" 10 #include "platform/Timer.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // When true initiates a one-shot didUpdateData() when startUpdating() is ca lled. 34 // When true initiates a one-shot didUpdateData() when startUpdating() is ca lled.
35 virtual bool hasLastData() = 0; 35 virtual bool hasLastData() = 0;
36 36
37 bool m_hasEventListener; 37 bool m_hasEventListener;
38 38
39 private: 39 private:
40 // Inherited from PageVisibilityObserver. 40 // Inherited from PageVisibilityObserver.
41 void pageVisibilityChanged() override; 41 void pageVisibilityChanged() override;
42 42
43 void oneShotCallback(Timer<PlatformEventController>*); 43 void oneShotCallback(TimerBase*);
44 44
45 bool m_isActive; 45 bool m_isActive;
46 Timer<PlatformEventController> m_timer; 46 Timer<PlatformEventController> m_timer;
47 }; 47 };
48 48
49 } // namespace blink 49 } // namespace blink
50 50
51 #endif // PlatformEventController_h 51 #endif // PlatformEventController_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/frame/PlatformEventController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698