New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 739920 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug



Sign in to add a comment

MD Extension: use cr_dialog instead of plain dialog

Project Member Reported by scottchen@chromium.org, Jul 6 2017

Issue description

This will give us free close button, free sizing logic, and uniform styles across MD web UIs.
 
Labels: -Pri-3 Proj-MaterialDesign-WebUI OS-Chrome OS-Linux OS-Mac OS-Windows Pri-2
Adding a bit more context: cr-dialog already used by many WebUI pages (Settings, History, OOBE, User manager), and already provides the notions of a close button, header, body and button container, see [1]. On top of that, it has been refined to handle complex corner cases when the window is becoming too small.

A lot of this logic is currently repeated in MD Extensions dialogs, for example within [2]. Re-using cr-dialog should allow for removing a lot of duplicate logic, as well as ensuring that our dialogs our consistent across WebUI pages.

[1] https://cs.chromium.org/chromium/src/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.html?q=cr_dialog.html&sq=package:chromium&dr&l=132,141,144
[2] https://cs.chromium.org/chromium/src/chrome/browser/resources/md_extensions/pack_dialog.html
Status: Started (was: Assigned)
Project Member

Comment 3 by bugdroid1@chromium.org, Jul 14 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/52a9ace924868ad72ad5e28fc05d9f4c9aa63d6c

commit 52a9ace924868ad72ad5e28fc05d9f4c9aa63d6c
Author: Scott Chen <scottchen@chromium.org>
Date: Fri Jul 14 01:17:23 2017

MD Extensions: replace native dialog usages with cr-dialog.

Bug:  739920 
Change-Id: I3a58618b410acd1ae66811af0a5688187279dbd5
Reviewed-on: https://chromium-review.googlesource.com/567233
Commit-Queue: Scott Chen <scottchen@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#486594}
[modify] https://crrev.com/52a9ace924868ad72ad5e28fc05d9f4c9aa63d6c/chrome/browser/resources/md_extensions/load_error.html
[modify] https://crrev.com/52a9ace924868ad72ad5e28fc05d9f4c9aa63d6c/chrome/browser/resources/md_extensions/options_dialog.html
[modify] https://crrev.com/52a9ace924868ad72ad5e28fc05d9f4c9aa63d6c/chrome/browser/resources/md_extensions/options_dialog.js
[modify] https://crrev.com/52a9ace924868ad72ad5e28fc05d9f4c9aa63d6c/chrome/browser/resources/md_extensions/pack_dialog.html
[modify] https://crrev.com/52a9ace924868ad72ad5e28fc05d9f4c9aa63d6c/chrome/browser/ui/webui/extensions/extensions_ui.cc
[modify] https://crrev.com/52a9ace924868ad72ad5e28fc05d9f4c9aa63d6c/chrome/test/data/webui/extensions/extension_load_error_test.js
[modify] https://crrev.com/52a9ace924868ad72ad5e28fc05d9f4c9aa63d6c/chrome/test/data/webui/extensions/extension_options_dialog_test.js
[modify] https://crrev.com/52a9ace924868ad72ad5e28fc05d9f4c9aa63d6c/chrome/test/data/webui/extensions/extension_pack_dialog_test.js
[modify] https://crrev.com/52a9ace924868ad72ad5e28fc05d9f4c9aa63d6c/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.html
[modify] https://crrev.com/52a9ace924868ad72ad5e28fc05d9f4c9aa63d6c/ui/webui/resources/cr_elements/shared_style_css.html

Status: Fixed (was: Started)

Comment 5 by dpa...@chromium.org, Mar 12 2018

Components: UI>Browser>ExtensionsManagement

Sign in to add a comment