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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/chaos/ChaosCoordinates.h ('k') | webkit/chaos/ChaosCoordinates.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #include "ChaosCoordinates.h"
2
3 namespace WebCore {
4
5 ChaosCoordinates::ChaosCoordinates(double latitude, double longitude,
6 double accuracy)
7 : latitude_(latitude), longitude_(longitude), accuracy_(accuracy) {
8 }
9
10 double ChaosCoordinates::latitude() const {
11 return latitude_;
12 }
13
14 double ChaosCoordinates::longitude() const {
15 return longitude_;
16 }
17
18 double ChaosCoordinates::altitude() const {
19 return 3;
20 }
21
22 double ChaosCoordinates::accuracy() const {
23 return accuracy_;
24 }
25
26 double ChaosCoordinates::altitudeAccuracy() const {
27 return 5;
28 }
29
30 double ChaosCoordinates::heading() const {
31 return 6;
32 }
33
34 double ChaosCoordinates::speed() const {
35 return 7;
36 }
37
38 } // namespace WebCore
OLDNEW
« 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