|
Refactors the auto-launch logic and adds tests for it.
Previously multiple views control 'auto-launch' status which is
complicated and not test-friendly. This CL separates the roles:
- SearchResultListView updates the auto-launch status based on
the current settings. It can cancel by itself.
- SearchBoxView is responsible to cancel the auto-launch when
the contents has changed.
- ContentsView still needs to ping SearchResultListView to
update the auto-launch state, because only it knows the current
show state.
BUG= 341926
R=xiyuan@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251498
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+453 lines, -68 lines) |
Patch |
 |
M |
ui/app_list/app_list.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/test/app_list_test_view_delegate.h
|
View
|
1
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/app_list/test/app_list_test_view_delegate.cc
|
View
|
1
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/app_list/views/contents_view.h
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/views/contents_view.cc
|
View
|
|
5 chunks |
+7 lines, -21 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/views/search_box_view.h
|
View
|
|
4 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/views/search_box_view.cc
|
View
|
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/views/search_box_view_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+163 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/views/search_result_list_view.h
|
View
|
1
2
3
|
3 chunks |
+22 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/views/search_result_list_view.cc
|
View
|
1
2
|
8 chunks |
+46 lines, -22 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/views/search_result_list_view_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+189 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/views/search_result_view_delegate.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
Total messages: 15 (0 generated)
|