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

Unified Diff: blimp/common/proto/geolocation.proto

Issue 2091023006: Adds EngineGeolocationFeature for Blimp Geolocation project. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/common/proto/common.proto ('k') | blimp/common/proto/tab_control.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/proto/geolocation.proto
diff --git a/blimp/common/proto/geolocation.proto b/blimp/common/proto/geolocation.proto
new file mode 100644
index 0000000000000000000000000000000000000000..4734e4167800709d586f4239be9f9d0c9b096ab5
--- /dev/null
+++ b/blimp/common/proto/geolocation.proto
@@ -0,0 +1,59 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+
+import "common.proto";
+
+package blimp;
+
+message GeolocationErrorMessage {
+ enum ErrorCode {
+ PERMISSION_DENIED = 1;
+ POSITION_UNAVAILABLE = 2;
+ TIMEOUT = 3;
+ }
+
+ optional ErrorCode error_code = 1;
+ optional string error_message = 2;
+}
+
+message GeolocationCoordinatesMessage {
+ optional double latitude = 1;
+ optional double longitude = 2;
+ optional double altitude = 3;
+ optional double accuracy = 4;
+ optional double altitude_accuracy = 5;
+ optional double heading = 6;
+ optional double speed = 7;
+}
+
+message GeolocationSetInterestLevelMessage {
+ // These values represent the various listening states the server can have.
+ // A Level containing an accuracy level indicates that the server is
+ // waiting for either high or low accuracy position updates from the client.
+ // If a NO_INTEREST level is sent, the server is no longer listening
+ // for updates.
+ enum Level {
+ NO_INTEREST = 0;
+ HIGH_ACCURACY = 1;
+ LOW_ACCURACY = 2;
+ }
+
+ optional Level level = 1;
+}
+
+message GeolocationMessage {
+ oneof type {
+ // Server => Client types.
+ GeolocationSetInterestLevelMessage set_interest_level = 1;
+ EmptyMessage request_refresh = 2;
+
+ // Client => Server types.
+ GeolocationCoordinatesMessage coordinates = 3;
+ GeolocationErrorMessage error = 4;
+ }
+}
« no previous file with comments | « blimp/common/proto/common.proto ('k') | blimp/common/proto/tab_control.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698