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

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

Issue 1362973004: Rename FROM_HERE to BLINK_FROM_HERE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 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
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 #include "config.h" 5 #include "config.h"
6 #include "core/frame/PlatformEventController.h" 6 #include "core/frame/PlatformEventController.h"
7 7
8 #include "core/page/Page.h" 8 #include "core/page/Page.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 19 matching lines...) Expand all
30 didUpdateData(); 30 didUpdateData();
31 } 31 }
32 32
33 void PlatformEventController::startUpdating() 33 void PlatformEventController::startUpdating()
34 { 34 {
35 if (m_isActive) 35 if (m_isActive)
36 return; 36 return;
37 37
38 if (hasLastData() && !m_timer.isActive()) { 38 if (hasLastData() && !m_timer.isActive()) {
39 // Make sure to fire the data as soon as possible. 39 // Make sure to fire the data as soon as possible.
40 m_timer.startOneShot(0, FROM_HERE); 40 m_timer.startOneShot(0, BLINK_FROM_HERE);
41 } 41 }
42 42
43 registerWithDispatcher(); 43 registerWithDispatcher();
44 m_isActive = true; 44 m_isActive = true;
45 } 45 }
46 46
47 void PlatformEventController::stopUpdating() 47 void PlatformEventController::stopUpdating()
48 { 48 {
49 if (!m_isActive) 49 if (!m_isActive)
50 return; 50 return;
(...skipping 10 matching lines...) Expand all
61 if (!m_hasEventListener) 61 if (!m_hasEventListener)
62 return; 62 return;
63 63
64 if (page()->visibilityState() == PageVisibilityStateVisible) 64 if (page()->visibilityState() == PageVisibilityStateVisible)
65 startUpdating(); 65 startUpdating();
66 else 66 else
67 stopUpdating(); 67 stopUpdating();
68 } 68 }
69 69
70 } // namespace blink 70 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698