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

Issue 648833004: Componentize app_modal_dialog (Closed)

Created:
6 years, 2 months ago by oshima
Modified:
6 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, vsevik, nkostylev+watch_chromium.org, jennb, tfarina, jianli, Dmitry Titov, yurys, paulirish+reviews_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, devtools-reviews_chromium.org, chromium-apps-reviews_chromium.org, dcheng, aandrey+blink_chromium.org, stevenjb+watch_chromium.org, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src@master
Project:
chromium
Visibility:
Public.

Description

Componentize app_modal_dialog Notable changes (other than just moving code aruond) * kJavaScriptMessageExpectedDelay constant has been moved from chrome_constants to javascript_dialog_manager.cc because that's the only place used. * NOTIFICATION_APP_MODAL_DIALOG_SHOWN notification has been removed and replaced by test only waiter class. (as this notification was used only in tests) * Moved and creates string resource for app_modal_dialog. Next step: move dialog implementations to compoents/app_modal_dialogs (javascript_dialog_manager/ javascript_app_modal_dialogs_views/, javascript_app_modal_dialogs_cocoa ....) BUG=422092 TBR=sky@chromium.org Committed: https://crrev.com/82f7248c0e48ee71c4b78f9d305caefc7fa9bab2 Cr-Commit-Position: refs/heads/master@{#301095}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 2

Patch Set 4 : owners #

Total comments: 49

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : git cl try #

Total comments: 12

Patch Set 9 : #

Total comments: 4

Patch Set 10 : #

Total comments: 3

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -871 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +0 lines, -45 lines 0 comments Download
M chrome/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_notification_types.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/signin/oauth2_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/devtools/devtools_sanity_browsertest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/alert_apitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/lazy_background_page_apitest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/lifetime/browser_close_manager_browsertest.cc View 1 2 3 4 5 6 7 8 32 chunks +58 lines, -88 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/android/javascript_app_modal_dialog_android.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/android/javascript_app_modal_dialog_android.cc View 1 chunk +2 lines, -2 lines 0 comments Download
D chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h View 1 chunk +0 lines, -92 lines 0 comments Download
D chrome/browser/ui/app_modal_dialogs/app_modal_dialog.cc View 1 chunk +0 lines, -72 lines 0 comments Download
D chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h View 1 chunk +0 lines, -89 lines 0 comments Download
D chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.cc View 1 chunk +0 lines, -76 lines 0 comments Download
D chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.h View 1 2 1 chunk +0 lines, -101 lines 0 comments Download
D chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.cc View 1 chunk +0 lines, -177 lines 0 comments Download
M chrome/browser/ui/app_modal_dialogs/javascript_dialog_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -11 lines 0 comments Download
D chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h View 1 chunk +0 lines, -38 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.mm View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/javascript_app_modal_dialog_views.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/javascript_app_modal_dialog_views.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/unload_browsertest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 9 10 2 chunks +1 line, -7 lines 0 comments Download
M chrome/common/chrome_constants.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/base/ui_test_utils.cc View 1 2 3 4 5 6 7 8 4 chunks +36 lines, -8 lines 0 comments Download
M components/OWNERS View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A components/app_modal_dialogs.gypi View 1 2 3 4 5 6 7 8 1 chunk +36 lines, -0 lines 0 comments Download
A components/app_modal_dialogs/BUILD.gn View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A + components/app_modal_dialogs/DEPS View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
A + components/app_modal_dialogs/OWNERS View 1 2 3 4 5 6 7 8 9 10 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/app_modal_dialogs/app_modal_dialog.h View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -3 lines 0 comments Download
A + components/app_modal_dialogs/app_modal_dialog.cc View 1 2 3 4 5 6 7 8 9 2 chunks +22 lines, -10 lines 0 comments Download
A + components/app_modal_dialogs/app_modal_dialog_queue.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
A + components/app_modal_dialogs/app_modal_dialog_queue.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + components/app_modal_dialogs/javascript_app_modal_dialog.h View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
A + components/app_modal_dialogs/javascript_app_modal_dialog.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
A + components/app_modal_dialogs/native_app_modal_dialog.h View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
A components/app_modal_dialogs_strings.grdp View 1 2 3 4 5 6 7 8 1 chunk +49 lines, -0 lines 0 comments Download
M components/components.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M components/components_strings.grd View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 72 (50 generated)
oshima
avi for app_modal_dialog change. blundell for c14n change.
6 years, 2 months ago (2014-10-21 16:18:56 UTC) #40
Avi (use Gerrit)
https://codereview.chromium.org/648833004/diff/2370001/components/app_modal_dialogs/app_modal_dialog.cc File components/app_modal_dialogs/app_modal_dialog.cc (left): https://codereview.chromium.org/648833004/diff/2370001/components/app_modal_dialogs/app_modal_dialog.cc#oldcode35 components/app_modal_dialogs/app_modal_dialog.cc:35: chrome::NOTIFICATION_APP_MODAL_DIALOG_SHOWN, If you are removing the firing of this ...
6 years, 2 months ago (2014-10-21 17:14:29 UTC) #41
oshima
https://codereview.chromium.org/648833004/diff/2370001/components/app_modal_dialogs/app_modal_dialog.cc File components/app_modal_dialogs/app_modal_dialog.cc (left): https://codereview.chromium.org/648833004/diff/2370001/components/app_modal_dialogs/app_modal_dialog.cc#oldcode35 components/app_modal_dialogs/app_modal_dialog.cc:35: chrome::NOTIFICATION_APP_MODAL_DIALOG_SHOWN, On 2014/10/21 17:14:29, Avi wrote: > If you ...
6 years, 2 months ago (2014-10-21 18:27:15 UTC) #42
Avi (use Gerrit)
https://codereview.chromium.org/648833004/diff/2390001/components/app_modal_dialogs/app_modal_dialog.h File components/app_modal_dialogs/app_modal_dialog.h (right): https://codereview.chromium.org/648833004/diff/2390001/components/app_modal_dialogs/app_modal_dialog.h#newcode103 components/app_modal_dialogs/app_modal_dialog.h:103: }; Usually for something like this we'd have some ...
6 years, 2 months ago (2014-10-21 20:10:49 UTC) #43
oshima
https://codereview.chromium.org/648833004/diff/2390001/components/app_modal_dialogs/app_modal_dialog.h File components/app_modal_dialogs/app_modal_dialog.h (right): https://codereview.chromium.org/648833004/diff/2390001/components/app_modal_dialogs/app_modal_dialog.h#newcode103 components/app_modal_dialogs/app_modal_dialog.h:103: }; On 2014/10/21 20:10:48, Avi wrote: > Usually for ...
6 years, 2 months ago (2014-10-21 21:39:45 UTC) #44
Avi (use Gerrit)
On 2014/10/21 21:39:45, oshima wrote: > https://codereview.chromium.org/648833004/diff/2390001/components/app_modal_dialogs/app_modal_dialog.h > File components/app_modal_dialogs/app_modal_dialog.h (right): > > https://codereview.chromium.org/648833004/diff/2390001/components/app_modal_dialogs/app_modal_dialog.h#newcode103 > ...
6 years, 2 months ago (2014-10-21 23:24:48 UTC) #45
blundell
The new component needs OWNERS. One of those OWNERS should review the code going into ...
6 years, 2 months ago (2014-10-22 13:47:51 UTC) #46
oshima
+mws for c/b/ui/OWNERS I added avi as an owner based on the commit history. Who ...
6 years, 2 months ago (2014-10-22 15:51:10 UTC) #48
oshima
On 2014/10/22 15:51:10, oshima wrote: > +mws for c/b/ui/OWNERS oops, sorry for typo. +msw@ > ...
6 years, 2 months ago (2014-10-22 15:51:36 UTC) #49
msw
These need more thorough review from actual [prospective] OWNERS! https://codereview.chromium.org/648833004/diff/2410001/chrome/browser/chrome_notification_types.h File chrome/browser/chrome_notification_types.h (left): https://codereview.chromium.org/648833004/diff/2410001/chrome/browser/chrome_notification_types.h#oldcode127 chrome/browser/chrome_notification_types.h:127: ...
6 years, 2 months ago (2014-10-22 22:53:32 UTC) #50
oshima
https://codereview.chromium.org/648833004/diff/2410001/chrome/browser/chrome_notification_types.h File chrome/browser/chrome_notification_types.h (left): https://codereview.chromium.org/648833004/diff/2410001/chrome/browser/chrome_notification_types.h#oldcode127 chrome/browser/chrome_notification_types.h:127: // Application-modal dialogs ----------------------------------------------- On 2014/10/22 22:53:31, msw wrote: ...
6 years, 2 months ago (2014-10-23 00:44:12 UTC) #56
msw
lgtm with nits https://codereview.chromium.org/648833004/diff/2410001/chrome/browser/chrome_notification_types.h File chrome/browser/chrome_notification_types.h (left): https://codereview.chromium.org/648833004/diff/2410001/chrome/browser/chrome_notification_types.h#oldcode127 chrome/browser/chrome_notification_types.h:127: // Application-modal dialogs ----------------------------------------------- On 2014/10/23 ...
6 years, 2 months ago (2014-10-23 18:41:22 UTC) #58
oshima
https://codereview.chromium.org/648833004/diff/2410001/chrome/browser/chrome_notification_types.h File chrome/browser/chrome_notification_types.h (left): https://codereview.chromium.org/648833004/diff/2410001/chrome/browser/chrome_notification_types.h#oldcode127 chrome/browser/chrome_notification_types.h:127: // Application-modal dialogs ----------------------------------------------- On 2014/10/23 18:41:21, msw wrote: ...
6 years, 2 months ago (2014-10-23 21:44:18 UTC) #59
oshima
blundell, could you please review components/ ? Thanks!
6 years, 2 months ago (2014-10-23 21:45:14 UTC) #60
msw
lgtm with two more minor optional nits. https://codereview.chromium.org/648833004/diff/2410001/chrome/browser/chrome_notification_types.h File chrome/browser/chrome_notification_types.h (left): https://codereview.chromium.org/648833004/diff/2410001/chrome/browser/chrome_notification_types.h#oldcode127 chrome/browser/chrome_notification_types.h:127: // Application-modal ...
6 years, 2 months ago (2014-10-23 22:01:24 UTC) #61
blundell
LGTM, but please follow up immediately with agable@ re: strings. https://codereview.chromium.org/648833004/diff/2630001/components/OWNERS File components/OWNERS (right): https://codereview.chromium.org/648833004/diff/2630001/components/OWNERS#newcode6 ...
6 years, 2 months ago (2014-10-24 06:55:05 UTC) #62
oshima
I'll contact agable@ once this is landed. https://codereview.chromium.org/648833004/diff/2610001/chrome/browser/ui/app_modal_dialogs/javascript_dialog_manager.cc File chrome/browser/ui/app_modal_dialogs/javascript_dialog_manager.cc (right): https://codereview.chromium.org/648833004/diff/2610001/chrome/browser/ui/app_modal_dialogs/javascript_dialog_manager.cc#newcode160 chrome/browser/ui/app_modal_dialogs/javascript_dialog_manager.cc:160: const int ...
6 years, 2 months ago (2014-10-24 11:17:04 UTC) #63
oshima
I'll contact agable@ once this is landed.
6 years, 2 months ago (2014-10-24 11:17:09 UTC) #64
oshima
tbr'ing sky for include path changes under chrome/ (c/b/ui is reviewed by msw)
6 years, 2 months ago (2014-10-24 13:26:49 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/648833004/2650001
6 years, 2 months ago (2014-10-24 13:28:07 UTC) #70
commit-bot: I haz the power
Committed patchset #11 (id:2650001)
6 years, 2 months ago (2014-10-24 14:14:44 UTC) #71
commit-bot: I haz the power
6 years, 2 months ago (2014-10-24 14:15:29 UTC) #72
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/82f7248c0e48ee71c4b78f9d305caefc7fa9bab2
Cr-Commit-Position: refs/heads/master@{#301095}

Powered by Google App Engine
This is Rietveld 408576698