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

Issue 114323002: Fixes the context menu for a notification. (Closed)

Created:
7 years ago by Jun Mukai
Modified:
7 years ago
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, tfarina
Visibility:
Public.

Description

Fixes the context menu for a notification. - The contents of the menu is independent from views, so put it into message_center_tray. - Then it can be unit-testable. wrote test case. - Also MessageCenterTrayDelegate can control availability of the menu. - views::ContextMenuController is not necessarily owned by views::View. Moving it to outside of MessageView will reduce a few lines of code from MessageViewController. BUG=327828 R=dewittj@chromium.org, stevenjb@chromium.org TBR=rsesek@chromium.org TEST=message_center_unittests covers Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241474

Patch Set 1 #

Total comments: 10

Patch Set 2 : redesign #

Patch Set 3 : fix #

Patch Set 4 : fix #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : fix #

Patch Set 8 : fix2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -216 lines) Patch
M ash/system/web_notification/web_notification_tray.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/notifications/message_center_notifications_unittest_win.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/message_center/web_notification_tray.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/message_center/web_notification_tray.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M ui/message_center/message_center.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/message_center/message_center_tray.h View 1 2 chunks +11 lines, -0 lines 0 comments Download
M ui/message_center/message_center_tray.cc View 1 3 chunks +87 lines, -0 lines 0 comments Download
M ui/message_center/message_center_tray_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/message_center/message_center_tray_unittest.cc View 1 5 chunks +68 lines, -2 lines 0 comments Download
M ui/message_center/views/group_view.h View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M ui/message_center/views/group_view.cc View 1 2 3 4 5 1 chunk +0 lines, -9 lines 0 comments Download
M ui/message_center/views/message_center_controller.h View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M ui/message_center/views/message_center_view.h View 1 5 chunks +7 lines, -4 lines 0 comments Download
M ui/message_center/views/message_center_view.cc View 1 2 3 4 6 chunks +10 lines, -8 lines 0 comments Download
M ui/message_center/views/message_center_view_unittest.cc View 1 2 chunks +7 lines, -10 lines 0 comments Download
M ui/message_center/views/message_popup_collection.h View 1 3 chunks +6 lines, -3 lines 0 comments Download
M ui/message_center/views/message_popup_collection.cc View 1 5 chunks +8 lines, -7 lines 0 comments Download
M ui/message_center/views/message_view.h View 1 2 3 4 5 4 chunks +7 lines, -6 lines 0 comments Download
M ui/message_center/views/message_view.cc View 1 2 3 4 5 3 chunks +3 lines, -136 lines 0 comments Download
A ui/message_center/views/message_view_context_menu_controller.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A ui/message_center/views/message_view_context_menu_controller.cc View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
M ui/message_center/views/notification_view.h View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M ui/message_center/views/notification_view.cc View 1 2 3 4 5 1 chunk +0 lines, -9 lines 0 comments Download
M ui/message_center/views/toast_contents_view.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ui/message_center/views/toast_contents_view.cc View 1 1 chunk +7 lines, -9 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Jun Mukai
7 years ago (2013-12-12 18:24:20 UTC) #1
stevenjb
https://codereview.chromium.org/114323002/diff/1/chrome/browser/ui/views/message_center/web_notification_tray.cc File chrome/browser/ui/views/message_center/web_notification_tray.cc (right): https://codereview.chromium.org/114323002/diff/1/chrome/browser/ui/views/message_center/web_notification_tray.cc#newcode196 chrome/browser/ui/views/message_center/web_notification_tray.cc:196: // the context menu shouldn't be enabled, such like ...
7 years ago (2013-12-12 21:19:45 UTC) #2
dewittj
I think that dmitry is working on a very similar patch in crrev.com/86083002 - possibly ...
7 years ago (2013-12-12 21:25:29 UTC) #3
Jun Mukai
On 2013/12/12 21:25:29, dewittj wrote: > I think that dmitry is working on a very ...
7 years ago (2013-12-14 01:10:08 UTC) #4
Jun Mukai
forgotten to address the comments... sorry. https://codereview.chromium.org/114323002/diff/1/chrome/browser/ui/views/message_center/web_notification_tray.cc File chrome/browser/ui/views/message_center/web_notification_tray.cc (right): https://codereview.chromium.org/114323002/diff/1/chrome/browser/ui/views/message_center/web_notification_tray.cc#newcode196 chrome/browser/ui/views/message_center/web_notification_tray.cc:196: // the context ...
7 years ago (2013-12-14 01:13:14 UTC) #5
dewittj
lgtm
7 years ago (2013-12-16 19:08:29 UTC) #6
stevenjb
lgtm
7 years ago (2013-12-16 19:30:50 UTC) #7
Jun Mukai
will submit with TBR=rsesek for a minor change on c/b/ui/cocoa/notifications
7 years ago (2013-12-16 20:45:17 UTC) #8
Robert Sesek
LGTM
7 years ago (2013-12-16 20:45:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/114323002/70001
7 years ago (2013-12-16 20:57:37 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=205189
7 years ago (2013-12-16 22:34:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/114323002/90001
7 years ago (2013-12-17 18:03:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/114323002/90001
7 years ago (2013-12-17 18:32:30 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=62809
7 years ago (2013-12-17 21:49:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/114323002/110001
7 years ago (2013-12-17 22:05:11 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=62881
7 years ago (2013-12-18 01:00:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/114323002/130001
7 years ago (2013-12-18 01:30:03 UTC) #17
commit-bot: I haz the power
7 years ago (2013-12-18 04:05:46 UTC) #18
Message was sent while issue was closed.
Change committed as 241474

Powered by Google App Engine
This is Rietveld 408576698