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

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

Issue 1422363008: Add a basic UI to the Android Blimp client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made sure to clear old control data Created 5 years, 1 month 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/control.proto ('k') | blimp/engine/browser/blimp_browser_main_parts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/proto/navigation.proto
diff --git a/blimp/common/proto/navigation.proto b/blimp/common/proto/navigation.proto
new file mode 100644
index 0000000000000000000000000000000000000000..564e1a482c3939a9ee9f7dc18a9d9ddc2dd9ac00
--- /dev/null
+++ b/blimp/common/proto/navigation.proto
@@ -0,0 +1,51 @@
+// Copyright 2015 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.
+//
+// Message definitions for browser navigation messages.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+
+package blimp;
+
+message LoadUrlMessage {
+ // The text to generate and create a URL from. This might be a URL or might
+ // not. It might be text that should be turned into a search URL.
+ // Some example inputs:
+ // 1. google.com
+ // 2. www.wikipedia.org
+ // 3. dogs
+ optional string url = 1;
+}
+
+message NavigationStateChangeMessage {
+ // If the URL changed, this will include the new URL string.
+ optional string url = 1;
+
+ // If the favicon of the page changed, this should include the serialized
+ // bitmap of the favicon.
+ optional bytes favicon = 2;
+
+ // If the title changed, this will contain the new title string.
+ optional string title = 3;
+}
+
+message NavigationMessage {
+ enum Type {
+ // Server => Client types.
+ NAVIGATION_STATE_CHANGED = 1;
+
+ // Client => Server types.
+ LOAD_URL = 2;
+ GO_BACK = 3;
+ GO_FORWARD = 4;
+ RELOAD = 5;
+ }
+
+ optional Type type = 1;
+
+ optional NavigationStateChangeMessage navigation_state_change = 1000;
+ optional LoadUrlMessage load_url = 1001;
+}
« no previous file with comments | « blimp/common/proto/control.proto ('k') | blimp/engine/browser/blimp_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698