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

Issue 16374006: Place browser-modal dialogs like web-contents-modal dialogs. (Closed)

Created:
7 years, 6 months ago by msw
Modified:
7 years, 6 months ago
Reviewers:
Mike Wittman, sky
CC:
chromium-reviews, tfarina, James Cook
Visibility:
Public.

Description

Place browser-modal dialogs like web-contents-modal dialogs. Add CreateBrowserModalDialogViews for browser-modal dialogs. Places dialogs with browser window parents dialog like wcmds. (somewhat parallel to CreateWebContentsModalDialogViews) See example before/after pics at: http://crbug.com/246777#c8 Update all applicable dialogs with the new call. Remove now extraneous JS dialog placement code. TODO(followup): Similar for c/b/chromeos dialogs (violates DEPS): -chrome/browser/chromeos/enrollment_dialog_view.cc -chrome/browser/chromeos/external_protocol_dialog.cc -chrome/browser/chromeos/options/network_config_view.cc -chrome/browser/chromeos/ui/echo_dialog_view.cc BUG=166075, 246777 TEST=Browser-modal dialogs are placed top-aligned to their browser. R=wittman@chromium.org,sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205718

Patch Set 1 #

Patch Set 2 : Cleanup and fix coordinate translation. #

Patch Set 3 : Apply the positioning to all applicable dialogs. #

Patch Set 4 : Fixes and cleanup. #

Total comments: 2

Patch Set 5 : Add missing test include. #

Patch Set 6 : Revert changes to c/b/chromeos files for now. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -30 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/confirm_bubble_views.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/confirm_bubble_views_unittest.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/constrained_window_views.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views.cc View 1 2 3 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/create_application_shortcut_view.cc View 1 2 4 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/download/download_in_progress_dialog_view.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/edit_search_engine_dialog.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_dialog.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/external_protocol_dialog.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/javascript_app_modal_dialog_views.cc View 1 2 3 2 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/simple_message_box_views.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc View 1 2 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/update_recommended_message_box.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
msw
Hey Mike and Scott, please take a look; thanks! Can you advise me on how ...
7 years, 6 months ago (2013-06-06 23:10:07 UTC) #1
Mike Wittman
On the DEPS violation, also consider moving CreateWebContentsModalDialogViews and CreateBrowserModalDialogViews and their dependencies within constrained_window_views.cc ...
7 years, 6 months ago (2013-06-07 02:38:03 UTC) #2
sky
One question, what happens if the browser window is too small? Also, it feels to ...
7 years, 6 months ago (2013-06-07 17:03:47 UTC) #3
msw
Mike wrote: > ... consider moving ... constrained_window_views.cc to somewhere else. > ... This code ...
7 years, 6 months ago (2013-06-07 17:51:12 UTC) #4
sky
On Fri, Jun 7, 2013 at 10:51 AM, <msw@chromium.org> wrote: > Mike wrote: >> >> ...
7 years, 6 months ago (2013-06-07 19:28:44 UTC) #5
msw
I reverted c/b/chromeos files for now, please take a look. I'll leave any changes there ...
7 years, 6 months ago (2013-06-11 20:04:34 UTC) #6
sky
LGTM
7 years, 6 months ago (2013-06-11 21:34:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/16374006/32001
7 years, 6 months ago (2013-06-11 21:36:46 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-06-12 04:03:51 UTC) #9
Message was sent while issue was closed.
Change committed as 205718

Powered by Google App Engine
This is Rietveld 408576698