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

Issue 14969012: components: Create web_modal component. (Closed)

Created:
7 years, 7 months ago by sadrul
Modified:
7 years, 7 months ago
CC:
chromium-reviews, Raman Kakilate, ahutter, nkostylev+watch_chromium.org, estade+watch_chromium.org, benquan, Ilya Sherman, jeremya+watch_chromium.org, dyu1, sail+watch_chromium.org, dbeam+watch-autofill_chromium.org, Aaron Boodman, pam+watch_chromium.org, Dane Wallinga, oshima+watch_chromium.org, Albert Bodenhamer, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, tfarina, davemoore+watch_chromium.org, msw
Visibility:
Public.

Description

components: Create web_modal component. Notable changes: * Move WebContentsModalDialog related classes into components/web_modal/ * Use namespace web_modal * Move the logic for sending the Chrome IPC message out of WebContentsModalDialogManager, and into ChromeModalDialogManager. Have Browser and ShellWindow subclass ChromeModalDialogManager, instead of directly from WebContentsModalDialogManager, to be able to send the IPC. * Introduce WebContentsModalDialogManagerDelegate::IsWebContentsVisibile. This is necessary to remove the dependency on platform_util. BUG=241278 R=ben@chromium.org, wittman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200448

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : fix-gtk-build #

Total comments: 4

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : tot-merge #

Patch Set 7 : tot-merge-before-land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -720 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/simple_web_view_dialog.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/webui_login_view.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/media_galleries/media_galleries_api.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/platform_app_browsertest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/managed_mode/managed_mode_browsertest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/printing/print_preview_test.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/repost_form_warning_browsertest.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 4 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 5 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 3 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_tab_contents.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_window.h View 1 3 chunks +6 lines, -2 lines 0 comments Download
A chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.cc View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/certificate_viewer_mac_browsertest.mm View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/content_settings/collected_cookies_mac_browsertest.mm View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/media_galleries_dialog_cocoa_browsertest.mm View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa_browsertest.mm View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/web_contents_modal_dialog_manager_cocoa.mm View 1 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/ui/extensions/native_app_window.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.h View 1 2 3 4 5 3 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 2 3 4 5 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/collected_cookies_gtk.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/constrained_web_dialog_delegate_gtk.cc View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/media_galleries_dialog_gtk.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/extensions/native_app_window_gtk.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/login_prompt_gtk.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/ssl_client_certificate_selector.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/web_contents_modal_dialog_manager_gtk.cc View 1 2 3 2 chunks +10 lines, -3 lines 0 comments Download
D chrome/browser/ui/native_web_contents_modal_dialog.h View 1 chunk +0 lines, -18 lines 0 comments Download
D chrome/browser/ui/native_web_contents_modal_dialog_manager.h View 1 chunk +0 lines, -62 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_dialog_views.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/collected_cookies_views.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/constrained_window_views.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views_browsertest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/native_app_window_views.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/extensions/native_app_window_views.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.h View 1 2 3 4 5 6 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/login_prompt_views.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tab_modal_confirm_dialog_views.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc View 1 3 chunks +10 lines, -2 lines 0 comments Download
D chrome/browser/ui/web_contents_modal_dialog_host.h View 1 2 3 4 5 1 chunk +0 lines, -50 lines 0 comments Download
D chrome/browser/ui/web_contents_modal_dialog_host.cc View 1 chunk +0 lines, -17 lines 0 comments Download
D chrome/browser/ui/web_contents_modal_dialog_manager.h View 1 2 3 4 5 1 chunk +0 lines, -112 lines 0 comments Download
D chrome/browser/ui/web_contents_modal_dialog_manager.cc View 1 2 3 4 5 1 chunk +0 lines, -154 lines 0 comments Download
D chrome/browser/ui/web_contents_modal_dialog_manager_delegate.h View 1 chunk +0 lines, -35 lines 0 comments Download
D chrome/browser/ui/web_contents_modal_dialog_manager_delegate.cc View 1 chunk +0 lines, -19 lines 0 comments Download
D chrome/browser/ui/web_contents_modal_dialog_manager_unittest.cc View 1 chunk +0 lines, -79 lines 0 comments Download
M chrome/browser/ui/webui/certificate_viewer_webui.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/constrained_web_dialog_delegate_base.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/constrained_web_dialog_ui.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 4 chunks +2 lines, -12 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/test_browser_window.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/components.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gypi View 1 2 chunks +11 lines, -0 lines 0 comments Download
A components/web_modal.gypi View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A + components/web_modal/DEPS View 1 chunk +2 lines, -4 lines 0 comments Download
A + components/web_modal/native_web_contents_modal_dialog.h View 1 2 chunks +7 lines, -3 lines 0 comments Download
A + components/web_modal/native_web_contents_modal_dialog_manager.h View 1 2 chunks +8 lines, -4 lines 0 comments Download
A + components/web_modal/web_contents_modal_dialog_host.h View 1 2 3 4 5 2 chunks +7 lines, -3 lines 0 comments Download
A + components/web_modal/web_contents_modal_dialog_host.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
A + components/web_modal/web_contents_modal_dialog_manager.h View 1 2 3 4 5 2 chunks +8 lines, -4 lines 0 comments Download
A + components/web_modal/web_contents_modal_dialog_manager.cc View 1 2 3 4 5 5 chunks +9 lines, -14 lines 0 comments Download
A + components/web_modal/web_contents_modal_dialog_manager_delegate.h View 1 2 3 4 5 3 chunks +12 lines, -5 lines 0 comments Download
A + components/web_modal/web_contents_modal_dialog_manager_delegate.cc View 1 2 3 4 5 2 chunks +10 lines, -1 line 0 comments Download
A + components/web_modal/web_contents_modal_dialog_manager_unittest.cc View 1 2 3 4 3 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sadrul
I will update this CL once http://crrev.com/13674013 and http://crrev.com/13467040 land. But I think this can ...
7 years, 7 months ago (2013-05-09 20:26:38 UTC) #1
Ben Goodger (Google)
For context, Mike, we need to use web modal dialogs from a non-Chrome component, so ...
7 years, 7 months ago (2013-05-09 21:29:06 UTC) #2
Mike Wittman
On 2013/05/09 21:29:06, Ben Goodger (Google) wrote: > For context, Mike, we need to use ...
7 years, 7 months ago (2013-05-09 21:48:10 UTC) #3
Mike Wittman
Looks good overall, just a couple small issues/questions. https://codereview.chromium.org/14969012/diff/7001/chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc File chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc (right): https://codereview.chromium.org/14969012/diff/7001/chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc#newcode34 chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc:34: using ...
7 years, 7 months ago (2013-05-10 00:03:22 UTC) #4
sadrul
Thanks for the quick review! > > > > Any objections to shortening 'WebContentsModalDialog' to ...
7 years, 7 months ago (2013-05-10 02:59:18 UTC) #5
Mike Wittman
https://codereview.chromium.org/14969012/diff/18001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/14969012/diff/18001/chrome/browser/ssl/ssl_browser_tests.cc#newcode1294 chrome/browser/ssl/ssl_browser_tests.cc:1294: IN_PROC_BROWSER_TEST_F(SSLUITest, DISABLED_TestGoodFrameNavigation) { Why disable this test?
7 years, 7 months ago (2013-05-15 21:42:36 UTC) #6
sadrul
https://codereview.chromium.org/14969012/diff/18001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/14969012/diff/18001/chrome/browser/ssl/ssl_browser_tests.cc#newcode1294 chrome/browser/ssl/ssl_browser_tests.cc:1294: IN_PROC_BROWSER_TEST_F(SSLUITest, DISABLED_TestGoodFrameNavigation) { On 2013/05/15 21:42:37, Mike Wittman wrote: ...
7 years, 7 months ago (2013-05-15 21:45:34 UTC) #7
Mike Wittman
On 2013/05/15 21:45:34, sadrul wrote: > https://codereview.chromium.org/14969012/diff/18001/chrome/browser/ssl/ssl_browser_tests.cc > File chrome/browser/ssl/ssl_browser_tests.cc (right): > > https://codereview.chromium.org/14969012/diff/18001/chrome/browser/ssl/ssl_browser_tests.cc#newcode1294 > ...
7 years, 7 months ago (2013-05-15 22:05:13 UTC) #8
sadrul
On 2013/05/15 22:05:13, Mike Wittman wrote: > On 2013/05/15 21:45:34, sadrul wrote: > > > ...
7 years, 7 months ago (2013-05-15 23:17:45 UTC) #9
Ben Goodger (Google)
lgtm
7 years, 7 months ago (2013-05-15 23:50:30 UTC) #10
sadrul
7 years, 7 months ago (2013-05-16 04:38:03 UTC) #11
Message was sent while issue was closed.
Committed patchset #7 manually as r200448 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698