OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 apps. | 5 // Sync protocol datatype extension for apps. |
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"; |
11 | 11 |
12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
13 option retain_unknown_fields = true; | 13 option retain_unknown_fields = true; |
14 | 14 |
15 package sync_pb; | 15 package sync_pb; |
16 | 16 |
17 import "sync.proto"; | 17 import "sync.proto"; |
18 import "extension_specifics.proto"; | 18 import "extension_specifics.proto"; |
19 | 19 |
20 // Properties of app sync objects. | 20 // Properties of app sync objects. |
21 // | 21 // |
22 // For now, an app is just an extension. We keep the two data types | 22 // For now, an app is just an extension. We keep the two data types |
23 // separate for future-proofing purposes. | 23 // separate for future-proofing purposes. |
24 message AppSpecifics { | 24 message AppSpecifics { |
25 // Extension data. | 25 // Extension data. |
26 optional ExtensionSpecifics extension = 1; | 26 optional ExtensionSpecifics extension = 1; |
| 27 |
| 28 // Position data for the app on the NTP |
| 29 optional int32 app_launch_index = 2; |
| 30 optional int32 page_index = 3; |
27 } | 31 } |
28 | 32 |
29 extend EntitySpecifics { | 33 extend EntitySpecifics { |
30 optional AppSpecifics app = 48364; | 34 optional AppSpecifics app = 48364; |
31 } | 35 } |
OLD | NEW |