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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/webapk/webapk.proto
diff --git a/chrome/browser/android/webapk/webapk.proto b/chrome/browser/android/webapk/webapk.proto
index 05615266b6673f476a9457578ac0f929d1ffcd51..c445140425420e3c6b8faf4fe4012ab277145f73 100644
--- a/chrome/browser/android/webapk/webapk.proto
+++ b/chrome/browser/android/webapk/webapk.proto
@@ -71,6 +71,12 @@ message WebAppManifest {
}
message Image {
+
+ 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 :)
+ 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 :)
+ BADGE_ICON = 2;
+ }
+
// Image's URL.
optional string src = 1;
@@ -82,5 +88,8 @@ message Image {
// image and may not match the murmur2 hash field above.
optional bytes image_data = 6;
+ // Specifies intended usages for the image.
+ 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 :)
+
reserved 2 to 4;
}
« 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