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

Side by Side Diff: third_party/WebKit/Source/modules/geolocation/GeoNotifier.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 "modules/geolocation/GeoNotifier.h" 6 #include "modules/geolocation/GeoNotifier.h"
7 7
8 #include "modules/geolocation/Geolocation.h" 8 #include "modules/geolocation/Geolocation.h"
9 #include "modules/geolocation/PositionError.h" 9 #include "modules/geolocation/PositionError.h"
10 #include "modules/geolocation/PositionOptions.h" 10 #include "modules/geolocation/PositionOptions.h"
(...skipping 24 matching lines...) Expand all
35 { 35 {
36 // If a fatal error has already been set, stick with it. This makes sure tha t 36 // If a fatal error has already been set, stick with it. This makes sure tha t
37 // when permission is denied, this is the error reported, as required by the 37 // when permission is denied, this is the error reported, as required by the
38 // spec. 38 // spec.
39 if (m_fatalError) 39 if (m_fatalError)
40 return; 40 return;
41 41
42 m_fatalError = error; 42 m_fatalError = error;
43 // An existing timer may not have a zero timeout. 43 // An existing timer may not have a zero timeout.
44 m_timer.stop(); 44 m_timer.stop();
45 m_timer.startOneShot(0, FROM_HERE); 45 m_timer.startOneShot(0, BLINK_FROM_HERE);
46 } 46 }
47 47
48 void GeoNotifier::setUseCachedPosition() 48 void GeoNotifier::setUseCachedPosition()
49 { 49 {
50 m_useCachedPosition = true; 50 m_useCachedPosition = true;
51 m_timer.startOneShot(0, FROM_HERE); 51 m_timer.startOneShot(0, BLINK_FROM_HERE);
52 } 52 }
53 53
54 void GeoNotifier::runSuccessCallback(Geoposition* position) 54 void GeoNotifier::runSuccessCallback(Geoposition* position)
55 { 55 {
56 m_successCallback->handleEvent(position); 56 m_successCallback->handleEvent(position);
57 } 57 }
58 58
59 void GeoNotifier::runErrorCallback(PositionError* error) 59 void GeoNotifier::runErrorCallback(PositionError* error)
60 { 60 {
61 if (m_errorCallback) 61 if (m_errorCallback)
62 m_errorCallback->handleEvent(error); 62 m_errorCallback->handleEvent(error);
63 } 63 }
64 64
65 void GeoNotifier::startTimer() 65 void GeoNotifier::startTimer()
66 { 66 {
67 m_timer.startOneShot(m_options.timeout() / 1000.0, FROM_HERE); 67 m_timer.startOneShot(m_options.timeout() / 1000.0, BLINK_FROM_HERE);
68 } 68 }
69 69
70 void GeoNotifier::stopTimer() 70 void GeoNotifier::stopTimer()
71 { 71 {
72 m_timer.stop(); 72 m_timer.stop();
73 } 73 }
74 74
75 void GeoNotifier::timerFired(Timer<GeoNotifier>*) 75 void GeoNotifier::timerFired(Timer<GeoNotifier>*)
76 { 76 {
77 m_timer.stop(); 77 m_timer.stop();
(...skipping 14 matching lines...) Expand all
92 m_geolocation->requestUsesCachedPosition(this); 92 m_geolocation->requestUsesCachedPosition(this);
93 return; 93 return;
94 } 94 }
95 95
96 if (m_errorCallback) 96 if (m_errorCallback)
97 m_errorCallback->handleEvent(PositionError::create(PositionError::TIMEOU T, "Timeout expired")); 97 m_errorCallback->handleEvent(PositionError::create(PositionError::TIMEOU T, "Timeout expired"));
98 m_geolocation->requestTimedOut(this); 98 m_geolocation->requestTimedOut(this);
99 } 99 }
100 100
101 } // namespace blink 101 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698