|
|
app_list: Add search box and search result view for v2.
- Add a SearchBoxModel that represents search box's icon, placeholder text,
user typed text and selection model (current selection and cursor position);
- Add a SearchBoxView that displays SearchBoxModel and observes SearchBoxModel
changes via SearchBoxModelObserver;
When user typed/changed text in search box, the view also fires query changed
notification to its SearchBoxViewDelegate;
- Add a SearchResult that carries an icon, two tagged texts;
- Add a SearchResultView that displays a SearchResult;
- Change AppListModel to be a master model that has three sub models:
apps list, search box and search results;
- Add a SearchResultListView that display search results sub model of
AppListModel using a list of SeachResultView;
The view supports up/down key navigation and when user selects a result
via mouse click or enter key, it asks its SearchResultListViewDelegate to
OpenResult;
- Update AppListViewDelegate:
- Add new methods: StartSearch, StopSearch and OpenResult;
- Deleted no-longer needed UpdateModel method;
- Rename OnAppListItemActivated -> ActivateAppListItem;
- Update ash_shell's app_list to support a simple substr match search;
- Add a SearchBuilder that implements the search via AutoCompleteController;
- Other changes:
- Rename AppListModelBuilder -> AppsModelBuilder;
- Rename AppListModelView -> AppsGridView;
BUG= 125964
TEST=Manual. In ash_shell, it searches the 5 example apps. In ash/chrome, it should show similar results as omnibox.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=138938
Total comments: 44
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1967 lines, -1341 lines) |
Patch |
 |
M |
ash/shell/app_list.cc
|
View
|
1
2
|
6 chunks |
+138 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/app/generated_resources.grd
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/views/ash/app_list/app_list_model_builder.h
|
View
|
|
1 chunk |
+0 lines, -76 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/views/ash/app_list/app_list_model_builder.cc
|
View
|
1
|
1 chunk |
+0 lines, -271 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/views/ash/app_list/app_list_model_builder_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -112 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/ash/app_list/app_list_view_delegate.h
|
View
|
1
2
|
2 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/ash/app_list/app_list_view_delegate.cc
|
View
|
1
2
|
2 chunks |
+29 lines, -14 lines |
0 comments
|
Download
|
 |
A + |
chrome/browser/ui/views/ash/app_list/apps_model_builder.h
|
View
|
1
|
2 chunks |
+24 lines, -30 lines |
0 comments
|
Download
|
 |
A + |
chrome/browser/ui/views/ash/app_list/apps_model_builder.cc
|
View
|
1
|
12 chunks |
+43 lines, -58 lines |
0 comments
|
Download
|
 |
A + |
chrome/browser/ui/views/ash/app_list/apps_model_builder_unittest.cc
|
View
|
1
|
4 chunks |
+27 lines, -27 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/views/ash/app_list/search_builder.h
|
View
|
1
2
|
1 chunk |
+52 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/views/ash/app_list/search_builder.cc
|
View
|
1
2
|
1 chunk |
+194 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list.gyp
|
View
|
1
2
3
4
|
3 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_bubble_border.h
|
View
|
1
2
3
|
2 chunks |
+17 lines, -11 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_bubble_border.cc
|
View
|
1
2
3
|
4 chunks |
+53 lines, -34 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_item_view.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_item_view.cc
|
View
|
|
4 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_model.h
|
View
|
|
1 chunk |
+19 lines, -16 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_model.cc
|
View
|
|
1 chunk |
+8 lines, -25 lines |
0 comments
|
Download
|
 |
D |
ui/app_list/app_list_model_view.h
|
View
|
|
1 chunk |
+0 lines, -98 lines |
0 comments
|
Download
|
 |
D |
ui/app_list/app_list_model_view.cc
|
View
|
|
1 chunk |
+0 lines, -327 lines |
0 comments
|
Download
|
 |
D |
ui/app_list/app_list_model_view_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -69 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_view.h
|
View
|
1
2
|
5 chunks |
+27 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_view.cc
|
View
|
1
2
3
|
11 chunks |
+138 lines, -29 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/app_list_view_delegate.h
|
View
|
1
2
|
2 chunks |
+15 lines, -7 lines |
0 comments
|
Download
|
 |
A + |
ui/app_list/apps_grid_view.h
|
View
|
1
2
|
7 chunks |
+20 lines, -20 lines |
1 comment
|
Download
|
 |
A + |
ui/app_list/apps_grid_view.cc
|
View
|
1
2
3
|
12 chunks |
+55 lines, -56 lines |
0 comments
|
Download
|
 |
A + |
ui/app_list/apps_grid_view_unittest.cc
|
View
|
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/page_switcher.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/app_list/page_switcher.cc
|
View
|
1
2
3
|
4 chunks |
+18 lines, -18 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_box_model.h
|
View
|
1
2
|
1 chunk |
+75 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_box_model.cc
|
View
|
1
2
|
1 chunk |
+63 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_box_model_observer.h
|
View
|
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_box_view.h
|
View
|
1
2
|
1 chunk |
+79 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_box_view.cc
|
View
|
1
2
3
|
1 chunk |
+150 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_box_view_delegate.h
|
View
|
1
2
3
4
5
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_result.h
|
View
|
1
2
|
1 chunk |
+78 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_result.cc
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_result_list_view.h
|
View
|
1
2
|
1 chunk |
+73 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_result_list_view.cc
|
View
|
1
2
|
1 chunk |
+154 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_result_list_view_delegate.h
|
View
|
1
2
3
4
5
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_result_view.h
|
View
|
1
2
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/app_list/search_result_view.cc
|
View
|
1
2
|
1 chunk |
+198 lines, -0 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|