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

Issue 1394423004: Initial skeleton of custom layouts for Web Notifications. (Closed)

Created:
5 years, 2 months ago by Michael van Ouwerkerk
Modified:
5 years, 2 months ago
CC:
chromium-reviews, peter+watch_chromium.org, mlamouri+watch-notifications_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initial skeleton of custom layouts for Web Notifications. This skeleton rendering does the following: * Render the contents of title, body, origin, time, icon, and icon overlay * Handles the compact form of the notification * Uses different styles for v17 (Jelly Bean) and v21 (Material) It explicitly does not: * Set padding or positioning or really any exact style quite correctly * Handle the expanded form or do anything special for the private form BUG=541617 Committed: https://crrev.com/4d99f1d9235c49f77d31e6029dd1c5312836e661 Cr-Commit-Position: refs/heads/master@{#354759}

Patch Set 1 #

Patch Set 2 : Fix v17 styles and add entries to LoginCustomFlags. #

Total comments: 16

Patch Set 3 : Address most of peter's comments. #

Patch Set 4 : Add NotificationBuilder. #

Total comments: 6

Patch Set 5 : Add unit tests. #

Patch Set 6 : Address peter's issues. #

Total comments: 10

Patch Set 7 : Address newt's comments. #

Patch Set 8 : Rebase. #

Patch Set 9 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+579 lines, -6 lines) Patch
A chrome/android/java/res/layout/web_notification.xml View 1 2 3 4 5 6 1 chunk +83 lines, -0 lines 0 comments Download
M chrome/android/java/res/values-v17/styles.xml View 1 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/android/java/res/values-v21/styles.xml View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeSwitches.java View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java View 1 2 3 1 chunk +103 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilder.java View 1 2 3 4 5 6 1 chunk +77 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java View 1 2 3 4 5 5 chunks +22 lines, -6 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilder.java View 1 2 3 1 chunk +94 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java View 1 2 3 4 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java View 1 2 3 4 1 chunk +69 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (12 generated)
Michael van Ouwerkerk
Peter: could you take a look please? There's no tests yet so I suspect that ...
5 years, 2 months ago (2015-10-09 16:19:41 UTC) #2
Peter Beverloo
Great to see this in action, thanks Michael! A few higher level comments https://codereview.chromium.org/1394423004/diff/20001/chrome/android/java/res/layout/web_notification.xml File ...
5 years, 2 months ago (2015-10-12 14:08:30 UTC) #3
Michael van Ouwerkerk
https://codereview.chromium.org/1394423004/diff/20001/chrome/android/java/res/layout/web_notification.xml File chrome/android/java/res/layout/web_notification.xml (right): https://codereview.chromium.org/1394423004/diff/20001/chrome/android/java/res/layout/web_notification.xml#newcode7 chrome/android/java/res/layout/web_notification.xml:7: Web notification compact layout. On 2015/10/12 14:08:30, Peter Beverloo ...
5 years, 2 months ago (2015-10-12 17:10:59 UTC) #4
Peter Beverloo
lgtm, thank you! :) We've got some good ideas about testing both ways of showing ...
5 years, 2 months ago (2015-10-13 12:31:50 UTC) #5
Michael van Ouwerkerk
Thanks Peter! I've added some simple unit tests for the builders as well, if you ...
5 years, 2 months ago (2015-10-13 15:22:42 UTC) #6
Michael van Ouwerkerk
Ilya: could you please take a look at histograms.xml? Thanks!
5 years, 2 months ago (2015-10-13 15:29:42 UTC) #8
Michael van Ouwerkerk
Miguel, could you take a look please as owner for ChromeSwitches.java? Thanks!
5 years, 2 months ago (2015-10-13 15:31:22 UTC) #10
Michael van Ouwerkerk
Newton, could you give the UI bits a sanity check please? This is clearly just ...
5 years, 2 months ago (2015-10-13 16:21:29 UTC) #12
Miguel Garcia
lgtm for ChromeSwitches.java
5 years, 2 months ago (2015-10-13 16:35:09 UTC) #13
Ilya Sherman
histograms.xml lgtm
5 years, 2 months ago (2015-10-13 19:01:19 UTC) #14
newt (away)
Looks reasonable as a starting point. Thanks for the clear overview and screenshots in the ...
5 years, 2 months ago (2015-10-14 05:15:49 UTC) #15
Michael van Ouwerkerk
Thanks Newton! It looks like you're away for the next 10 days, so I'll ask ...
5 years, 2 months ago (2015-10-16 13:51:10 UTC) #16
Michael van Ouwerkerk
Dan, could you take a look please as owner (with set noparent even) of chrome/android/java/res/ ...
5 years, 2 months ago (2015-10-16 13:57:22 UTC) #18
gone
lgtm based on newt's comments being addressed.
5 years, 2 months ago (2015-10-16 17:11:08 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1394423004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1394423004/140001
5 years, 2 months ago (2015-10-16 18:38:40 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/121814)
5 years, 2 months ago (2015-10-16 18:48:50 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1394423004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1394423004/140001
5 years, 2 months ago (2015-10-16 19:22:09 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/110189)
5 years, 2 months ago (2015-10-16 19:27:59 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1394423004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1394423004/160001
5 years, 2 months ago (2015-10-19 09:59:25 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 2 months ago (2015-10-19 11:04:51 UTC) #32
commit-bot: I haz the power
5 years, 2 months ago (2015-10-19 11:05:33 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/4d99f1d9235c49f77d31e6029dd1c5312836e661
Cr-Commit-Position: refs/heads/master@{#354759}

Powered by Google App Engine
This is Rietveld 408576698