|
Separate the logic of popup alignment and workarea handling as delegate.
MessagePopupCollection contains plenty size of conditions and ifdefs
to work properly with each type of the desktop we have, and some
logic makes side effects on another desktop. This design is unhealty
and adding more conditions sounds incorrect.
Considering this, it would be better to extract platform dependent
parts as a delegate class (PopupAlignmentDelegate) and allow
subclasses to provide platform-specific features.
This design is also beneficial for win-ash, because we had
OS_CHROMEOS layout data and logic which actually means Ash.
BUG= 389656
R=stevenjb@chromium.org, dimich@chromium.org
TBR=jamescook@chromium.org, harrym@chromium.org
TEST=message_center_unittests, ash_unittests, some manual checks
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282269
Total comments: 24
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+860 lines, -408 lines) |
Patch |
 |
M |
ash/ash.gyp
|
View
|
1
2
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_layout_manager.h
|
View
|
1
2
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/system/web_notification/ash_popup_alignment_delegate.h
|
View
|
1
2
|
1 chunk |
+93 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/system/web_notification/ash_popup_alignment_delegate.cc
|
View
|
1
2
|
1 chunk |
+176 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc
|
View
|
1
2
|
1 chunk |
+197 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/system/web_notification/web_notification_tray.h
|
View
|
1
2
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ash/system/web_notification/web_notification_tray.cc
|
View
|
1
2
|
4 chunks |
+8 lines, -135 lines |
0 comments
|
Download
|
 |
M |
ash/system/web_notification/web_notification_tray_unittest.cc
|
View
|
1
2
3
|
8 chunks |
+44 lines, -52 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/message_center/web_notification_tray.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/message_center/web_notification_tray.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/message_center/message_center.gyp
|
View
|
1
2
3
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/message_center/views/desktop_popup_alignment_delegate.h
|
View
|
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/message_center/views/desktop_popup_alignment_delegate.cc
|
View
|
1
2
3
4
|
1 chunk |
+104 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/views/message_popup_collection.h
|
View
|
|
9 chunks |
+8 lines, -51 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/views/message_popup_collection.cc
|
View
|
|
10 chunks |
+27 lines, -135 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/views/message_popup_collection_unittest.cc
|
View
|
|
12 chunks |
+36 lines, -26 lines |
0 comments
|
Download
|
 |
A |
ui/message_center/views/popup_alignment_delegate.h
|
View
|
1
2
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/message_center/views/popup_alignment_delegate.cc
|
View
|
1
2
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/views/toast_contents_view.cc
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
Total messages: 30 (0 generated)
|