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

Unified Diff: webkit/chaos/ChaosCoordinates.cpp

Issue 160084: Chaos geolocation demo, non-WebKit part. Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/chaos/ChaosCoordinates.h ('k') | webkit/chaos/ChaosCoordinates.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/chaos/ChaosCoordinates.cpp
===================================================================
--- webkit/chaos/ChaosCoordinates.cpp (revision 0)
+++ webkit/chaos/ChaosCoordinates.cpp (revision 0)
@@ -0,0 +1,38 @@
+#include "ChaosCoordinates.h"
+
+namespace WebCore {
+
+ChaosCoordinates::ChaosCoordinates(double latitude, double longitude,
+ double accuracy)
+ : latitude_(latitude), longitude_(longitude), accuracy_(accuracy) {
+}
+
+double ChaosCoordinates::latitude() const {
+ return latitude_;
+}
+
+double ChaosCoordinates::longitude() const {
+ return longitude_;
+}
+
+double ChaosCoordinates::altitude() const {
+ return 3;
+}
+
+double ChaosCoordinates::accuracy() const {
+ return accuracy_;
+}
+
+double ChaosCoordinates::altitudeAccuracy() const {
+ return 5;
+}
+
+double ChaosCoordinates::heading() const {
+ return 6;
+}
+
+double ChaosCoordinates::speed() const {
+ return 7;
+}
+
+} // namespace WebCore
Property changes on: webkit/chaos/ChaosCoordinates.cpp
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « webkit/chaos/ChaosCoordinates.h ('k') | webkit/chaos/ChaosCoordinates.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698