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

Issue 2335293002: ShouldDisplayOverFullscreen implementation (Closed)

Created:
4 years, 3 months ago by bmalcolm
Modified:
4 years, 3 months ago
Reviewers:
dewittj
CC:
chromium-reviews, Peter Beverloo, 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

ShouldDisplayOverFullscreen implementation Add default ShouldDisplayOverFullscreen method to NotificationDelegate that always returns false. Add implementation for NotificationsApiDelegate that returns true for ShouldDisplayOverFullscreen when the app that created the notificaiton is displaying fullscreen content. Note that this change does not enable this functionality. BUG=481318 Committed: https://crrev.com/4607efe4c6936c028c7fa4af04a0460312bd7b61 Cr-Commit-Position: refs/heads/master@{#419533}

Patch Set 1 #

Total comments: 3

Patch Set 2 : ShouldDisplayOverFullscreen refinements #

Total comments: 11

Patch Set 3 : Unit test and formatting cleanup. #

Total comments: 2

Patch Set 4 : Remove NotificationApiDelegate.profile_ member variable, removed unit test lookup table. #

Patch Set 5 : Add fake mac fullscreen window for unit tests #

Patch Set 6 : Try to remove fullscreen_notification_blocker from patch #

Patch Set 7 : Debugging info to see why tests are failing on OSX. #

Patch Set 8 : Add back multifullscreen test to see where OSX failure occurs #

Patch Set 9 : Focus the app window so that OSX tests pass #

Patch Set 10 : Pragma to prevent false-positive unreachable code warning on MSVC compilation. #

Patch Set 11 : Use ui_test_utils to set focus to the appropriate window in tests. #

Patch Set 12 : Rebasing to try to get patch to compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -12 lines) Patch
M chrome/browser/extensions/api/notifications/notifications_api.cc View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_apitest.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +145 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/notifications/api/basic_app/index.html View 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/notifications/api/basic_app/index.js View 1 chunk +21 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/notifications/api/basic_app/main.js View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/api_test/notifications/api/basic_app/manifest.json View 1 chunk +14 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/notifications/api/other_app/index.html View 1 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/notifications/api/other_app/index.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -4 lines 0 comments Download
A + chrome/test/data/extensions/api_test/notifications/api/other_app/main.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/notifications/api/other_app/manifest.json View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M ui/message_center/notification_delegate.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/message_center/notification_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (31 generated)
bmalcolm
Sorry so long between CLs. Hope you still remember what we discussed. My next CL ...
4 years, 3 months ago (2016-09-13 17:42:12 UTC) #3
dewittj
I did not notice an l-g-t-m from API owners on apps-dev or extensions-dev. Did they ...
4 years, 3 months ago (2016-09-13 22:56:51 UTC) #4
bmalcolm
On 2016/09/13 22:56:51, dewittj wrote: > I did not notice an l-g-t-m from API owners ...
4 years, 3 months ago (2016-09-14 20:40:37 UTC) #5
dewittj
If you look at the unified diffs for each file, you can respond to each ...
4 years, 3 months ago (2016-09-14 21:06:52 UTC) #6
bmalcolm
Sorry for the incorrect use of reply. I actually looked for the inline method of ...
4 years, 3 months ago (2016-09-14 21:56:25 UTC) #7
dewittj
https://codereview.chromium.org/2335293002/diff/20001/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/2335293002/diff/20001/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode149 chrome/browser/extensions/api/notifications/notifications_api.cc:149: profile_(profile), On 2016/09/14 21:56:24, bmalcolm wrote: > On 2016/09/14 ...
4 years, 3 months ago (2016-09-14 23:09:47 UTC) #8
bmalcolm
I went ahead and removed the profile_ member variable since it's available from api_function_. https://codereview.chromium.org/2335293002/diff/40001/chrome/browser/extensions/api/notifications/notifications_apitest.cc ...
4 years, 3 months ago (2016-09-15 16:25:52 UTC) #9
dewittj
lgtm
4 years, 3 months ago (2016-09-15 16:45:56 UTC) #10
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/2335293002/50013
4 years, 3 months ago (2016-09-15 16:47:56 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/297054)
4 years, 3 months ago (2016-09-15 18:02:41 UTC) #14
bmalcolm
PTAL I had to modify the unit tests (but not the code) to run on ...
4 years, 3 months ago (2016-09-16 20:26:38 UTC) #39
dewittj
still lgtm
4 years, 3 months ago (2016-09-19 16:44:54 UTC) #40
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/2335293002/210001
4 years, 3 months ago (2016-09-19 18:19:25 UTC) #42
commit-bot: I haz the power
Committed patchset #12 (id:210001)
4 years, 3 months ago (2016-09-19 19:42:45 UTC) #44
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 21:03:11 UTC) #46
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/4607efe4c6936c028c7fa4af04a0460312bd7b61
Cr-Commit-Position: refs/heads/master@{#419533}

Powered by Google App Engine
This is Rietveld 408576698