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

Side by Side Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.h

Issue 2642923005: Migrate Timer to TaskRunnerTimer in ScreenOrientationControllerImpl (Closed)
Patch Set: Migrate Timer to TaskRunnerTimer in ScreenOrientationControllerImpl Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.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 // 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 ScreenOrientationControllerImpl_h 5 #ifndef ScreenOrientationControllerImpl_h
6 #define ScreenOrientationControllerImpl_h 6 #define ScreenOrientationControllerImpl_h
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/frame/PlatformEventController.h" 9 #include "core/frame/PlatformEventController.h"
10 #include "core/frame/ScreenOrientationController.h" 10 #include "core/frame/ScreenOrientationController.h"
11 #include "modules/ModulesExport.h" 11 #include "modules/ModulesExport.h"
12 #include "platform/Timer.h"
13 #include "public/platform/modules/screen_orientation/WebLockOrientationCallback. h" 12 #include "public/platform/modules/screen_orientation/WebLockOrientationCallback. h"
14 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp e.h" 13 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp e.h"
15 #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h" 14 #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h"
16 #include <memory> 15 #include <memory>
17 16
18 namespace blink { 17 namespace blink {
19 18
20 class ScreenOrientation; 19 class ScreenOrientation;
21 class WebScreenOrientationClient; 20 class WebScreenOrientationClient;
22 21
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void notifyDispatcher(); 61 void notifyDispatcher();
63 62
64 void updateOrientation(); 63 void updateOrientation();
65 64
66 void dispatchEventTimerFired(TimerBase*); 65 void dispatchEventTimerFired(TimerBase*);
67 66
68 bool isActiveAndVisible() const; 67 bool isActiveAndVisible() const;
69 68
70 Member<ScreenOrientation> m_orientation; 69 Member<ScreenOrientation> m_orientation;
71 WebScreenOrientationClient* m_client; 70 WebScreenOrientationClient* m_client;
72 Timer<ScreenOrientationControllerImpl> m_dispatchEventTimer; 71 TaskRunnerTimer<ScreenOrientationControllerImpl> m_dispatchEventTimer;
73 bool m_activeLock = false; 72 bool m_activeLock = false;
74 }; 73 };
75 74
76 } // namespace blink 75 } // namespace blink
77 76
78 #endif // ScreenOrientationControllerImpl_h 77 #endif // ScreenOrientationControllerImpl_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698