|
Refactor views app list services to allow more code sharing
To run the toolkit-views app launcher on Mac, it needs a new app list
service + supporting classes. It's going to look a lot like the Linux
one. This CL starts by sharing what can be shared between Windows and
Linux, in preparation for using it on Mac as well.
It does this principally by:
- Moving `app_list_shower` to `app_list_shower_views`, making it views-specific;
- Adding AppListServiceViews, which Win/Linux (and soon Mac) inherit from;
- Rearranging the delegation to eliminate some boilerplate.
Other changes:
- Removed AppList container abstract interface (now just access AppListView);
- Removed AppListFactory (now AppListShower::MakeViewForCurrentProfile());
- Moved AppListControllerDelegateLinux to AppListControllerDelegateViews;
- Most of AppListServiceLinux moves to AppListServiceViews;
- Added AppListShowerDelegate and AppListShower given virtual method
hooks to assist testability (previously AppListShower was given a NULL
service/delegate in tests);
- Positioning logic in AppListWin/AppListLinux made static/stateless;
- Removes the `on_should_dismiss_` closure (now just dismiss via the service;
- Big trim of AppListServiceWin and AppListServiceLinux - now these are
just platform-specific stuff.
BUG= 365977
TEST=Just refactoring, nothing should change
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267184
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267354
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268035
Total comments: 2
Total comments: 36
Total comments: 1
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+425 lines, -1071 lines) |
Patch |
|
M |
build/filename_rules.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
D |
chrome/browser/ui/app_list/app_list.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
|
A + |
chrome/browser/ui/app_list/app_list_controller_delegate_views.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
14
|
2 chunks |
+11 lines, -18 lines |
0 comments
|
Download
|
|
A + |
chrome/browser/ui/app_list/app_list_controller_delegate_views.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
14
|
1 chunk |
+11 lines, -11 lines |
0 comments
|
Download
|
|
D |
chrome/browser/ui/app_list/app_list_factory.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -27 lines |
0 comments
|
Download
|
|
A + |
chrome/browser/ui/app_list/app_list_service_views.h
|
View
|
1
2
3
4
5
6
7
8
9
10
14
|
2 chunks |
+28 lines, -22 lines |
0 comments
|
Download
|
|
A |
chrome/browser/ui/app_list/app_list_service_views.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+71 lines, -0 lines |
0 comments
|
Download
|
|
D |
chrome/browser/ui/app_list/app_list_shower.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -66 lines |
0 comments
|
Download
|
|
D |
chrome/browser/ui/app_list/app_list_shower.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -102 lines |
0 comments
|
Download
|
|
A |
chrome/browser/ui/app_list/app_list_shower_delegate.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
|
A + |
chrome/browser/ui/app_list/app_list_shower_views.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
14
|
1 chunk |
+33 lines, -24 lines |
0 comments
|
Download
|
|
A + |
chrome/browser/ui/app_list/app_list_shower_views.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+57 lines, -21 lines |
0 comments
|
Download
|
|
A + |
chrome/browser/ui/app_list/app_list_shower_views_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
5 chunks |
+59 lines, -59 lines |
0 comments
|
Download
|
|
D |
chrome/browser/ui/app_list/test/app_list_shower_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -166 lines |
0 comments
|
Download
|
|
D |
chrome/browser/ui/views/app_list/linux/app_list_controller_delegate_linux.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -38 lines |
0 comments
|
Download
|
|
D |
chrome/browser/ui/views/app_list/linux/app_list_controller_delegate_linux.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -31 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/linux/app_list_linux.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+4 lines, -33 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/linux/app_list_linux.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
3 chunks |
+6 lines, -62 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/linux/app_list_linux_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/linux/app_list_service_linux.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+13 lines, -21 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+24 lines, -85 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/win/activation_tracker_win.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -12 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/win/activation_tracker_win.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/win/app_list_controller_delegate_win.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+3 lines, -19 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/win/app_list_controller_delegate_win.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -21 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/win/app_list_service_win.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+14 lines, -21 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/win/app_list_service_win.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
8 chunks |
+25 lines, -95 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/win/app_list_win.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+9 lines, -29 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/app_list/win/app_list_win.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
3 chunks |
+7 lines, -45 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_browser_ui.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
3 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 30 (0 generated)
|