Issue 166075 in chromium: Cleanup Dialog Styles

9 views
Skip to first unread message

chro...@googlecode.com

unread,
Dec 13, 2012, 8:19:51 PM12/13/12
to chromi...@chromium.org
Status: Started
Owner: m...@chromium.org
CC: b...@chromium.org, s...@chromium.org, witt...@chromium.org
Labels: Type-Bug Pri-2 Area-UI OS-Windows OS-Linux OS-Chrome
Internals-Views Feature-Ash

New issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

This general issue tracks new dialog styling for Ash and Views.
All [constrained] dialogs should all share a single NonClientFrameView.
This frame view may also be applicable to (or extended for) bubbles.
Mocks:
https://docs.google.com/a/google.com/folder/d/0B6x6iYCtKinEVVhmQ3U5ODVqM28/edit

chro...@googlecode.com

unread,
Dec 17, 2012, 3:33:00 PM12/17/12
to chromi...@chromium.org

Comment #1 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c1

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=173521

------------------------------------------------------------------------
r173521 | m...@chromium.org | 2012-12-17T20:16:18.145232Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ash/shell.cc?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/about_flags.cc?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/ash/wm/system_modal_container_layout_manager.cc?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/constrained_window_views.cc?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/base/ui_base_switches.cc?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/chrome_content_browser_client.cc?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/base/ui_base_switches.h?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/chrome_switches.cc?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/content/browser/renderer_host/render_process_host_impl.cc?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/generated_resources.grd?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/chrome_switches.h?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/ash/ash_switches.cc?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/renderer/chrome_render_view_observer.cc?r1=173521&r2=173520&pathrev=173521
M
http://src.chromium.org/viewvc/chrome/trunk/src/ash/ash_switches.h?r1=173521&r2=173520&pathrev=173521

Consolidate dialog style flags and strings; etc.

Nix kEnableChromeStyleDialogs and kAuraGoogleDialogFrames.
Replace with new ui/base switch kEnableNewDialogStyle.
Consolidate strings, nix helper function, cleanup switches.

Copy flag to renderer processes in RenderProcessHostImpl.
Remove duplicate kEnableTouchDragDrop flag copy code.
Replace ModalBackgroundView with a View and SolidBackground.

BUG=166075
TEST=--enable-new-dialog-style replaces --enable-chrome-style-dialogs and
--aura-google-dialog-frames
R=s...@chromium.org,wit...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11565019
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Dec 19, 2012, 5:26:16 PM12/19/12
to chromi...@chromium.org

Comment #2 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c2

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=173993

------------------------------------------------------------------------
r173993 | m...@chromium.org | 2012-12-19T21:41:39.609319Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ash/shell.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc?r1=173993&r2=173992&pathrev=173993
A
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_frame_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/create_application_shortcut_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/examples/widget_example.cc?r1=173993&r2=173992&pathrev=173993
A
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_frame_view.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/edit_search_engine_dialog.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/examples/widget_example.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/edit_search_engine_dialog.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/crypto_module_password_dialog_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/hung_renderer_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/crypto_module_password_dialog_view.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/about_ipc_dialog.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/ash/ash.gyp?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/about_ipc_dialog.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/task_manager_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/collected_cookies_views.cc?r1=173993&r2=173992&pathrev=173993
D
http://src.chromium.org/viewvc/chrome/trunk/src/ash/wm/dialog_frame_view.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/ssl_client_certificate_selector.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/chromeos/ui/idle_logout_dialog_view.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/ash/display/display_error_dialog.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/uninstall_view.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/views.gyp?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/chromeos/options/network_config_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/importer/import_progress_dialog_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/importer/import_progress_dialog_view.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/chromeos/options/network_config_view.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/create_application_shortcut_view.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/chromeos/login/password_changed_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/hung_renderer_view.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/chromeos/login/password_changed_view.h?r1=173993&r2=173992&pathrev=173993
D
http://src.chromium.org/viewvc/chrome/trunk/src/ash/wm/dialog_frame_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/collected_cookies_views.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/importer/import_lock_dialog_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/chromeos/enrollment_dialog_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/importer/import_lock_dialog_view.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_client_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/bookmarks/bookmark_editor_view.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_client_view.h?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/chromeos/ui/idle_logout_dialog_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/ssl_client_certificate_selector.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/uninstall_view.cc?r1=173993&r2=173992&pathrev=173993
M
http://src.chromium.org/viewvc/chrome/trunk/src/ash/display/display_error_dialog.h?r1=173993&r2=173992&pathrev=173993

Move ash/wm's DialogFrameView to ui/views/window; etc.

Move ash/wm/dialog_frame_view.[h|cc] to ui/views/window/.
Move DialogFrameView to views namespace; export; cleanup.

Expose static DialogDelegate::UseNewStyle() for commandline flag.
OVERRIDE DialogDelegate::CreateNonClientFrameView to use DialogFrameView
with flag.
OVERRIDE DialogDelegateView::GetContentsView to return |this|.
(nix redundant GetContentsView() OVERRIDEs from subclasses)
Cleanup DialogClientView ctor; encapsulate StyleParams struct.

Rewrite WidgetExample; nix transparency, add dialog widget, consolidate.

BUG=166075
TEST=views_examples WidgetExample changes with --enabled-new-dialog-style
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11571023
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Jan 3, 2013, 10:19:40 PM1/3/13
to chromi...@chromium.org
Updates:
Cc: mg...@chromium.org

Comment #4 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pic of WIP CL: "Implement rough new dialog style."
https://codereview.chromium.org/11756005/
The "Dialog Widget Example" is next to the "Disconnect your Google Account"
mock from:
https://docs.google.com/a/google.com/file/d/0B6x6iYCtKinEVjFvOWNfRlJCLU0/edit

chro...@googlecode.com

unread,
Jan 3, 2013, 10:21:40 PM1/3/13
to chromi...@chromium.org

Comment #5 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pic of WIP CL: "Implement rough new dialog style."
https://codereview.chromium.org/11756005/
The "Dialog Widget Example" is next to the "Disconnect your Google Account"
mock from:
https://docs.google.com/a/google.com/file/d/0B6x6iYCtKinEVjFvOWNfRlJCLU0/edit

Attachments:
style_a.png 78.0 KB

chro...@googlecode.com

unread,
Jan 8, 2013, 5:10:37 AM1/8/13
to chromi...@chromium.org

Comment #8 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c8

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=175510

------------------------------------------------------------------------
r175510 | m...@chromium.org | 2013-01-08T10:09:22.591523Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/theme_resources.grd?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_200_percent/common/panel_restore_click.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/common/balloon_close.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/common/balloon_close_hover.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/common/bubble_close.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/common/panel_close.png?r1=175510&r2=175509&pathrev=175510
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/confirm_bubble_views.cc?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_200_percent/common/panel_close.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/common/panel_close_hover.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/bubble_close.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_200_percent/common/panel_close_hover.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/common/panel_close_click.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_200_percent/common/panel_close_click.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/common/panel_minimize.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_200_percent/common/panel_minimize.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/common/panel_restore.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/common/panel_minimize_hover.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_200_percent/common/panel_restore.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_200_percent/common/panel_minimize_hover.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/common/panel_restore_hover.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/common/panel_minimize_click.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_200_percent/common/panel_minimize_click.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_200_percent/common/panel_restore_hover.png?r1=175510&r2=175509&pathrev=175510
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/common/panel_restore_click.png?r1=175510&r2=175509&pathrev=175510

Remove unused images; change confirm (spelling) bubble close button.

Remove IDR_INFO_BUBBLE_CLOSE and various unused/unreferenced PNGs.

Change the (x) close button image for ConfirmBubbleViews.
(the new image matches the new dialog style specification)
(the button currently doesn't use hover/pressed state images)
(see before/after pictures at http://crrev.com/166075#c6)

Note: To test the only use of ConfirmBubbleViews, open a webpage textfield
context menu (right-click) and select "Spell-checker options" -> "Ask
Google for suggestions". Observe the dialog's close button.

BUG=166075
TEST=Spelling bubble has better (x) image; no build breaks.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11779030
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Jan 9, 2013, 12:46:06 AM1/9/13
to chromi...@chromium.org

Comment #9 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c9

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=175714

------------------------------------------------------------------------
r175714 | m...@chromium.org | 2013-01-09T05:35:22.198968Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/chrome_browser.gypi?r1=175714&r2=175713&pathrev=175714
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/resources_util_unittest.cc?r1=175714&r2=175713&pathrev=175714
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/resources_util.cc?r1=175714&r2=175713&pathrev=175714

Make ui_resources IDRs accessible via chrome://theme/<IDR>.

This helps cleanly move chrome/app/theme images to ui/resources.

TODO(followup): Cleanup WebUI usage of ui/resources images.
TODO(followup): Use a new handler like chrome://ui/ instead?
(that seems like a bit of work for little tangible benefit)

BUG=166075
TEST=ui/resources/ui_resources.grd IDRs are accessible like
chrome://theme/IDR_CHECKMARK
R=osh...@chromium.org,s...@chromium.org


Review URL: https://chromiumcodereview.appspot.com/11830002
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Jan 9, 2013, 4:09:56 PM1/9/13
to chromi...@chromium.org

Comment #10 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c10

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=175862

------------------------------------------------------------------------
r175862 | m...@google.com | 2013-01-09T19:58:13.148733Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/resources/ui_resources.grd?r1=175862&r2=175861&pathrev=175862
A
http://src.chromium.org/viewvc/chrome/trunk/src/ui/resources/default_100_percent/close_dialog.png?r1=175862&r2=175861&pathrev=175862
A
http://src.chromium.org/viewvc/chrome/trunk/src/ui/resources/default_200_percent/close_dialog.png?r1=175862&r2=175861&pathrev=175862
A
http://src.chromium.org/viewvc/chrome/trunk/src/ui/resources/default_100_percent/close_dialog_hover.png?r1=175862&r2=175861&pathrev=175862
A
http://src.chromium.org/viewvc/chrome/trunk/src/ui/resources/default_200_percent/close_dialog_hover.png?r1=175862&r2=175861&pathrev=175862
A
http://src.chromium.org/viewvc/chrome/trunk/src/ui/resources/default_100_percent/close_dialog_pressed.png?r1=175862&r2=175861&pathrev=175862
A
http://src.chromium.org/viewvc/chrome/trunk/src/ui/resources/default_200_percent/close_dialog_pressed.png?r1=175862&r2=175861&pathrev=175862

Copy chrome/app/theme (x) close images to ui/resources.

Add ui/resources/default_[1|2]00_percent/close_dialog*.png
(copied from chrome/app/theme/default_[1|2]00_percent/web_ui_close*.png)
(these are the most up-to-date image that we want to use)
Add IDR_CLOSE_DIALOG[_H|_P] to ui_resources.grd

TODO(followup): Remove IDR_WEB_UI_CLOSE* and images, use IDR_CLOSE_DIALOG*.
(that will depend on WIP CL https://codereview.chromium.org/11830002)

BUG=166075
TEST=NONE
R=s...@chromium.org

Review URL: https://codereview.chromium.org/11785037
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Jan 9, 2013, 10:09:44 PM1/9/13
to chromi...@chromium.org

Comment #11 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pic of Dialog Widget Example from WIP CL:
http://codereview.chromium.org/11818044
This uses the correct (x) close button without a border, and adjusts insets.

Attachments:
idr_a.png 14.2 KB

chro...@googlecode.com

unread,
Jan 11, 2013, 1:09:34 AM1/11/13
to chromi...@chromium.org

Comment #12 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c12

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=176265

------------------------------------------------------------------------
r176265 | m...@chromium.org | 2013-01-11T05:08:56.382750Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/chrome_style.cc?r1=176265&r2=176264&pathrev=176265
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/web_ui_close.png?r1=176265&r2=176264&pathrev=176265
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_200_percent/web_ui_close.png?r1=176265&r2=176264&pathrev=176265
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/theme_resources.grd?r1=176265&r2=176264&pathrev=176265
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/web_intent_picker_views.cc?r1=176265&r2=176264&pathrev=176265
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_frame_view.cc?r1=176265&r2=176264&pathrev=176265
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/web_ui_close_hover.png?r1=176265&r2=176264&pathrev=176265
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_200_percent/web_ui_close_hover.png?r1=176265&r2=176264&pathrev=176265
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/resources/print_preview/search/destination_search.css?r1=176265&r2=176264&pathrev=176265
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/resources/print_preview/no_destinations_promo.css?r1=176265&r2=176264&pathrev=176265
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/resources/chromeos/login/oobe.css?r1=176265&r2=176264&pathrev=176265
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/cocoa/hover_close_button.mm?r1=176265&r2=176264&pathrev=176265
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/resources/shared/css/overlay.css?r1=176265&r2=176264&pathrev=176265
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/resources/shared/css/dialogs.css?r1=176265&r2=176264&pathrev=176265
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/confirm_bubble_views.cc?r1=176265&r2=176264&pathrev=176265
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/controls/button/label_button.cc?r1=176265&r2=176264&pathrev=176265
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_100_percent/web_ui_close_pressed.png?r1=176265&r2=176264&pathrev=176265
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/theme/default_200_percent/web_ui_close_pressed.png?r1=176265&r2=176264&pathrev=176265

Replace IDR_WEB_UI_CLOSE* with IDR_CLOSE_DIALOG*, cleanup, etc.

Replace IDR_WEB_UI_CLOSE* uses with IDR_CLOSE_DIALOG*.
(same images from ui/resources instead of chrome/app/theme)
Remove IDR_WEB_UI_CLOSE* IDRs and web_ui_close*.png images.

Give ConfirmBubbleViews's close button hover/pressed images.
(this better matches the specification for the new dialog style)
Note: To test the only use of ConfirmBubbleViews:
1) Open a webpage textfield context menu (right-click).
2) Select "Spell-checker options" -> "Ask Google for suggestions".
3) Observe the dialog's close button on hover/press.

Replace the LabelButtonBorder in LabelButton::SetNativeTheme.
(instead of casting a potentially non-existant/different border)
Cap the label width to a non-negative size in LabelButton::Layout.
(to prevent crashes when the image size exceeds the available size)

Remove the DialogFrameView close button border, adjust Layout.
(this better matches the specification for the new dialog style)
See the resulting screenshot at: http://crbug.com/166075#c11

BUG=166075
TEST=Spelling bubble has better (x) image; no build breaks.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11818044
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Jan 17, 2013, 5:21:30 AM1/17/13
to chromi...@chromium.org

Comment #13 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pic of Task Manager on Windows with --enable-new-dialog-style from Patch
Set 1 of WIP CL: https://codereview.chromium.org/11975038/
TODO: Use table_view_views or support transparency with table_view_win.
TODO: Use new button style for "End Process" and "Purge Memory" buttons.

Attachments:
task_manager_style_a.tiff 16.8 KB

chro...@googlecode.com

unread,
Jan 17, 2013, 6:18:49 AM1/17/13
to chromi...@chromium.org

Comment #14 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
task_manager_style_a.png 17.8 KB

chro...@googlecode.com

unread,
Jan 17, 2013, 6:19:49 AM1/17/13
to chromi...@chromium.org

Comment #15 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pic of similar with "Chrome Style" "End Process" TextButton from Patch Set
2 of WIP CL: https://codereview.chromium.org/11975038/

chro...@googlecode.com

unread,
Jan 17, 2013, 6:20:49 AM1/17/13
to chromi...@chromium.org

Comment #16 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pic of similar with "Chrome Style" "End Process" TextButton from Patch Set
2 of WIP CL: https://codereview.chromium.org/11975038/

Attachments:
task_manager_style_b.png 17.9 KB

chro...@googlecode.com

unread,
Jan 18, 2013, 6:43:57 AM1/18/13
to chromi...@chromium.org

Comment #18 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pics Task Manager and Edit Bookmark with --enable-new-dialog-style from
Patch Set 1 of WIP CL: https://codereview.chromium.org/12026016/


Attachments:
task_manager_style_d.png 0 bytes
edit_bookmark_f.png 49.2 KB

chro...@googlecode.com

unread,
Jan 18, 2013, 6:46:18 AM1/18/13
to chromi...@chromium.org

Comment #19 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pics of Task Manager and Edit Bookmark with --enable-new-dialog-style from

chro...@googlecode.com

unread,
Jan 18, 2013, 6:52:29 AM1/18/13
to chromi...@chromium.org

Comment #20 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Odd that file won't upload, but looks fine locally. Here's another
task_manager_d.png.

Attachments:
task_manager_d.png 69.3 KB

chro...@googlecode.com

unread,
Jan 18, 2013, 4:46:01 PM1/18/13
to chromi...@chromium.org

Comment #21 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c21

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=177759

------------------------------------------------------------------------
r177759 | m...@chromium.org | 2013-01-18T21:23:55.630558Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/task_manager_view.cc?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/task_manager/task_manager_notification_browsertest.cc?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/browser_dialogs.h?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/cocoa/browser_window_cocoa.mm?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/bookmarks/bookmark_editor_view.h?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.cc?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.h?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/prerender/prerender_browsertest.cc?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/gtk/browser_window_gtk.cc?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/frame/browser_view.cc?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/cocoa/browser_window_cocoa.h?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/browser_commands.cc?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/test/base/test_browser_window.h?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/gtk/browser_window_gtk.h?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/frame/browser_view.h?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/task_manager/task_manager_browsertest_util.cc?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/browser_window.h?r1=177759&r2=177758&pathrev=177759
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/task_manager/task_manager_browsertest.cc?r1=177759&r2=177758&pathrev=177759

Implement new Task Manager and Edit Bookmark style, etc.

Add a common CreateDialogWidget, use for Task Manager and Edit Bookmark.
Use Browser as |context| for Task Manager, and as |parent| for Edit
Bookmark.
Update layout and appearance for each dialog with --enable-new-dialog-style.
(see pics at http://crbug.com/166075#c19 and http://crbug.com/166075#c20)

TODO(followup): Avoid Windows native controls or support dialog
transparency.

BUG=166075
TEST=Task Manager and Edit Bookmark style with --enable-new-dialog-style;
no other appearance/behavior changes.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12026016
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Jan 26, 2013, 11:07:03 PM1/26/13
to chromi...@chromium.org

Comment #23 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pic of the Collected Cookies Dialog with --enable-new-dialog-style from
Patch Set 1 of WIP CL: https://codereview.chromium.org/12095005/

Attachments:
collected_cookies_a.png 32.4 KB

chro...@googlecode.com

unread,
Jan 28, 2013, 1:06:58 PM1/28/13
to chromi...@chromium.org

Comment #24 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c24

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=179161

------------------------------------------------------------------------
r179161 | m...@chromium.org | 2013-01-28T18:00:25.801656Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/constrained_window_views.cc?r1=179161&r2=179160&pathrev=179161

Use DialogFrameView for ConstrainedWindowViews with
--enable-new-dialog-style.

BUG=166075
TEST=Views constrained windows use the new dialog style with
--enable-new-dialog-style.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12095005
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Jan 30, 2013, 7:18:53 AM1/30/13
to chromi...@chromium.org

Comment #25 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c25

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=179608

------------------------------------------------------------------------
r179608 | tfa...@chromium.org | 2013-01-30T12:10:55.287571Z

Changed paths:
D
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/simple_message_box_win.cc?r1=179608&r2=179607&pathrev=179608
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/chrome_browser_ui.gypi?r1=179608&r2=179607&pathrev=179608

views: Remove simple_message_box_win.cc in favor of
simple_message_box_views.cc

simple_message_box_win.cc is not be needed nor compatible with the
desktop-aura
transition. It also uses the win32 appearance not the new Chrome style
appearance currently in development. So it's bad twice ;)

Just kill it and that eases the work that will need to be done later.

By enabling simple_message_box_views on Windows means that it will be used
for all
ShowMessageBox() dialogs instead of current Windows MessageBox.

BUG=166075,54988
R=b...@chromium.org

Review URL: https://codereview.chromium.org/12042083
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Feb 1, 2013, 12:52:50 AM2/1/13
to chromi...@chromium.org

Comment #26 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c26

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=180090

------------------------------------------------------------------------
r180090 | m...@chromium.org | 2013-02-01T05:47:45.404107Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/tray_bubble_view.cc?r1=180090&r2=180089&pathrev=180090
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc?r1=180090&r2=180089&pathrev=180090
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_delegate.cc?r1=180090&r2=180089&pathrev=180090
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/fullscreen_exit_bubble_views.cc?r1=180090&r2=180089&pathrev=180090
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_border.cc?r1=180090&r2=180089&pathrev=180090
M
http://src.chromium.org/viewvc/chrome/trunk/src/ash/wm/maximize_bubble_controller.cc?r1=180090&r2=180089&pathrev=180090
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_border.h?r1=180090&r2=180089&pathrev=180090
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/controls/menu/menu_scroll_view_container.cc?r1=180090&r2=180089&pathrev=180090
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/notifications/balloon_view_views.cc?r1=180090&r2=180089&pathrev=180090
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view_unittest.cc?r1=180090&r2=180089&pathrev=180090
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.cc?r1=180090&r2=180089&pathrev=180090
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_frame_view.cc?r1=180090&r2=180089&pathrev=180090
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.h?r1=180090&r2=180089&pathrev=180090

Cleanup BubbleFrameView and BubbleBorder construction.

Pass custom color to BubbleBorder ctor (or SK_ColorWHITE default).
Call BubbleFrameView::SetBubbleBorder instead and remove border ctor arg.
Misc refactoring and cleanup.

TODO(followup): Update bubbles to use BubbleDelegateView where possible.
TODO(followup): Use theme colors for misc borders instead of SK_ColorWHITE.

BUG=166075
TEST=No observable changes.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12096084
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Feb 1, 2013, 8:36:21 PM2/1/13
to chromi...@chromium.org

Comment #27 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c27

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=180208

------------------------------------------------------------------------
r180208 | s...@chromium.org | 2013-02-02T00:16:29.872277Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/chrome_browser_ui.gypi?r1=180208&r2=180207&pathrev=180208
A
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/simple_message_box_win.cc?r1=180208&r2=180207&pathrev=180208

Revert 179608
> views: Remove simple_message_box_win.cc in favor of
> simple_message_box_views.cc

> simple_message_box_win.cc is not be needed nor compatible with the
> desktop-aura
> transition. It also uses the win32 appearance not the new Chrome style
> appearance currently in development. So it's bad twice ;)

> Just kill it and that eases the work that will need to be done later.

> By enabling simple_message_box_views on Windows means that it will be
> used for all
> ShowMessageBox() dialogs instead of current Windows MessageBox.

> BUG=166075,54988
> R=b...@chromium.org

> Review URL: https://codereview.chromium.org/12042083

Reverting as causes crashes on windows. Specifically this code is
not necessarily executed on the UI thread and views is not designed to
be used on anything but the UI thread.

TBR=tfa...@chromium.org
BUG=173751
Review URL: https://codereview.chromium.org/12173002
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Feb 4, 2013, 3:56:57 PM2/4/13
to chromi...@chromium.org

Comment #28 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c28

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=180508

------------------------------------------------------------------------
r180508 | m...@chromium.org | 2013-02-04T20:43:23.405197Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.h?r1=180508&r2=180507&pathrev=180508
D
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_frame_view.h?r1=180508&r2=180507&pathrev=180508
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/constrained_window_views.cc?r1=180508&r2=180507&pathrev=180508
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.cc?r1=180508&r2=180507&pathrev=180508
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.h?r1=180508&r2=180507&pathrev=180508
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/views.gyp?r1=180508&r2=180507&pathrev=180508
M
http://src.chromium.org/viewvc/chrome/trunk/src/ash/shell.cc?r1=180508&r2=180507&pathrev=180508
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.cc?r1=180508&r2=180507&pathrev=180508
D
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_frame_view.cc?r1=180508&r2=180507&pathrev=180508

Replace DialogFrameView with an enhanced BubbleFrameView.

Add an *optional* title, (x) close button, and drag/resize to
BubbleFrameView.
(drag added via HTCAPTION, resize via DialogClientView's HTBOTTOMRIGHT)
Use new DialogDelegate::CreateNewStyleFrameView(), remove DialogFrameView.

TODO(followup): Use new title and close button in existing bubbles with
similar.

BUG=166075
TEST=No apparent difference for bubbles nor default dialogs; dialogs with
--use-new-dialog-style can now resize from bottom-right.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12184004
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Feb 5, 2013, 7:35:20 PM2/5/13
to chromi...@chromium.org
Updates:
Blockedon: chromium:131660 chromium:138059

Comment #29 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pic of the Collected Cookies Dialog from Patch Set 1 of WIP CL:
https://codereview.chromium.org/12221025

Attachments:
collected_cookies_b.png 130 KB

chro...@googlecode.com

unread,
Feb 6, 2013, 2:34:08 AM2/6/13
to chromi...@chromium.org

Comment #30 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c30

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=180924

------------------------------------------------------------------------
r180924 | m...@chromium.org | 2013-02-06T07:22:49.598897Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/collected_cookies_views.cc?r1=180924&r2=180923&pathrev=180924

Use NativeTabbedPaneViews in the CollectedCookiesViews dialog.

Use NativeTabbedPaneViews instead of NativeTabbedPaneWin.
(this helps unblock new dialog styling transparency)
(this is the only remaining use of NativeTabbedPaneWin)

See pics of the change at http://crbug.com/166075#c29

TODO(followup): Remove NativeTabbedPaneWin, cleanup TabbedPane,
TabbedPaneTest, NativeTabbedPaneWrapper.
TODO(followup): Match CollectedCookiesViews dialog spec.

BUG=138059,166075
TEST=Collected cookies dialog looks/behaves sane.
R=markus...@chromium.org,s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12221025
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Feb 12, 2013, 5:53:48 PM2/12/13
to chromi...@chromium.org

Comment #32 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c32

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=181975

------------------------------------------------------------------------
r181975 | m...@chromium.org | 2013-02-12T19:29:02.161485Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/tab_contents/spelling_bubble_model.cc?r1=181975&r2=181974&pathrev=181975
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/tab_contents/spelling_menu_observer.cc?r1=181975&r2=181974&pathrev=181975
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/tab_contents/spelling_bubble_model.h?r1=181975&r2=181974&pathrev=181975
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/confirm_bubble_views_unittest.cc?r1=181975&r2=181974&pathrev=181975
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/confirm_bubble_views.cc?r1=181975&r2=181974&pathrev=181975
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/confirm_bubble_views.h?r1=181975&r2=181974&pathrev=181975

Rebase ConfirmBubbleViews on DialogDelegateView.

This fixes the dialog-like confirm "bubble" class.
(make it a window-modal dialog delegate subclass)
Call new SpellingBubbleModel::SetPref(false) on 'No thanks'.
(clicking ok then cancel in two windows yields feature off)

See pics of the change at http://crbug.com/166075#c31

TODO(followup): Remove ConfirmBubble*? (only used by spelling).
TODO(followup): Fix insets after tweaking the new dialog style.
TODO(followup): Fix dialog 'extra view' placement.

BUG=166075
TEST=Spelling bubble (web textfield context menu -> "Spell-checker options"
-> "Ask Google for suggestions") looks/works reasonable on Win/CrOS/Aura.
R=r...@chromium.org,s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12222003
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Feb 20, 2013, 4:27:57 AM2/20/13
to chromi...@chromium.org

Comment #34 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c34

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=183438

------------------------------------------------------------------------
r183438 | m...@chromium.org | 2013-02-20T09:21:51.491075Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_client_view.cc?r1=183438&r2=183437&pathrev=183438

Restore 'Chrome Style' buttons for --enable-new-dialog-style dialogs.
My recent http://crrev.com/183286 mistakenly removed this styling.
(this only affects dialogs with the experimental --enable-new-dialog-style)

BUG=166075
TEST=New dialog style buttons look okay.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12304038
------------------------------------------------------------------------

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

chro...@googlecode.com

unread,
Feb 26, 2013, 11:18:26 PM2/26/13
to chromi...@chromium.org

Comment #35 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c35

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=184851

------------------------------------------------------------------------
r184851 | m...@chromium.org | 2013-02-27T03:03:32.919323Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/uninstall_view.cc?r1=184851&r2=184850&pathrev=184851

Fix GetDialogButtonLabel for UninstallView.

Return the base class text for the cancel button.

This was a regression from http://crrev.com/183286.
That changed the behavior of GetDialogButtonLabel.
I simply missed this dialog in the update; sorry!

BUG=166075,178464
TEST=Uninstall dialog has expected Cancel button text.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12342026

chro...@googlecode.com

unread,
Mar 20, 2013, 3:30:50 PM3/20/13
to chromi...@chromium.org

Comment #37 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pics of WIP CL https://codereview.chromium.org/12391056 Patch Set 1:

Attachments:
dialog_widget_cros_before.png 32.3 KB
dialog_widget_cros_after.png 27.9 KB

chro...@googlecode.com

unread,
Mar 22, 2013, 3:35:35 PM3/22/13
to chromi...@chromium.org

Comment #41 on issue 166075 by stro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Just as a followup, yes it is intentional. Apparently there are weird
padding and spacing issues that appear when you align it with the title.

chro...@googlecode.com

unread,
Mar 22, 2013, 3:54:35 PM3/22/13
to chromi...@chromium.org

Comment #42 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Really? I'm not aware of any technical limitations to vertically aligning
the title and the (x) button.
I was just following the mocks
https://docs.google.com/a/google.com/folder/d/0B6x6iYCtKinEUTFOWUJFTWJFSTA/edit?docId=0B6x6iYCtKinENmVDdWxJZEh5dDQ

chro...@googlecode.com

unread,
Mar 22, 2013, 4:27:35 PM3/22/13
to chromi...@chromium.org

Comment #43 on issue 166075 by stro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Sorry I should have been more clear. From my understanding it was a visual
design choice, not a technical limitation.

chro...@googlecode.com

unread,
Mar 23, 2013, 12:42:23 PM3/23/13
to chromi...@chromium.org

Comment #44 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c44

The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=190030

------------------------------------------------------------------------
r190030 | m...@chromium.org | 2013-03-23T16:39:00.268843Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.cc?r1=190030&r2=190029&pathrev=190030

Remove Aura's extra shadowed border in the new dialog style.

Set new Aura dialogs' corewm::ShadowType to SHADOW_TYPE_NONE.
Removes the extra frame around new style dialogs on CrOS.
( does the same on the experimental Windows ash_shell )
See http://crbug.com/166075#c37 for before/after screenshots.

This doesn't remove the black dialog border on Win.
( non-transparency is required to host native controls )

BUG=166075
TEST=CrOS --enable-new-dialog-style looks nicer.
R=s...@chromium.org,b...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12391056
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Apr 16, 2013, 12:45:56 AM4/16/13
to chromi...@chromium.org

Comment #49 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c49

------------------------------------------------------------------------
r194292 | m...@chromium.org | 2013-04-16T04:40:54.788117Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.cc?r1=194292&r2=194291&pathrev=194292
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/controls/textfield/textfield.cc?r1=194292&r2=194291&pathrev=194292

Enable new dialog style transparency with Views Textfields.

This makes new-style Dialog widgets transparent on non-Aura Win.
Use Views Textfields if the new dialog style switch is specified.
( transparency prohibits hosting native Windows textfield controls )
( new-dialog-style + win-textfields is possible but breaks dialog
textfields )
See the border of before/after pics at http://crbug.com/166075#c46

BUG=166075,231012
TEST=Non-Aura Win new-style dialogs don't have any extra black/glass border.
R=s...@chromium.org

Review URL: https://codereview.chromium.org/14049016

chro...@googlecode.com

unread,
Apr 23, 2013, 11:39:17 PM4/23/13
to chromi...@chromium.org

Comment #51 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c51

------------------------------------------------------------------------
r196008 | m...@chromium.org | 2013-04-24T02:38:20.597259Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/controls/button/label_button.cc?r1=196008&r2=196007&pathrev=196008

Restrict the new button style to the new dialog style flag.

BUG=155363,166075
TEST=The new button style is only used with --enable-new-dialog-style.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/14118013

chro...@googlecode.com

unread,
May 6, 2013, 4:20:17 PM5/6/13
to chromi...@chromium.org

Comment #54 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c54

------------------------------------------------------------------------
r198506 | to...@chromium.org | 2013-05-06T19:30:14.401603Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.h?r1=198506&r2=198505&pathrev=198506
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_border.cc?r1=198506&r2=198505&pathrev=198506
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_border.h?r1=198506&r2=198505&pathrev=198506
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.cc?r1=198506&r2=198505&pathrev=198506
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/constrained_window_views.cc?r1=198506&r2=198505&pathrev=198506
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.cc?r1=198506&r2=198505&pathrev=198506

Revert 198491 "Render opaque border with no shadow for web conte..."
Broke the chromiumos bots:
http://build.chromium.org/p/chromium.chromiumos/builders/ChromiumOS%20%28daisy%29/builds/9294/steps/cbuildbot/logs/stdio

> Render opaque border with no shadow for web contents modal dialogs under
> Views/Win32

> This is a temporary kludge to get web contents modal dialog frames
> displaying acceptably under Views/Win32. It's not possible to use
> transparency in the frames on Win7 and earlier OSes unless the web
> contents modal dialogs are top-level windows, which is undesirable.
> Making web contents modal dialogs top-level imposes additional
> complexities and burdens on managing focus, activation, and window
> position relative to the browser window, soley for the View/Win32 case.
> It's best to avoid this since we won't need it once we transition
> to Aura.

> See screenshots at http://crbug.com/231012#c6.


> BUG=231012, 166075

> Review URL: https://chromiumcodereview.appspot.com/14742002

TBR=wit...@chromium.org

Review URL: https://codereview.chromium.org/14765016

chro...@googlecode.com

unread,
May 7, 2013, 12:11:19 AM5/7/13
to chromi...@chromium.org

Comment #56 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c56

------------------------------------------------------------------------
r198604 | wit...@chromium.org | 2013-05-07T03:12:16.065167Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.cc?r1=198604&r2=198603&pathrev=198604
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.h?r1=198604&r2=198603&pathrev=198604
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_border.cc?r1=198604&r2=198603&pathrev=198604
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_border.h?r1=198604&r2=198603&pathrev=198604
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.cc?r1=198604&r2=198603&pathrev=198604
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/constrained_window_views.cc?r1=198604&r2=198603&pathrev=198604

Render opaque border with no shadow for web contents modal dialogs under
Views/Win32

This is a temporary kludge to get web contents modal dialog frames
displaying acceptably under Views/Win32. It's not possible to use
transparency in the frames on Win7 and earlier OSes unless the web
contents modal dialogs are top-level windows, which is undesirable.
Making web contents modal dialogs top-level imposes additional
complexities and burdens on managing focus, activation, and window
position relative to the browser window, soley for the View/Win32 case.
It's best to avoid this since we won't need it once we transition
to Aura.

See screenshots at http://crbug.com/231012#c6.


BUG=231012, 166075

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198491

Review URL: https://chromiumcodereview.appspot.com/14742002

chro...@googlecode.com

unread,
May 8, 2013, 10:51:44 AM5/8/13
to chromi...@chromium.org

Comment #57 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c57

------------------------------------------------------------------------
r198891 | m...@chromium.org | 2013-05-08T14:25:59.128439Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.cc?r1=198891&r2=198890&pathrev=198891

Simplify the NO_SHADOW_OPAQUE_BORDER path with addRoundRect.

BUG=231012,166075
TEST=--enable-new-dialog-style WCMD look the same.
R=wit...@chromium.org
TBR=b...@chromium.org
NOTRY=TRUE

Review URL: https://chromiumcodereview.appspot.com/14557010

chro...@googlecode.com

unread,
May 10, 2013, 3:48:11 AM5/10/13
to chromi...@chromium.org

Comment #62 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c62

------------------------------------------------------------------------
r199413 | m...@chromium.org | 2013-05-10T07:43:39.875463Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc?r1=199413&r2=199412&pathrev=199413

Remove the extension install dialog black border.

ExtensionInstallDialogView uses Widget::CreateWindowWithParent.
Use DialogDelegate::CreateDialogWidget instead.
Does not change the old-style appearance or behavior.
See before/after pics at http://crbug.com/166075#c59

BUG=166075
TEST=new-style extension install dialog does not have a black border.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/14672021

chro...@googlecode.com

unread,
May 10, 2013, 6:05:55 PM5/10/13
to chromi...@chromium.org

Comment #63 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pics from WIP CL https://codereview.chromium.org/14830005/ Patch Set 2:


Attachments:
extension_dialog_new_before.png 41.3 KB
extension_dialog_new_after.png 34.5 KB
extension_dialog_old_before.png 32.9 KB
extension_dialog_old_after.png 40.6 KB

chro...@googlecode.com

unread,
May 13, 2013, 11:45:52 AM5/13/13
to chromi...@chromium.org

Comment #66 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c66

------------------------------------------------------------------------
r199654 | m...@chromium.org | 2013-05-13T05:04:26.928064Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_client_view.cc?r1=199654&r2=199653&pathrev=199654

Change new-dialog-style default buttons on focus too.

This behavior is expected and required of dialogs, regardless of style.
Fixes DefaultButtonTest.DialogDefaultButtonTest for the new dialog style.

BUG=166075
TEST=New dialog style default buttons follow focus.
TBR=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15061004
------------------------------------------------------------------------

chro...@googlecode.com

unread,
May 13, 2013, 2:04:04 PM5/13/13
to chromi...@chromium.org

Comment #67 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c67

------------------------------------------------------------------------
r199765 | m...@chromium.org | 2013-05-13T17:55:33.125133Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ash/wm/custom_frame_view_ash_unittest.cc?r1=199765&r2=199764&pathrev=199765

Fix CustomFrameViewAshTest.ResizeButtonToggleMaximize frame creation.

Always test CustomFrameViewAsh, which may not be the ash::Shell default.
( The new dialog style uses a BubbleFrameView for the default frame. )
( We might backtrack on that, but this change seems good either way. )

BUG=166075
TEST=CustomFrameViewAshTest.ResizeButtonToggleMaximize passes with the new
dialog style (--enable-new-dialog-style)
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15061005

chro...@googlecode.com

unread,
May 14, 2013, 2:11:05 PM5/14/13
to chromi...@chromium.org

Comment #73 on issue 166075 by geki...@gmail.com: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

fyi: uninstall dialog has also black border

Issue 240740 could be related to the new-style code

chro...@googlecode.com

unread,
May 14, 2013, 2:38:52 PM5/14/13
to chromi...@chromium.org

Comment #74 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Thanks, geki007! I'll fix the uninstall dialogs soon, these both call
Widget::CreateWindow[WithParent]:
chrome/browser/ui/views/uninstall_view.cc
chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc
Let me know if you think neither of these match what you're seeing.

chro...@googlecode.com

unread,
May 14, 2013, 2:45:52 PM5/14/13
to chromi...@chromium.org

Comment #75 on issue 166075 by geki...@gmail.com: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

i think the first one is correct ... i see the dialog if i uninstall
chromium on windows

chro...@googlecode.com

unread,
May 14, 2013, 3:33:54 PM5/14/13
to chromi...@chromium.org

Comment #76 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c76

------------------------------------------------------------------------
r200039 | m...@chromium.org | 2013-05-14T19:01:55.631025Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/external_protocol_dialog.cc?r1=200039&r2=200038&pathrev=200039
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/chromeos/external_protocol_dialog.cc?r1=200039&r2=200038&pathrev=200039

Remove the external protocol dialog black border.

ExtensionInstallDialogView uses Widget::CreateWindowWithParent.
Use DialogDelegate::CreateDialogWidget instead.
Does not change the old-style appearance or behavior.
See before/after pics (on Win) at http://crbug.com/166075#c68
(I can't trigger on CrOS ToT, oshima suspects a regression)
Trigger the dialog on Win by clicking a URI like the "spotify:" one at:
https://www.spotify.com/us/blog/archives/2008/01/14/linking-to-spotify/

BUG=166075
TEST=new-style external procol dialog does not have a black border.
R=s...@chromium.org,osh...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/14987006
------------------------------------------------------------------------

chro...@googlecode.com

unread,
May 14, 2013, 10:53:57 PM5/14/13
to chromi...@chromium.org

Comment #78 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c78

------------------------------------------------------------------------
r200137 | m...@chromium.org | 2013-05-15T01:28:44.189634Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/download/download_in_progress_dialog_view.cc?r1=200137&r2=200136&pathrev=200137
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/download/download_in_progress_dialog_view.h?r1=200137&r2=200136&pathrev=200137

Remove the download in progress dialog black border.

DownloadInProgressDialogView uses Widget::CreateWindowWithParent.
Use DialogDelegate::CreateDialogWidget instead.
Does not change the old-style appearance or behavior.
See before/after pics at http://crbug.com/166075#c70
Trigger the dialog by closing chrome while downloading a file.

BUG=166075
TEST=new-style download in progress dialog does not have a black border.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15060010

chro...@googlecode.com

unread,
May 15, 2013, 5:33:38 AM5/15/13
to chromi...@chromium.org

Comment #79 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c79

------------------------------------------------------------------------
r200206 | m...@chromium.org | 2013-05-15T08:48:57.943697Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/base/ui_base_switches_util.cc?r1=200206&r2=200205&pathrev=200206

Enable the new dialog style by default; etc.

Enables the new dialog and button styles by default.
Please file any appearance/behavior issues against msw/wittman.
(disable: about:flags "New Dialog Style" or --disable-new-dialog-style)

Mike Wittman and I are mid-audit of Win/CrOS dialogs, expect some glitches:
- Some dialogs will have black/clear borders and need layout adjustments.
- Some other UI will need adjustments to accomodate new button styling.

BUG=166075
TEST=Dialogs and buttons employ their new styling; only minor issues remain.
R=s...@chromium.org,wit...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/14646037

chro...@googlecode.com

unread,
May 15, 2013, 8:31:08 PM5/15/13
to chromi...@chromium.org

Comment #80 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pics of WIP CL https://codereview.chromium.org/14566024
I'm omitting old-style dialog pics now that the new dialog style is on by
default.

Attachments:
hung_renderer_new_before.png 15.8 KB
hung_renderer_new_after.png 15.6 KB

chro...@googlecode.com

unread,
May 16, 2013, 2:16:43 PM5/16/13
to chromi...@chromium.org

Comment #81 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c81

------------------------------------------------------------------------
r200572 | m...@chromium.org | 2013-05-16T17:56:12.058144Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/hung_renderer_view.cc?r1=200572&r2=200571&pathrev=200572
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/hung_renderer_view.h?r1=200572&r2=200571&pathrev=200572

Remove hung renderer dialog black border.

HungRendererDialogView uses Widget::CreateWindow.
Use DialogDelegate::CreateDialogWidget instead, add context.
Does not change the old-style appearance or behavior.
See before/after pics at http://crbug.com/166075#c80
Trigger the dialog with about:hang or debug code in Patch Set 1.

BUG=166075
TEST=Hung renderer dialog does not have an extra border.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/14566024
------------------------------------------------------------------------

chro...@googlecode.com

unread,
May 16, 2013, 8:29:11 PM5/16/13
to chromi...@chromium.org

Comment #82 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c82

------------------------------------------------------------------------
r200666 | m...@chromium.org | 2013-05-17T00:20:43.852763Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/chromeos/ui/idle_logout_dialog_view.cc?r1=200666&r2=200665&pathrev=200666

Remove the idle logout dialog extra border.

IdleLogoutDialogView uses Widget::CreateWindowWithParent.
Use DialogDelegate::CreateDialogWidget instead.
Does not change the old-style appearance or behavior.
See before/after pics at http://crbug.com/166075#c77
I triggered the dialog with debug code in Patch Set 1.

BUG=166075
TEST=new-style idle logout dialog does not have an extra border.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15042008

chro...@googlecode.com

unread,
May 17, 2013, 7:53:06 PM5/17/13
to chromi...@chromium.org

Comment #83 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pics of WIP CL https://codereview.chromium.org/15302015/

Attachments:
enrollment_new_before.png 31.2 KB
enrollment_new_after.png 23.3 KB

chro...@googlecode.com

unread,
May 20, 2013, 3:38:48 PM5/20/13
to chromi...@chromium.org

Comment #85 on issue 166075 by hs...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

msw@ - I noticed the following layout problem with the new dialog style in
screen capture confirmation dialog. This is a generic message box, see
media_capture_devices_dispatcher.cc: search for the
chrome::ShowMessageBox() call.

Attached is a screenshot of the problem.

Attachments:
Screenshot 2013-05-20 at 12.21.25 PM.png 38.7 KB

chro...@googlecode.com

unread,
May 20, 2013, 4:01:24 PM5/20/13
to chromi...@chromium.org

Comment #86 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Awesome, could you please file a separate issue for that?
If you're using a high-DPI display, it might be related to Issue 240730.

chro...@googlecode.com

unread,
May 20, 2013, 6:29:02 PM5/20/13
to chromi...@chromium.org

Comment #88 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pics of WIP CL https://codereview.chromium.org/15496003/

Attachments:
uninstall_new_before.png 4.3 KB
uninstall_new_after.png 3.7 KB

chro...@googlecode.com

unread,
May 21, 2013, 4:36:21 AM5/21/13
to chromi...@chromium.org

Comment #90 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c90

------------------------------------------------------------------------
r201257 | m...@chromium.org | 2013-05-21T08:26:24.023872Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/update_recommended_message_box.cc?r1=201257&r2=201256&pathrev=201257

Remove the update recommended dialog black border.

UpdateRecommendedMessageBox uses Widget::CreateWindow.
Use DialogDelegate::CreateDialogWidget instead.
See before/after pics at http://crbug.com/166075#c89
Trigger the dialog with debug code in Patch Set 1.

BUG=166075
TEST=Update recommended dialog does not have a black border.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15497003
------------------------------------------------------------------------

chro...@googlecode.com

unread,
May 21, 2013, 5:10:24 AM5/21/13
to chromi...@chromium.org

Comment #91 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c91

------------------------------------------------------------------------
r201273 | m...@chromium.org | 2013-05-21T08:58:16.954201Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/uninstall_view.cc?r1=201273&r2=201272&pathrev=201273

Remove the uninstall dialog black border.

UninstallView uses Widget::CreateWindow.
Use DialogDelegate::CreateDialogWidget instead.
(it should be okay to continue using NULL parent/context)
See before/after pics at http://crbug.com/166075#c88
Trigger the dialog with debug code in Patch Set 1.

BUG=166075
TEST=Uninstall dialog does not have an extra border, test Win8!
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15496003

chro...@googlecode.com

unread,
May 21, 2013, 8:54:38 PM5/21/13
to chromi...@chromium.org
Issue 166075: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

This issue is now blocking issue chromium:170193.
See http://code.google.com/p/chromium/issues/detail?id=170193

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

chro...@googlecode.com

unread,
May 22, 2013, 10:31:53 PM5/22/13
to chromi...@chromium.org
Updates:
Blockedon: chromium:243179

Comment #93 on issue 166075 by mgi...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

(No comment was entered for this change.)

--

chro...@googlecode.com

unread,
May 23, 2013, 7:52:44 PM5/23/13
to chromi...@chromium.org

Comment #97 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pics of WIP CL https://codereview.chromium.org/15947003/
Also related to Issue 242284

Attachments:
message_box_before.png 19.8 KB
message_box_after.png 17.8 KB

chro...@googlecode.com

unread,
May 24, 2013, 2:56:45 AM5/24/13
to chromi...@chromium.org

Comment #98 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c98

------------------------------------------------------------------------
r201994 | m...@chromium.org | 2013-05-24T06:53:57.464684Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/create_application_shortcut_view.cc?r1=201994&r2=201993&pathrev=201994

Remove the create application shortcut dialog black border.

ShowCreate*ShortcutsDialog uses Widget::CreateWindow.
Use DialogDelegate::CreateDialogWidget instead.
See before/after pics at http://crbug.com/166075#c94
Trigger the dialog by right clicking an app -> "Create Shortcuts."

BUG=166075
TEST=Update create application shortcut dialog does not have a black border.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15519002
------------------------------------------------------------------------

chro...@googlecode.com

unread,
May 24, 2013, 2:57:45 AM5/24/13
to chromi...@chromium.org

Comment #99 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c99

------------------------------------------------------------------------
r201995 | m...@chromium.org | 2013-05-24T06:54:35.050496Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc?r1=201995&r2=201994&pathrev=201995

Remove the extension uninstall dialog black border.

ExtensionUninstallDialogViews uses Widget::CreateWindow.
Use DialogDelegate::CreateDialogWidget instead.
See before/after pics at http://crbug.com/166075#c95
Trigger the dialog by clicking a trash icon at about:extensions

BUG=166075
TEST=Extension uninstall shortcut dialog does not have a black border.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15932002

chro...@googlecode.com

unread,
May 24, 2013, 3:16:24 AM5/24/13
to chromi...@chromium.org

Comment #100 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c100

------------------------------------------------------------------------
r202000 | m...@chromium.org | 2013-05-24T07:06:19.205244Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.h?r1=202000&r2=201999&pathrev=202000
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.cc?r1=202000&r2=201999&pathrev=202000
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.cc?r1=202000&r2=201999&pathrev=202000

Add resize support for Views new style dialogs.

Implements proper bubble non-client frame view hit testing.
Use NonClientFrameView::GetHTComponentForFrame hit testing.
(this is similar to the implementation of CustomFrameView)
Remove the |can_drag_| flag, use WidgetDelegate::CanResize().

BUG=166075
TEST=New dialog style windows resize, drag, and generally allow mouse
interaction as expected.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15667004

chro...@googlecode.com

unread,
May 24, 2013, 3:34:25 AM5/24/13
to chromi...@chromium.org

Comment #101 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pics from WIP CL https://codereview.chromium.org/15682004/
Note that I'm also fixing the title label appearance (one old-style shot
with the fix shown).

Attachments:
network_config_before.png 30.9 KB
network_config_before2.png 41.1 KB
network_config_after_b1.png 28.4 KB
network_config_after_b2.png 35.0 KB
network_config_after_b3.png 23.2 KB
network_config_after_old.png 29.8 KB

chro...@googlecode.com

unread,
May 24, 2013, 5:48:19 AM5/24/13
to chromi...@chromium.org

Comment #102 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c102

------------------------------------------------------------------------
r202033 | m...@chromium.org | 2013-05-24T09:40:55.690433Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/importer/import_lock_dialog_view.cc?r1=202033&r2=202032&pathrev=202033

Remove import lock dialog black border.

ImportLockDialogView uses Widget::CreateWindow.
Use DialogDelegate::CreateDialogWidget instead.
See before/after pics at http://crbug.com/166075#c96
Trigger by making FF default, run chrome.exe --force-first-run

BUG=166075
TEST=Import lock dialog does not have a black border.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15772008
------------------------------------------------------------------------

chro...@googlecode.com

unread,
May 24, 2013, 7:31:08 AM5/24/13
to chromi...@chromium.org

Comment #103 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c103

------------------------------------------------------------------------
r202057 | m...@chromium.org | 2013-05-24T11:26:45.369337Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/simple_message_box_views.cc?r1=202057&r2=202056&pathrev=202057

Remove the message box dialog black border.

SimpleMessageBoxViews uses Widget::CreateWindow.
Use DialogDelegate::CreateDialogWidget instead.
See before/after pics at http://crbug.com/166075#c97
Trigger by one of the following methods (there are many):
1) Open all tabs on a big bookmark folder.
2) encounter extension/profile/print/etc. errors.
See many uses of chrome::ShowMessageBox at:
https://code.google.com/p/chromium/codesearch#search/&sq=package:chromium&q=chrome::ShowMessageBox

BUG=166075,242284
TEST=Message box dialog does not have a black border.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15947003

chro...@googlecode.com

unread,
May 27, 2013, 10:02:55 PM5/27/13
to chromi...@chromium.org

Comment #105 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c105

------------------------------------------------------------------------
r202479 | m...@chromium.org | 2013-05-28T01:56:16.113281Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.cc?r1=202479&r2=202478&pathrev=202479
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/examples/widget_example.cc?r1=202479&r2=202478&pathrev=202479

Polish new dialog style layout and sizing.

Fix values of top/left dialog title insets, add explicit bottom inset.
Fix dialog inset and preferred size calculations, and layout for
title/extra.
( long titles were not being accounted for, and getting cut off )
Add a title bar extra view to the views examples dialog.
See before/after/spec pics at http://crbug.com/242284#c14

BUG=242284, 240730, 166075
TEST=New dialog style looks good, no titles cut off.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15861012

chro...@googlecode.com

unread,
May 28, 2013, 9:46:58 PM5/28/13
to chromi...@chromium.org

Comment #106 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pics of WIP CL https://codereview.chromium.org/16032008/


Attachments:
idle_action_warning_before.png 19.7 KB
idle_action_warning_after.png 17.2 KB

chro...@googlecode.com

unread,
May 28, 2013, 9:50:58 PM5/28/13
to chromi...@chromium.org

Comment #107 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Pics of WIP CL https://codereview.chromium.org/15673004/

Attachments:
crypto_before.png 21.8 KB
crypto_after.png 19.6 KB

chro...@googlecode.com

unread,
May 29, 2013, 12:58:58 AM5/29/13
to chromi...@chromium.org

Comment #108 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c108

------------------------------------------------------------------------
r202777 | m...@chromium.org | 2013-05-29T04:27:26.230165Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc?r1=202777&r2=202776&pathrev=202777

Remove the idle action warning dialog extra border.

IdleActionWarningDialogView uses Widget::CreateWindow.
Use DialogDelegate::CreateDialogWidget instead.
See before/after pics at http://crbug.com/166075#c106
Trigger with debug code in Patch Set 1.

BUG=166075
TEST=Idle action warning dialog does not have an extra border.
R=de...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/16032008
------------------------------------------------------------------------

chro...@googlecode.com

unread,
May 29, 2013, 3:03:31 PM5/29/13
to chromi...@chromium.org

Comment #109 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c109

------------------------------------------------------------------------
r202913 | m...@chromium.org | 2013-05-29T18:12:44.330414Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/crypto_module_password_dialog_view.cc?r1=202913&r2=202912&pathrev=202913

Remove the crypto module password dialog extra border.

CryptoModulePasswordDialogView uses Widget::CreateWindow.
Use DialogDelegate::CreateDialogWidget instead.
See before/after pics at http://crbug.com/166075#c107
Trigger with debug code in Patch Set 1.

BUG=166075
TEST=Crtypo module password dialog does not have an extra border.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15673004

chro...@googlecode.com

unread,
May 30, 2013, 2:53:19 AM5/30/13
to chromi...@chromium.org

Comment #111 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c111

------------------------------------------------------------------------
r203092 | m...@chromium.org | 2013-05-30T06:02:11.605536Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ash/shell.cc?r1=203092&r2=203091&pathrev=203092

Use CustomFrameViewAsh in ash::Shell::CreateDefaultNonClientFrameView.

Misc Ash windows incorrectly get new style BubbleFrameViews.
Revert new dialog style change to CreateDefaultNonClientFrameView.
This reverts non-dialog Ash windows to the old CustomFrameViewAsh.
See before/after pics at http://crbug.com/241810#c17

Dialogs get frames from DialogDelegate::CreateNonClientFrameView.
( where 'dialogs' are DialogDelegate[View] [subclass] instances )

BUG=241125,241810,166075
TEST=Only dialog windows have the new-style bubble border. No windows have
a double-border issue.
R=de...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15685017

chro...@googlecode.com

unread,
May 31, 2013, 3:23:23 AM5/31/13
to chromi...@chromium.org

Comment #113 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c113

------------------------------------------------------------------------
r203354 | m...@chromium.org | 2013-05-31T07:18:28.798659Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.cc?r1=203354&r2=203353&pathrev=203354
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_delegate.cc?r1=203354&r2=203353&pathrev=203354
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view_unittest.cc?r1=203354&r2=203353&pathrev=203354

Restore Views dialog dragging and titlebar system menus.

Allow non-resizable dialog dragging (and system menu).
(revise NonClientHitTest to return HTCAPTION as needed)
This was a regression from my http://crrev.com/202000

Allow dragging dialogs from the frame view side/botttom.
This is new behavior that I think is good :)

Expand BubbleFrameViewTest.NonClientHitTest and support.
Pass through BubbleBorderDelegate's CanResize logic.
(really just needed temporarily for the added unit testing)

BUG=244676,166075
TEST=all non-constrained dialogs can be dragged, and their Windows system
menus are shown on title-bar right click.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/16084008

chro...@googlecode.com

unread,
Jun 3, 2013, 9:33:55 PM6/3/13
to chromi...@chromium.org
Updates:
Cc: sgabr...@chromium.org

Comment #114 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

(No comment was entered for this change.)

chro...@googlecode.com

unread,
Jun 5, 2013, 3:52:21 AM6/5/13
to chromi...@chromium.org

Comment #115 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c115

------------------------------------------------------------------------
r204190 | m...@chromium.org | 2013-06-05T07:31:53.375427Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/create_application_shortcut_view.h?r1=204190&r2=204189&pathrev=204190
A
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate_unittest.cc?r1=204190&r2=204189&pathrev=204190
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/views.gyp?r1=204190&r2=204189&pathrev=204190
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view_unittest.cc?r1=204190&r2=204189&pathrev=204190
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.cc?r1=204190&r2=204189&pathrev=204190
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/create_application_shortcut_view.cc?r1=204190&r2=204189&pathrev=204190

Do not allow Views new-dialog-style windows to be resized.

Continuation of https://codereview.chromium.org/15894025/

Allow the top-left to show the system menu on left-click.
Allow the titlebar to show the system menu on right-click.
Allow dragging dialogs from the titlebar (for now).

Expand BubbleFrameViewTest.NonClientHitTest and support.
Add dialog_delegate_unittest.cc and DialogTest.HitTest.

Remove unnecessary CreateApplicationShortcutView overrides.

BUG=166075,244559,244676,246777
TEST=Views new-dialog-style windows cannot be resized, but do show the
system menu and allow dragging (for now).
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/16361009
------------------------------------------------------------------------

chro...@googlecode.com

unread,
Jun 6, 2013, 8:31:19 PM6/6/13
to chromi...@chromium.org

Comment #117 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c117

------------------------------------------------------------------------
r204666 | m...@chromium.org | 2013-06-07T00:05:47.880343Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/about_ipc_dialog.cc?r1=204666&r2=204665&pathrev=204666
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/about_ipc_dialog.h?r1=204666&r2=204665&pathrev=204666

Revert the about:ipc dialog to the old style.

Override AboutIPCDialog::UseNewStyleForThisDialog to return false.
Reverts the Windows IPC debugging utility dialog the old style.
(this dialog's style was unintentionally updated; resize is needed)
(its native list control cannot be rendered with the proper new style
anyway)
See before/after pics at http://crbug.com/246777#c6

BUG=166075,246777
TEST=The Win Debug about:ipc dialog has the expected frame style and
behavior.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/16300008

chro...@googlecode.com

unread,
Jun 12, 2013, 12:06:41 AM6/12/13
to chromi...@chromium.org

Comment #118 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c118

------------------------------------------------------------------------
r205718 | m...@chromium.org | 2013-06-12T04:03:50.096076Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/external_protocol_dialog.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/simple_message_box_views.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/confirm_bubble_views_unittest.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/confirm_bubble_views.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/extensions/extension_dialog.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/update_recommended_message_box.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/download/download_in_progress_dialog_view.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/create_application_shortcut_view.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/constrained_window_views.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/edit_search_engine_dialog.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/javascript_app_modal_dialog_views.cc?r1=205718&r2=205717&pathrev=205718
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/constrained_window_views.h?r1=205718&r2=205717&pathrev=205718

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=wit...@chromium.org,s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/16374006

chro...@googlecode.com

unread,
Jun 13, 2013, 10:28:31 AM6/13/13
to chromi...@chromium.org
Issue 166075: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

This issue is no longer blocking issue chromium:179444.
See http://code.google.com/p/chromium/issues/detail?id=179444
--

chro...@googlecode.com

unread,
Jun 18, 2013, 8:26:27 AM6/18/13
to chromi...@chromium.org

Comment #120 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c120

------------------------------------------------------------------------
r206950 | m...@chromium.org | 2013-06-18T12:21:51.425810Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_client_view.cc?r1=206950&r2=206949&pathrev=206950
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate_unittest.cc?r1=206950&r2=206949&pathrev=206950
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/view_unittest.cc?r1=206950&r2=206949&pathrev=206950
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_client_view_unittest.cc?r1=206950&r2=206949&pathrev=206950

Refine DialogClientView button code and unit tests.

Add an escape accelerator to the ok button only if there is *not* a cancel
button.
Move FocusManager/ChangeListener cleanup to ViewHierarchyChanged.
Clear ok/cancel/default button pointers on ViewHierarchyChanged removal.

Remove view_unittest MockMenuModel and related use.
( these were left unused by http://crrev.com/87490 )

Move tests and helpers to dialog_delegate_unittest, cleanup.
Merge, cleanup, and add tests, no loss of coverage.

BUG=241451,166075
TEST=Dialogs with just an [Ok] button will accept on [Esc]; no crashes.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/17127003
------------------------------------------------------------------------

--

chro...@googlecode.com

unread,
Jun 19, 2013, 6:45:18 AM6/19/13
to chromi...@chromium.org

Comment #121 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c121

------------------------------------------------------------------------
r207209 | m...@chromium.org | 2013-06-19T10:40:42.866553Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/native_theme/native_theme_win.cc?r1=207209&r2=207208&pathrev=207209

Invert the dialog background color for Windows high contrast.

Invert the hardcoded kColorId_DialogBackground as needed.
See before/after pics at http://crbug.com/234681#c7
(note that I'm addressing the new button style separately)

BUG=234681,166075
TEST=Dialogs are legible in Windows high contrast themes.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/17112017

chro...@googlecode.com

unread,
Jul 31, 2013, 4:58:43 AM7/31/13
to chromi...@chromium.org

Comment #122 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c122

------------------------------------------------------------------------
r214637 | m...@chromium.org | 2013-07-31T08:22:43.588638Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_delegate.h?r1=214637&r2=214636&pathrev=214637
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/autofill/autofill_credit_card_bubble_views.cc?r1=214637&r2=214636&pathrev=214637
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.cc?r1=214637&r2=214636&pathrev=214637
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/autofill/autofill_credit_card_bubble_views.h?r1=214637&r2=214636&pathrev=214637
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_frame_view.h?r1=214637&r2=214636&pathrev=214637
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/bubble/bubble_delegate.cc?r1=214637&r2=214636&pathrev=214637
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.cc?r1=214637&r2=214636&pathrev=214637

Fix BubbleFrameView title and close button patterns.

Minor BubbleFrameView tweaks for conformity and support.
( needed to support dialogs that call UpdateWindowTitle )
( needed to support autofill: http://crrev.com/19388006 )

Remove BubbleFrameView SetTitle and SetShowCloseButton.
Implement UpdateWindowTitle and ResetWindowControls instead.
(more typical patterns, but needs a ResetWindowControls init)
Update DialogDelegate, BubbleDelegateView, and AutofillCreditCardBubble.

BUG=166075
TEST=No apparent bubble/dialog title or close button changes.
R=s...@chromium.org

Review URL: https://chromiumcodereview.appspot.com/20871003

chro...@googlecode.com

unread,
Aug 1, 2013, 5:54:08 PM8/1/13
to chromi...@chromium.org

Comment #123 on issue 166075 by stev...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Unfortunately https://chromiumcodereview.appspot.com/20871003 has the side
effect of making some Dialogs (specifically the chromeos network dialogs)
not tall enough.

Repro, chromeos build (on Linux or a device):
* Settings > Add connection > Add Wifi
* Observe: 'Share this...' checkbox is cut off

I confirmed that reverting that CL fixes the problem.

It may have to do with how these dialogs are creating a child view. They
rely on a custom GetPreferredSize() which maybe needs to take into account
the bubble border frame now?

chro...@googlecode.com

unread,
Aug 2, 2013, 2:12:01 PM8/2/13
to chromi...@chromium.org

Comment #124 on issue 166075 by m...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Thanks for the heads up, I'll investigate that regression with Issue 267343.

chro...@googlecode.com

unread,
Aug 26, 2013, 7:28:09 PM8/26/13
to chromi...@chromium.org
Updates:
Cc: sa...@chromium.org j...@chromium.org bau...@chromium.org
tfar...@chromium.org bau...@chromium.org

Comment #125 on issue 166075 by witt...@chromium.org: Cleanup Dialog Styles
http://code.google.com/p/chromium/issues/detail?id=166075

Issue 140554 has been merged into this issue.

chro...@googlecode.com

unread,
Feb 13, 2014, 11:13:23 PM2/13/14
to chromi...@chromium.org

Comment #133 on issue 166075 by bugdro...@chromium.org: Cleanup Dialog
Styles
http://code.google.com/p/chromium/issues/detail?id=166075#c133

------------------------------------------------------------------------
r251243 | m...@chromium.org | 2014-02-14T03:37:16.933950Z

Changed paths:
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/pdf_password_dialog.cc?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/download/download_danger_prompt_views.cc?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/constrained_window_views.cc?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/constrained_window_views.h?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/login_prompt_views.cc?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/collected_cookies_views.cc?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/collected_cookies_views.h?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/autofill/autofill_dialog_views.cc?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/tab_modal_confirm_dialog_views.cc?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/autofill/autofill_dialog_views.h?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/tab_modal_confirm_dialog_views.h?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.cc?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/ssl_client_certificate_selector.cc?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/ui/views/window/dialog_delegate.h?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/webui/constrained_web_dialog_ui.h?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/extensions/media_galleries_dialog_views.h?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/extensions/media_galleries_scan_result_dialog_views.cc?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/ssl_client_certificate_selector.h?r1=251243&r2=251242&pathrev=251243
M
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/ui/views/extensions/media_galleries_scan_result_dialog_views.h?r1=251243&r2=251242&pathrev=251243

Remove deprecated version of views::CreateDialogFrameView.

Patch Set 1 here is Lei's original patch:
https://codereview.chromium.org/109623005/
That was reverted for causing http://crbug.com/343042

This performs the same cleanup without the print preview regression.
(keeps ConstrainedWebDialogDelegateViewViews::CreateNonClientFrameView)

BUG=166075
TEST=No behavior/appearance changes; no dialog frame regressions (print
preview or otherwise).
TBR=wit...@chromium.org,s...@chromium.org,the...@chromium.org

Review URL: https://codereview.chromium.org/165073002
------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages