OLD | NEW |
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) | |
6 #include "chrome/renderer/geolocation_dispatcher_old.h" | 5 #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 Loading... |
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 | |
OLD | NEW |