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

Issue 2377553003: Add ShouldDisplayOverFullscreen support to web notifications. (Closed)

Created:
4 years, 2 months ago by bmalcolm
Modified:
4 years, 2 months ago
Reviewers:
Peter Beverloo, dewittj
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ShouldDisplayOverFullscreen support to web notifications. Added WebNotificationDelegate base class for common functionality of NotificationObjectProxy and PersistentNotificationDelegate. Note that this change does not enable this functionality. BUG=481318 Committed: https://crrev.com/f8395c5644114d234614184748f27eae4934aa76 Cr-Commit-Position: refs/heads/master@{#421963}

Patch Set 1 #

Patch Set 2 : Trying to get previously committed changes out of this cl #

Patch Set 3 : Removing previously committed changes from cl (via git pull) #

Total comments: 22

Patch Set 4 : Address Peter's CL comments. #

Patch Set 5 : Revert changes from previous CL #

Patch Set 6 : Reverting other_app/manifest.json #

Patch Set 7 : Reverting notifications_apitest.cc #

Patch Set 8 : Cleanup #includes in notification_object_proxy.* #

Total comments: 4

Patch Set 9 : Fix Android/OSX unit test breakages #

Total comments: 8

Patch Set 10 : Add some diagnostics to figure out why tests are failing on the MAC #

Patch Set 11 : Try activating browser window to make tests pass on OSX #

Patch Set 12 : Use ui_test_utils to set window focus in the unit tests #

Patch Set 13 : Removed erroneous isActive check #

Total comments: 10

Patch Set 14 : Final formatting fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -53 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +112 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_object_proxy.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/notifications/notification_object_proxy.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -16 lines 0 comments Download
M chrome/browser/notifications/notification_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/notifications/persistent_notification_delegate.h View 1 2 3 3 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/notifications/persistent_notification_delegate.cc View 1 2 3 2 chunks +6 lines, -19 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/platform_notification_service_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +99 lines, -0 lines 0 comments Download
A chrome/browser/notifications/web_notification_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/notifications/web_notification_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (39 generated)
bmalcolm
I really appreciate how you've allowed yourself to be drafted into this.
4 years, 2 months ago (2016-09-27 16:53:29 UTC) #2
Peter Beverloo
This looks great, thank you once more for doing it! Sorry if I'm gate crashing. ...
4 years, 2 months ago (2016-09-27 17:17:37 UTC) #9
bmalcolm
Thanks for jumping in Peter! I appreciate the set of eyes. As a git-noob, I've ...
4 years, 2 months ago (2016-09-27 20:34:36 UTC) #10
Peter Beverloo
Thank you! I see test failures on Mac and Android. https://codereview.chromium.org/2377553003/diff/140001/chrome/browser/notifications/notification_interactive_uitest.cc File chrome/browser/notifications/notification_interactive_uitest.cc (right): https://codereview.chromium.org/2377553003/diff/140001/chrome/browser/notifications/notification_interactive_uitest.cc#newcode913 ...
4 years, 2 months ago (2016-09-28 12:23:13 UTC) #15
bmalcolm
PTAL - unfortunately I don't have permissions to do a TryBot dry run, so I ...
4 years, 2 months ago (2016-09-28 18:30:09 UTC) #20
dewittj
mostly lg, thanks! https://codereview.chromium.org/2377553003/diff/160001/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc File chrome/browser/notifications/platform_notification_service_interactive_uitest.cc (right): https://codereview.chromium.org/2377553003/diff/160001/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc#newcode564 chrome/browser/notifications/platform_notification_service_interactive_uitest.cc:564: IN_PROC_BROWSER_TEST_F(PlatformNotificationServiceBrowserTest, The tests and utilities are ...
4 years, 2 months ago (2016-09-28 20:01:54 UTC) #23
bmalcolm
PTAL. Looks like all of the unit tests now pass. https://codereview.chromium.org/2377553003/diff/160001/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc File chrome/browser/notifications/platform_notification_service_interactive_uitest.cc (right): https://codereview.chromium.org/2377553003/diff/160001/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc#newcode564 ...
4 years, 2 months ago (2016-09-29 20:53:14 UTC) #41
dewittj
lgtm, you may want to wait for Peter's final comments https://codereview.chromium.org/2377553003/diff/160001/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc File chrome/browser/notifications/platform_notification_service_interactive_uitest.cc (right): https://codereview.chromium.org/2377553003/diff/160001/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc#newcode601 ...
4 years, 2 months ago (2016-09-29 20:57:38 UTC) #42
Peter Beverloo
lgtm! https://codereview.chromium.org/2377553003/diff/160001/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc File chrome/browser/notifications/platform_notification_service_interactive_uitest.cc (right): https://codereview.chromium.org/2377553003/diff/160001/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc#newcode601 chrome/browser/notifications/platform_notification_service_interactive_uitest.cc:601: EXPECT_TRUE(notification.delegate()->ShouldDisplayOverFullscreen()); On 2016/09/29 20:57:38, dewittj wrote: > On ...
4 years, 2 months ago (2016-09-29 21:30:52 UTC) #45
Peter Beverloo
> PTAL - unfortunately I don't have permissions to do a TryBot dry run, so ...
4 years, 2 months ago (2016-09-29 21:32:04 UTC) #46
chromium-reviews
I have it now. Justin pointed me in the right direction - requested & granted. ...
4 years, 2 months ago (2016-09-29 21:33:13 UTC) #47
bmalcolm
Thanks both. Next CL (hopefully last) will wire up FullscreenNotificationBlocker with experiment flags & UMA. ...
4 years, 2 months ago (2016-09-29 21:37:13 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2377553003/260001
4 years, 2 months ago (2016-09-29 21:38:03 UTC) #51
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 2 months ago (2016-09-29 22:49:33 UTC) #52
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 22:52:55 UTC) #54
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/f8395c5644114d234614184748f27eae4934aa76
Cr-Commit-Position: refs/heads/master@{#421963}

Powered by Google App Engine
This is Rietveld 408576698