Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Issue 10386224: app_list: Add search box and search result view for v2. (Closed)

Created:
8 years, 7 months ago by xiyuan
Modified:
8 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, tfarina
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : rebase, rename and add chrome search #

Total comments: 44

Patch Set 3 : for comments in #2 #

Patch Set 4 : hint text change, sizes/color update #

Patch Set 5 : rebased and fix app_list.gyp #

Patch Set 6 : fix win_aura #

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

Messages

Total messages: 8 (0 generated)
xiyuan
Sorry for the big CL. But it is not a complex one and it is ...
8 years, 7 months ago (2012-05-22 17:46:40 UTC) #1
sky
http://codereview.chromium.org/10386224/diff/8046/ash/shell/app_list.cc File ash/shell/app_list.cc (right): http://codereview.chromium.org/10386224/diff/8046/ash/shell/app_list.cc#newcode81 ash/shell/app_list.cc:81: static std::string GetDetails(Type type) { Add a comment as ...
8 years, 7 months ago (2012-05-22 22:16:06 UTC) #2
xiyuan
CL updated. Addressed all comments and explained why I am currently allowing subclass SearchResult. Please ...
8 years, 7 months ago (2012-05-23 21:25:22 UTC) #3
xiyuan
Sorry if you are looking at patch set 2. :p CL updated with the following ...
8 years, 7 months ago (2012-05-24 17:18:41 UTC) #4
sky
LGTM
8 years, 7 months ago (2012-05-24 17:34:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiyuan@chromium.org/10386224/44001
8 years, 7 months ago (2012-05-24 21:11:49 UTC) #6
commit-bot: I haz the power
Change committed as 138938
8 years, 7 months ago (2012-05-25 00:16:20 UTC) #7
tfarina
8 years, 7 months ago (2012-05-25 19:17:23 UTC) #8
http://codereview.chromium.org/10386224/diff/44001/ui/app_list/apps_grid_view.h
File ui/app_list/apps_grid_view.h (right):

http://codereview.chromium.org/10386224/diff/44001/ui/app_list/apps_grid_view...
ui/app_list/apps_grid_view.h:30: PaginationModel* pagination_model);
nit: fix indent here.

Powered by Google App Engine
This is Rietveld 408576698