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

Side by Side Diff: chrome/browser/android/webapk/webapk.proto

Issue 2686543002: Add "usages" field to Image in WebApk.proto (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | 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 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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698