| 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 { |
| 76 PRIMARY_ICON = 1; |
| 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 |
| 85 reserved 2 to 4; | 91 // Specifies Chrome's intended usages for the image. |
| 92 repeated Usage usages = 8; |
| 93 |
| 94 reserved 2, 3, 4, 7; |
| 86 } | 95 } |
| OLD | NEW |