Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 8 | 8 |
| 9 package webapk; | 9 package webapk; |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 repeated Image icons = 6; | 64 repeated Image icons = 6; |
| 65 optional string orientation = 9; | 65 optional string orientation = 9; |
| 66 optional string display_mode = 10; | 66 optional string display_mode = 10; |
| 67 optional string theme_color = 11; | 67 optional string theme_color = 11; |
| 68 optional string background_color = 12; | 68 optional string background_color = 12; |
| 69 | 69 |
| 70 reserved 3, 7, 8, 13, 14; | 70 reserved 3, 7, 8, 13, 14; |
| 71 } | 71 } |
| 72 | 72 |
| 73 message Image { | 73 message Image { |
| 74 | |
| 75 enum Usage { | |
|
hartmanng
2017/02/07 14:53:22
It could be useful to have a
USAGE_UNDEFINED = 0;
F
2017/02/08 15:32:14
Resolved offline :)
| |
| 76 PRIMARY_ICON = 1; | |
|
hartmanng
2017/02/07 14:53:22
I haven't been following discussions around this -
hartmanng
2017/02/07 18:18:29
We've discussed offline and I understand the situa
F
2017/02/08 15:32:14
:)
| |
| 77 BADGE_ICON = 2; | |
| 78 } | |
| 79 | |
| 74 // Image's URL. | 80 // Image's URL. |
| 75 optional string src = 1; | 81 optional string src = 1; |
| 76 | 82 |
| 77 // Murmur2 hash of the icon's bytes. There should not be any transformations | 83 // Murmur2 hash of the icon's bytes. There should not be any transformations |
| 78 // applied to the icon's bytes prior to taking the Murmur2 hash. | 84 // applied to the icon's bytes prior to taking the Murmur2 hash. |
| 79 optional string hash = 5; | 85 optional string hash = 5; |
| 80 | 86 |
| 81 // Actual bytes of the image. This image may be re-encoded from the original | 87 // Actual bytes of the image. This image may be re-encoded from the original |
| 82 // image and may not match the murmur2 hash field above. | 88 // image and may not match the murmur2 hash field above. |
| 83 optional bytes image_data = 6; | 89 optional bytes image_data = 6; |
| 84 | 90 |
| 91 // Specifies intended usages for the image. | |
| 92 repeated Usage usages = 7; | |
|
pkotwicz
2017/02/07 14:38:06
If we end up putting this information in the Andro
hartmanng
2017/02/07 14:53:22
We've actually already added a Purpose member to t
hartmanng
2017/02/07 18:18:29
To sum up our offline conversation, I think what w
hartmanng
2017/02/07 18:18:29
That's not entirely true. The Usage type isn't exa
F
2017/02/08 15:32:14
Done. Thanks for pointing out 7 is already used :)
| |
| 93 | |
| 85 reserved 2 to 4; | 94 reserved 2 to 4; |
| 86 } | 95 } |
| OLD | NEW |