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

Issue 306023011: Add new DialogDelegate for dialogs in the App List (Closed)

Created:
6 years, 6 months ago by sashab
Modified:
6 years, 6 months ago
Reviewers:
Lei Zhang, tapted, benwells
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org, xiyuan
Visibility:
Public.

Description

Add new DialogDelegate type for dialogs in the App List Add a simpler WidgetDelegate for dialogs in the app list. The current app list dialogs extend DialogDelegate, which can't be customised enough to achieve the required look for dialogs that open inside the app list. Also, a lot of functions that WidgetDelegate provides are not useful for app list dialogs (e.g. OK/cancel buttons, a titlebar, etc). For now, only the App Info Dialog will use this dialog type. In a later commit, all dialogs that can be launched from the app launcher (including the Uninstall and Create Shortcuts dialogs) will be modified to use this same dialog style. BUG=369888 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277691

Patch Set 1 #

Patch Set 2 : Working for one dialog, now with back button #

Patch Set 3 : Went back to close button, cleaned up a bit #

Patch Set 4 : Removed unnecessary DialogModel #

Patch Set 5 : Split into separate files, fixed unittest and removed no-longer-needed overlay from AppList #

Total comments: 20

Patch Set 6 : Initial feedback #

Total comments: 30

Patch Set 7 : Small windows fixes #

Patch Set 8 : Small fixes #

Total comments: 4

Patch Set 9 : Moved bounds and close button responsibility to ContentsView #

Patch Set 10 : Moved the close button in front of the client view #

Total comments: 2

Patch Set 11 : Removed bounds as a parameter to the AppListDialogContentsView widget creator #

Patch Set 12 : Removed AppListDialogNonClientView to use NativeFrameView instead #

Patch Set 13 : Fixed Layout call in ClientView and removed AppListClientView to use this instead #

Total comments: 2

Patch Set 14 : Removed 'fix' from ClientView and moved call to parent Layout() method to be first #

Patch Set 15 : Made AppInfoDialog a sub-view, and removed a lot of dependencies on close_callback and parent_windo… #

Total comments: 19

Patch Set 16 : Requested fixes #

Patch Set 17 : Nit comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -292 lines) Patch
M chrome/browser/ui/app_list/app_list_controller_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -20 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_controller_delegate_views.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_views_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +0 lines, -38 lines 0 comments Download
M chrome/browser/ui/apps/app_info_dialog.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -12 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_controller_ash.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_controller_ash.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -14 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/app_info_dialog_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -4 lines 0 comments Download
A chrome/browser/ui/views/app_list/app_list_dialog_contents_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/app_list/app_list_dialog_contents_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +163 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -26 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +31 lines, -47 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_manage_tab.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_manage_tab.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_tab.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_tab.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_tab_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_tab.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_tab.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_tab.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_tab.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -8 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M ui/app_list/views/app_list_view.h View 1 2 3 4 4 chunks +0 lines, -14 lines 0 comments Download
M ui/app_list/views/app_list_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +0 lines, -51 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
sashab
General feedback only please :) I am aware that: - My classes need to all ...
6 years, 6 months ago (2014-06-10 03:42:20 UTC) #1
sashab
General feedback again please, unless it all looks OK, then please fully review.
6 years, 6 months ago (2014-06-11 05:42:13 UTC) #2
benwells
From a quick glance I think the overall approach is OK. Sending to tapted@ as ...
6 years, 6 months ago (2014-06-11 07:56:34 UTC) #3
tapted
Some initial comments - more to come but could you describe the change at a ...
6 years, 6 months ago (2014-06-11 08:35:00 UTC) #4
sashab
Thanks - initial feedback done. This dialog type will later extend create_application_shortcut_view and extension_uninstall_dialog_view somehow, ...
6 years, 6 months ago (2014-06-12 00:13:43 UTC) #5
tapted
can you put some screenshots on the bug? There's a thread about this too - ...
6 years, 6 months ago (2014-06-12 04:41:03 UTC) #6
sashab
Small fixes, and some windows stuff. Also added windows screenshots to the bug. https://codereview.chromium.org/306023011/diff/100001/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc File ...
6 years, 6 months ago (2014-06-12 06:22:17 UTC) #7
tapted
as discussed, we should get the lines under the tab switcher to extend to the ...
6 years, 6 months ago (2014-06-12 07:57:43 UTC) #8
sashab
https://codereview.chromium.org/306023011/diff/140001/chrome/browser/ui/views/app_list/app_list_dialog_non_client_view.cc File chrome/browser/ui/views/app_list/app_list_dialog_non_client_view.cc (right): https://codereview.chromium.org/306023011/diff/140001/chrome/browser/ui/views/app_list/app_list_dialog_non_client_view.cc#newcode48 chrome/browser/ui/views/app_list/app_list_dialog_non_client_view.cc:48: explicit AppListOverlayBackground() {} On 2014/06/12 07:57:43, tapted wrote: > ...
6 years, 6 months ago (2014-06-13 04:28:01 UTC) #9
sashab
Not sure if that's the best way to move the close_button to the front, but ...
6 years, 6 months ago (2014-06-13 04:48:05 UTC) #10
tapted
https://codereview.chromium.org/306023011/diff/180001/chrome/browser/ui/views/app_list/app_list_dialog_contents_view.cc File chrome/browser/ui/views/app_list/app_list_dialog_contents_view.cc (right): https://codereview.chromium.org/306023011/diff/180001/chrome/browser/ui/views/app_list/app_list_dialog_contents_view.cc#newcode98 chrome/browser/ui/views/app_list/app_list_dialog_contents_view.cc:98: return new AppListDialogNonClientView(); Hypothetically, what's missing if you do ...
6 years, 6 months ago (2014-06-13 06:23:16 UTC) #11
sashab
Removed the two views, using views::NativeFrameView and views::ClientView instead. Need to fix a small bug ...
6 years, 6 months ago (2014-06-15 23:11:33 UTC) #12
tapted
The second comment is probably redundant if you do the approach in the first comment ...
6 years, 6 months ago (2014-06-16 01:05:43 UTC) #13
sashab
Made AppInfoDialog a view that can be contained inside AppListDialog, removing a lot of dependencies ...
6 years, 6 months ago (2014-06-16 04:20:06 UTC) #14
tapted
https://codereview.chromium.org/306023011/diff/280001/chrome/browser/ui/cocoa/apps/app_info_dialog_cocoa.mm File chrome/browser/ui/cocoa/apps/app_info_dialog_cocoa.mm (right): https://codereview.chromium.org/306023011/diff/280001/chrome/browser/ui/cocoa/apps/app_info_dialog_cocoa.mm#newcode5 chrome/browser/ui/cocoa/apps/app_info_dialog_cocoa.mm:5: #include "chrome/browser/ui/apps/app_info_dialog.h" nit: now that a lot of includes ...
6 years, 6 months ago (2014-06-16 06:11:56 UTC) #15
sashab
The only thing I'm not sure about is the call to views::View::Layout(). Investigating why that ...
6 years, 6 months ago (2014-06-16 07:01:20 UTC) #16
tapted
lgtm with an updated CL description. Remember the first line of the description should be ...
6 years, 6 months ago (2014-06-16 07:24:45 UTC) #17
sashab
benwells: Please review changes in chrome/browser/ui/views/apps xiyuan: Please review changes in chrome/browser/ui/ash/app_list
6 years, 6 months ago (2014-06-16 07:47:51 UTC) #18
sashab
Sorry xiyuan - I assigned you as a reviewer initially, but realised thestig actually reviewed ...
6 years, 6 months ago (2014-06-17 00:17:27 UTC) #19
Lei Zhang
chrome/browser/ui/ash/app_list lgtm
6 years, 6 months ago (2014-06-17 00:22:40 UTC) #20
benwells
On 2014/06/17 00:22:40, Lei Zhang wrote: > chrome/browser/ui/ash/app_list lgtm stamp lgtm. will at tapted@ to ...
6 years, 6 months ago (2014-06-17 01:34:48 UTC) #21
sashab
The CQ bit was checked by sashab@chromium.org
6 years, 6 months ago (2014-06-17 01:41:30 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sashab@chromium.org/306023011/320001
6 years, 6 months ago (2014-06-17 01:42:31 UTC) #23
commit-bot: I haz the power
6 years, 6 months ago (2014-06-17 09:50:36 UTC) #24
Message was sent while issue was closed.
Change committed as 277691

Powered by Google App Engine
This is Rietveld 408576698