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

Issue 1509923002: Implement native web notifications for mac (Closed)

Created:
5 years ago by Miguel Garcia
Modified:
4 years, 11 months ago
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org, dewittj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement native web notifications for mac Implementation behind the enable-native-notifications chrome://flags Conceptually based on a previous attempt. (https://codereview.chromium.org/224183002) but now using the same interface android uses. System and extensions notifications remain implemented through chrome toasts. There are a few things missing that will come in future CLs, most notably Buttons Auto dimsissal (i.e all notifications requireInteraction) Sounds BUG=571056 Committed: https://crrev.com/3bf899c9d98f84f3e7a297e04c012867cf0ddc11 Cr-Commit-Position: refs/heads/master@{#369255}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 39

Patch Set 3 : #

Total comments: 1

Patch Set 4 : rebase #

Total comments: 16

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : rebase #

Total comments: 15

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -15 lines) Patch
M chrome/app/app-Info.plist View 1 chunk +2 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 +7 lines, -0 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_android.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/notifications/notification_ui_manager_mac.h View 1 2 3 4 5 6 7 8 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/notifications/notification_ui_manager_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +260 lines, -0 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 4 5 6 7 8 9 6 chunks +20 lines, -13 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (11 generated)
Miguel Garcia
5 years ago (2015-12-08 18:03:23 UTC) #2
Peter Beverloo
This is incredibly exciting to see, thank you for the patch! First of all, I'm ...
5 years ago (2015-12-09 00:12:00 UTC) #4
Miguel Garcia
Robert can you have an initial look at the Mac specific pieces to see if ...
5 years ago (2015-12-09 15:10:17 UTC) #7
Miguel Garcia
Robert can you have an initial look at the Mac specific pieces to see if ...
5 years ago (2015-12-09 15:10:19 UTC) #8
Robert Sesek
Looks pretty good! It does seem like only a subset of NotificationUIManager is used, e.g. ...
5 years ago (2015-12-09 16:42:25 UTC) #9
Miguel Garcia
Thanks both for the review! Getting it ready for landing, module the possible interface change ...
5 years ago (2015-12-10 20:16:31 UTC) #10
Miguel Garcia
https://codereview.chromium.org/1509923002/diff/60001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (left): https://codereview.chromium.org/1509923002/diff/60001/chrome/browser/about_flags.cc#oldcode526 chrome/browser/about_flags.cc:526: const FeatureEntry kFeatureEntries[] = { clank format decided to ...
5 years ago (2015-12-10 20:17:41 UTC) #11
Miguel Garcia
PTAL I worked through all the comments and rebased. Will fix the failing tests along ...
5 years ago (2015-12-11 18:00:02 UTC) #12
Robert Sesek
https://codereview.chromium.org/1509923002/diff/40001/chrome/browser/notifications/notification_ui_manager_mac.mm File chrome/browser/notifications/notification_ui_manager_mac.mm (right): https://codereview.chromium.org/1509923002/diff/40001/chrome/browser/notifications/notification_ui_manager_mac.mm#newcode132 chrome/browser/notifications/notification_ui_manager_mac.mm:132: delegate->Display(); On 2015/12/10 20:16:30, Miguel Garcia wrote: > On ...
5 years ago (2015-12-11 21:17:54 UTC) #13
Miguel Garcia
all sorted I think. PTAL https://codereview.chromium.org/1509923002/diff/40001/chrome/browser/notifications/notification_ui_manager_mac.mm File chrome/browser/notifications/notification_ui_manager_mac.mm (right): https://codereview.chromium.org/1509923002/diff/40001/chrome/browser/notifications/notification_ui_manager_mac.mm#newcode132 chrome/browser/notifications/notification_ui_manager_mac.mm:132: delegate->Display(); On 2015/12/11 21:17:53, ...
5 years ago (2015-12-15 13:37:41 UTC) #14
Robert Sesek
https://codereview.chromium.org/1509923002/diff/40001/chrome/browser/notifications/notification_ui_manager_mac.mm File chrome/browser/notifications/notification_ui_manager_mac.mm (right): https://codereview.chromium.org/1509923002/diff/40001/chrome/browser/notifications/notification_ui_manager_mac.mm#newcode132 chrome/browser/notifications/notification_ui_manager_mac.mm:132: delegate->Display(); On 2015/12/15 13:37:38, Miguel Garcia wrote: > On ...
5 years ago (2015-12-15 16:52:54 UTC) #15
Miguel Garcia
+cpu@ for chrome/app/app-Info.plist +mpearson@ for tools/metrics/histograms/histograms.xml
5 years ago (2015-12-18 17:34:28 UTC) #18
Miguel Garcia
Thanks for the review! > https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/notifications/persistent_notification_delegate.cc&q=file:persistent%20file:delega&sq=package:chromium&type=cs&l=25 > > That's a little surprising, given that a ...
5 years ago (2015-12-18 17:40:23 UTC) #19
Robert Sesek
LGTM https://codereview.chromium.org/1509923002/diff/120001/chrome/browser/notifications/notification_ui_manager_mac.h File chrome/browser/notifications/notification_ui_manager_mac.h (right): https://codereview.chromium.org/1509923002/diff/120001/chrome/browser/notifications/notification_ui_manager_mac.h#newcode8 chrome/browser/notifications/notification_ui_manager_mac.h:8: #include <map> Unused?
5 years ago (2015-12-21 23:14:25 UTC) #20
Miguel Garcia
On 2015/12/21 23:14:25, Robert Sesek wrote: > LGTM > > https://codereview.chromium.org/1509923002/diff/120001/chrome/browser/notifications/notification_ui_manager_mac.h > File chrome/browser/notifications/notification_ui_manager_mac.h (right): ...
4 years, 11 months ago (2016-01-05 16:52:16 UTC) #21
cpu_(ooo_6.6-7.5)
hrome/app/app-Info.plist lgtm with note https://codereview.chromium.org/1509923002/diff/120001/chrome/app/app-Info.plist File chrome/app/app-Info.plist (right): https://codereview.chromium.org/1509923002/diff/120001/chrome/app/app-Info.plist#newcode352 chrome/app/app-Info.plist:352: <string>alert</string> weird indentation, btw
4 years, 11 months ago (2016-01-06 17:30:19 UTC) #22
Miguel Garcia
+mpearson@chromium.org for realz this time.
4 years, 11 months ago (2016-01-06 17:51:51 UTC) #24
Mark P
histograms.xml lgtm
4 years, 11 months ago (2016-01-06 18:04:30 UTC) #25
Miguel Garcia
Peter care to have a final look before I land it? The profile issue is ...
4 years, 11 months ago (2016-01-06 18:37:11 UTC) #26
Peter Beverloo
Thank you, and sorry for the delay! A few comments. https://codereview.chromium.org/1509923002/diff/140001/chrome/browser/notifications/notification_ui_manager_mac.h File chrome/browser/notifications/notification_ui_manager_mac.h (right): https://codereview.chromium.org/1509923002/diff/140001/chrome/browser/notifications/notification_ui_manager_mac.h#newcode11 ...
4 years, 11 months ago (2016-01-08 05:14:26 UTC) #27
Miguel Garcia
thanks Peter! https://codereview.chromium.org/1509923002/diff/140001/chrome/browser/notifications/notification_ui_manager_mac.h File chrome/browser/notifications/notification_ui_manager_mac.h (right): https://codereview.chromium.org/1509923002/diff/140001/chrome/browser/notifications/notification_ui_manager_mac.h#newcode11 chrome/browser/notifications/notification_ui_manager_mac.h:11: #include "base/mac/scoped_nsobject.h" On 2016/01/08 05:14:26, Peter Beverloo ...
4 years, 11 months ago (2016-01-08 11:46:55 UTC) #28
Peter Beverloo
https://codereview.chromium.org/1509923002/diff/140001/chrome/browser/notifications/platform_notification_service_impl.cc File chrome/browser/notifications/platform_notification_service_impl.cc (right): https://codereview.chromium.org/1509923002/diff/140001/chrome/browser/notifications/platform_notification_service_impl.cc#newcode102 chrome/browser/notifications/platform_notification_service_impl.cc:102: NotificationUIManager::CreateNativeNotificationManager()); On 2016/01/08 11:46:55, Miguel Garcia wrote: > So ...
4 years, 11 months ago (2016-01-08 19:40:20 UTC) #29
Miguel Garcia
PTAL I removed the AcceptNativeNotifications and removed the ifdefs around CreateNativeNotificationManager On 2016/01/08 19:40:20, Peter ...
4 years, 11 months ago (2016-01-13 14:49:01 UTC) #30
Peter Beverloo
lgtm
4 years, 11 months ago (2016-01-13 19:23:29 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1509923002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1509923002/200001
4 years, 11 months ago (2016-01-13 19:25:16 UTC) #34
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 11 months ago (2016-01-13 20:18:46 UTC) #36
commit-bot: I haz the power
4 years, 11 months ago (2016-01-13 20:19:53 UTC) #38
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/3bf899c9d98f84f3e7a297e04c012867cf0ddc11
Cr-Commit-Position: refs/heads/master@{#369255}

Powered by Google App Engine
This is Rietveld 408576698