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

Side by Side Diff: Source/modules/geolocation/GeoNotifier.cpp

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/geolocation/GeoNotifier.h ('k') | Source/modules/geolocation/GeofencingRegion.h » ('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 #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/PositionCallback.h" 9 #include "modules/geolocation/PositionCallback.h"
10 #include "modules/geolocation/PositionError.h" 10 #include "modules/geolocation/PositionError.h"
11 #include "modules/geolocation/PositionErrorCallback.h" 11 #include "modules/geolocation/PositionErrorCallback.h"
12 #include "modules/geolocation/PositionOptions.h" 12 #include "modules/geolocation/PositionOptions.h"
13 13
14 namespace WebCore { 14 namespace blink {
15 15
16 GeoNotifier::GeoNotifier(Geolocation* geolocation, PassOwnPtr<PositionCallback> successCallback, PassOwnPtr<PositionErrorCallback> errorCallback, PositionOption s* options) 16 GeoNotifier::GeoNotifier(Geolocation* geolocation, PassOwnPtr<PositionCallback> successCallback, PassOwnPtr<PositionErrorCallback> errorCallback, PositionOption s* options)
17 // FIXME : m_geolocation should be removed, it makes circular dependancy. 17 // FIXME : m_geolocation should be removed, it makes circular dependancy.
18 : m_geolocation(geolocation) 18 : m_geolocation(geolocation)
19 , m_successCallback(successCallback) 19 , m_successCallback(successCallback)
20 , m_errorCallback(errorCallback) 20 , m_errorCallback(errorCallback)
21 , m_options(options) 21 , m_options(options)
22 , m_timer(this, &GeoNotifier::timerFired) 22 , m_timer(this, &GeoNotifier::timerFired)
23 , m_useCachedPosition(false) 23 , m_useCachedPosition(false)
24 { 24 {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 m_useCachedPosition = false; 94 m_useCachedPosition = false;
95 m_geolocation->requestUsesCachedPosition(this); 95 m_geolocation->requestUsesCachedPosition(this);
96 return; 96 return;
97 } 97 }
98 98
99 if (m_errorCallback) 99 if (m_errorCallback)
100 m_errorCallback->handleEvent(PositionError::create(PositionError::TIMEOU T, "Timeout expired")); 100 m_errorCallback->handleEvent(PositionError::create(PositionError::TIMEOU T, "Timeout expired"));
101 m_geolocation->requestTimedOut(this); 101 m_geolocation->requestTimedOut(this);
102 } 102 }
103 103
104 } // namespace WebCore 104 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/geolocation/GeoNotifier.h ('k') | Source/modules/geolocation/GeofencingRegion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698