|
Notifications refactor step 2.
Moved notification_types.* from ui/notifications -> ui/message_center (ui/notifications is removed)
Made message_center::Notification a class rather then a struct. Its lifetime is managed by NotificationList.
Moved UnpackOptionalFields from NotificationList to Notification, it is a private member used in ctor.
Removed 2-level collections (set<list>), now all notifications are stored in a std::list (the ScopedVector didn't work since it can't be sorted)
Use stable sort() to figure out the order of notifications in popups and NotificationCenter.
Changed order of notifications in NotificationListUnittest::MarkSinglePopupAsShown - need mukai@ to verify correctness.
NotificationList::RemoveNotification is now void since its bool result was not used.
In NotificationListUnittest, instead of /gtest.gyp:gtest_main include base.gyp:run_all_unittests to initialize ICU etc.
BUG= 174164
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184581
Total comments: 33
Total comments: 6
Total comments: 16
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+677 lines, -642 lines) |
Patch |
 |
M |
ash/shell/window_type_launcher.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/system/web_notification/web_notification_tray_unittest.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/notification/notification_api.h
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/notification/notification_api.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+48 lines, -19 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/notifications/message_center_notification_manager.cc
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/notifications/notification.h
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/notifications/notification.cc
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/ash/balloon_view_ash.cc
|
View
|
1
2
3
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/message_center/web_notification_tray_win_browsertest.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/message_center.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/message_center.cc
|
View
|
|
4 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/message_center.gyp
|
View
|
1
2
3
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/message_center/message_center_bubble.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/message_center_tray_unittest.cc
|
View
|
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/message_popup_bubble.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
7 chunks |
+19 lines, -19 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/message_simple_view.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/message_simple_view.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/message_view.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/message_view.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
7 chunks |
+28 lines, -20 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/notification.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+82 lines, -27 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/notification.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+79 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/notification_list.h
|
View
|
1
2
3
4
5
6
7
8
|
8 chunks |
+32 lines, -32 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/notification_list.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+154 lines, -260 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/notification_list_unittest.cc
|
View
|
1
2
3
4
5
6
|
8 chunks |
+86 lines, -82 lines |
0 comments
|
Download
|
 |
A |
ui/message_center/notification_types.h
|
View
|
1
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
ui/message_center/notification_types.cc
|
View
|
1
|
2 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/notification_view.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/notification_view.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
11 chunks |
+38 lines, -36 lines |
0 comments
|
Download
|
 |
D |
ui/notifications/OWNERS
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
D |
ui/notifications/notification_types.h
|
View
|
1
|
1 chunk |
+0 lines, -49 lines |
0 comments
|
Download
|
 |
D |
ui/notifications/notification_types.cc
|
View
|
1
|
1 chunk |
+0 lines, -27 lines |
0 comments
|
Download
|
 |
M |
ui/ui.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|