|
Move AppListModel::Users to AppListViewDelegate
This is some minor re-factoring to simplify AppListModel in preparation
for making it associated with a Profile for syncing. While not strictly
necessary, it is confusing to have a list of "Users" associated with a
model that describes the list of apps for a specific user. Also, the
list of Users is only used by AppListMenu and can be maintained by
AppListViewDelegate.
One side effect of this change is that views will not be notified if the
user list changes and therefore can not invalidate the menu. While this
could be addressed, it shoudln't generally be possible to add a user
while the app list UI is visible, so the added complexity did not seem
worth supporting a theoretical edge case.
BUG= 315887
For ash/shell/app_list.cc:
TBR=jamescook@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233996
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+88 lines, -122 lines) |
Patch |
 |
M |
ash/shell/app_list.cc
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/app_list/app_list_view_delegate.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/app_list/app_list_view_delegate.cc
|
View
|
|
3 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list.gyp
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_menu.h
|
View
|
|
3 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_menu.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_model.h
|
View
|
|
4 chunks |
+0 lines, -30 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_model.cc
|
View
|
|
2 chunks |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_model_observer.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_model_unittest.cc
|
View
|
|
6 chunks |
+0 lines, -19 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_view_delegate.h
|
View
|
1
|
3 chunks |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
ui/app_list/app_list_view_delegate.cc
|
View
|
1
2
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/cocoa/app_list_view_controller.mm
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/cocoa/apps_search_box_controller.mm
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/cocoa/apps_search_box_controller_unittest.mm
|
View
|
1
2
3
4
5
6
|
9 chunks |
+19 lines, -19 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/test/app_list_test_view_delegate.h
|
View
|
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/test/app_list_test_view_delegate.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/views/app_list_menu_views.h
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/views/app_list_menu_views.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/views/app_list_view.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/app_list/views/app_list_view.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/views/search_box_view.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|