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

Side by Side Diff: chrome/renderer/geolocation_dispatcher_old.cc

Issue 5612005: Client-based geolocation support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #if !defined(ENABLE_CLIENT_BASED_GEOLOCATION)
5 #include "chrome/renderer/geolocation_dispatcher_old.h" 6 #include "chrome/renderer/geolocation_dispatcher_old.h"
6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/renderer/render_view.h" 9 #include "chrome/renderer/render_view.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationServiceBridge. h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationServiceBridge. h"
13 13
14 using WebKit::WebFrame; 14 using WebKit::WebFrame;
15 15
16 GeolocationDispatcherOld::GeolocationDispatcherOld(RenderView* render_view) 16 GeolocationDispatcherOld::GeolocationDispatcherOld(RenderView* render_view)
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 geoposition.is_valid_heading(), geoposition.heading, 106 geoposition.is_valid_heading(), geoposition.heading,
107 geoposition.is_valid_speed(), geoposition.speed, 107 geoposition.is_valid_speed(), geoposition.speed,
108 static_cast<int64>(geoposition.timestamp.ToDoubleT() * 1000)); 108 static_cast<int64>(geoposition.timestamp.ToDoubleT() * 1000));
109 } else { 109 } else {
110 it.GetCurrentValue()->setLastError( 110 it.GetCurrentValue()->setLastError(
111 geoposition.error_code, 111 geoposition.error_code,
112 WebKit::WebString::fromUTF8(geoposition.error_message)); 112 WebKit::WebString::fromUTF8(geoposition.error_message));
113 } 113 }
114 } 114 }
115 } 115 }
116 #endif // !ENABLE_CLIENT_BASED_GEOLOCATION
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698