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

Side by Side Diff: sync/protocol/session_specifics.proto

Issue 9664008: Add Phone/Tablet device types for syncing session from Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: made function private Created 8 years, 9 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 | « chrome/browser/sync/protocol/proto_enum_conversions.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Sync protocol datatype extension for sessions. 5 // Sync protocol datatype extension for sessions.
6 6
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change
8 // any fields in this file. 8 // any fields in this file.
9 9
10 syntax = "proto2"; 10 syntax = "proto2";
(...skipping 15 matching lines...) Expand all
26 repeated SessionWindow window = 2; 26 repeated SessionWindow window = 2;
27 // A non-unique but human-readable name to describe this client. 27 // A non-unique but human-readable name to describe this client.
28 optional string client_name = 3; 28 optional string client_name = 3;
29 // The type of device. 29 // The type of device.
30 enum DeviceType { 30 enum DeviceType {
31 TYPE_WIN = 1; 31 TYPE_WIN = 1;
32 TYPE_MAC = 2; 32 TYPE_MAC = 2;
33 TYPE_LINUX = 3; 33 TYPE_LINUX = 3;
34 TYPE_CROS = 4; 34 TYPE_CROS = 4;
35 TYPE_OTHER = 5; 35 TYPE_OTHER = 5;
36 TYPE_PHONE = 6;
37 TYPE_TABLET = 7;
36 } 38 }
37 optional DeviceType device_type = 4; 39 optional DeviceType device_type = 4;
38 } 40 }
39 message SessionWindow { 41 message SessionWindow {
40 // Unique (to the owner) id for this window. 42 // Unique (to the owner) id for this window.
41 optional int32 window_id = 1; 43 optional int32 window_id = 1;
42 // Index of the selected tab in tabs; -1 if no tab is selected. 44 // Index of the selected tab in tabs; -1 if no tab is selected.
43 optional int32 selected_tab_index = 2 [default = -1]; 45 optional int32 selected_tab_index = 2 [default = -1];
44 // Type of the browser. Currently we only store browsers of type 46 // Type of the browser. Currently we only store browsers of type
45 // TYPE_TABBED and TYPE_POPUP. 47 // TYPE_TABBED and TYPE_POPUP.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 104 }
103 // These qualifiers further define the transition. 105 // These qualifiers further define the transition.
104 enum PageTransitionQualifier { 106 enum PageTransitionQualifier {
105 CLIENT_REDIRECT = 1; 107 CLIENT_REDIRECT = 1;
106 SERVER_REDIRECT = 2; 108 SERVER_REDIRECT = 2;
107 } 109 }
108 optional PageTransition page_transition = 6 [default = TYPED]; 110 optional PageTransition page_transition = 6 [default = TYPED];
109 optional PageTransitionQualifier navigation_qualifier = 7; 111 optional PageTransitionQualifier navigation_qualifier = 7;
110 } 112 }
111 113
OLDNEW
« no previous file with comments | « chrome/browser/sync/protocol/proto_enum_conversions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698