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

Issue 10933085: Update ConstrainedWindowViews appearance according to mock (Closed)

Created:
8 years, 3 months ago by Mike Wittman
Modified:
8 years, 2 months ago
CC:
chromium-reviews, tfarina, groby-ooo-7-16, sail, stromme, mgaba_google.com, rouslan+watch_chromium.org
Visibility:
Public.

Description

This CL supersedes previous ConstrainedWindow Views CLs and contains much of the work required to update ConstrainedWindowViews to meet the mock specified at: http://www.corp.google.com/~kenmoore/mocks/chromeos/Misc_2012/Dialogs/Markup2/dialogs_markup2g.html I believe that all the features of the mock are implemented by this CL, except: - dialog shadow - dialog animations - button shadows - some aspects of button text layout Note that this CL attempts to fully address *only* the repost form warning dialog. The intention is to complete the remaining work (features and dialogs) in future CLs. The ConstrainedWindow changes are behind a flag to allow for incremental progress. The first patch set contains changes to position the constrained window so that it overlaps the browser chrome. BUG=140517, 140537, 140539, 140554, 140562 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159994

Patch Set 1 #

Patch Set 2 : Dialog frame updates #

Patch Set 3 : Background color update #

Patch Set 4 : Client view layout and appearance updates #

Patch Set 5 : Button layout and appearance updates #

Total comments: 7

Patch Set 6 : Review updates #

Total comments: 11

Patch Set 7 : Review updates #

Patch Set 8 : SkScalar correctness updates #

Patch Set 9 : rebase #

Patch Set 10 : Compilation fixes #

Patch Set 11 : Unit test fixes #

Patch Set 12 : rebase #

Patch Set 13 : Browser test fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1098 lines, -100 lines) Patch
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/constrained_window_tab_helper_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/constrained_window_tab_helper_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_frame_simple.h View 1 2 3 4 5 6 7 8 2 chunks +47 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_frame_simple.cc View 1 2 3 4 5 6 7 8 2 chunks +210 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +39 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tab_modal_confirm_dialog_views.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tab_modal_confirm_dialog_views.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +48 lines, -1 line 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A ui/views/controls/button/chrome_style.h View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
A ui/views/controls/button/chrome_style.cc View 1 2 3 4 5 6 7 8 9 1 chunk +330 lines, -0 lines 0 comments Download
M ui/views/controls/button/custom_button.h View 1 2 3 4 5 4 chunks +23 lines, -0 lines 0 comments Download
M ui/views/controls/button/custom_button.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/controls/button/text_button.h View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -4 lines 0 comments Download
M ui/views/controls/button/text_button.cc View 1 2 3 4 5 6 7 8 9 chunks +21 lines, -22 lines 1 comment Download
M ui/views/controls/message_box_view.h View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M ui/views/controls/message_box_view.cc View 1 2 3 3 chunks +17 lines, -4 lines 0 comments Download
A ui/views/focus_border.h View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
A ui/views/focus_border.cc View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
M ui/views/view.h View 1 2 3 4 5 5 chunks +12 lines, -2 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/window/dialog_client_view.h View 1 2 3 4 5 7 chunks +42 lines, -9 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 17 chunks +98 lines, -41 lines 0 comments Download
M ui/views/window/dialog_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
Mike Wittman
Hi Ben, Please take a look at this new review for the ConstrainedWindow updates to ...
8 years, 3 months ago (2012-09-14 01:15:29 UTC) #1
Ben Goodger (Google)
https://codereview.chromium.org/10933085/diff/10026/ui/views/controls/button/web_style_text_button.cc File ui/views/controls/button/web_style_text_button.cc (right): https://codereview.chromium.org/10933085/diff/10026/ui/views/controls/button/web_style_text_button.cc#newcode55 ui/views/controls/button/web_style_text_button.cc:55: class WebStyleTextButtonBackground : public Background { Also I would ...
8 years, 3 months ago (2012-09-17 22:37:26 UTC) #2
Mike Wittman
Hi Ben, please take another look when you have the chance. http://codereview.chromium.org/10933085/diff/10026/ui/views/controls/button/web_style_text_button.cc File ui/views/controls/button/web_style_text_button.cc (right): ...
8 years, 3 months ago (2012-09-21 22:53:17 UTC) #3
Ben Goodger (Google)
Getting there. Can you also email me screenshots. http://codereview.chromium.org/10933085/diff/13001/chrome/browser/ui/constrained_window_tab_helper_delegate.cc File chrome/browser/ui/constrained_window_tab_helper_delegate.cc (right): http://codereview.chromium.org/10933085/diff/13001/chrome/browser/ui/constrained_window_tab_helper_delegate.cc#newcode22 chrome/browser/ui/constrained_window_tab_helper_delegate.cc:22: { ...
8 years, 2 months ago (2012-09-27 16:16:12 UTC) #4
Mike Wittman
Screenshots sent separately. http://codereview.chromium.org/10933085/diff/13001/chrome/browser/ui/constrained_window_tab_helper_delegate.cc File chrome/browser/ui/constrained_window_tab_helper_delegate.cc (right): http://codereview.chromium.org/10933085/diff/13001/chrome/browser/ui/constrained_window_tab_helper_delegate.cc#newcode22 chrome/browser/ui/constrained_window_tab_helper_delegate.cc:22: { On 2012/09/27 16:16:12, Ben Goodger ...
8 years, 2 months ago (2012-09-28 22:46:09 UTC) #5
Ben Goodger (Google)
From your screenshot, I'd like to see some kind of 1px stroke on this panel ...
8 years, 2 months ago (2012-10-01 16:25:57 UTC) #6
Mike Wittman
Can we address the shadow/stroke in a future CL, when we address the remaining UI ...
8 years, 2 months ago (2012-10-02 00:07:35 UTC) #7
Ben Goodger (Google)
lgtm
8 years, 2 months ago (2012-10-02 16:26:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wittman@chromium.org/10933085/33002
8 years, 2 months ago (2012-10-02 17:02:08 UTC) #9
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/views/constrained_window_frame_simple.h: While running patch -p1 --forward --force; patching file chrome/browser/ui/views/constrained_window_frame_simple.h ...
8 years, 2 months ago (2012-10-02 17:02:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wittman@chromium.org/10933085/40001
8 years, 2 months ago (2012-10-02 21:16:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wittman@chromium.org/10933085/43002
8 years, 2 months ago (2012-10-02 22:06:24 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 2 months ago (2012-10-02 23:16:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wittman@chromium.org/10933085/32008
8 years, 2 months ago (2012-10-03 15:25:35 UTC) #14
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/constrained_window_tab_helper_delegate.cc: While running patch -p1 --forward --force; patching file chrome/browser/ui/constrained_window_tab_helper_delegate.cc ...
8 years, 2 months ago (2012-10-03 15:25:46 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wittman@chromium.org/10933085/42026
8 years, 2 months ago (2012-10-03 17:20:28 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wittman@chromium.org/10933085/46077
8 years, 2 months ago (2012-10-03 20:08:20 UTC) #17
commit-bot: I haz the power
Change committed as 159994
8 years, 2 months ago (2012-10-03 22:33:21 UTC) #18
hshi1
8 years, 2 months ago (2012-10-04 02:29:34 UTC) #19
https://chromiumcodereview.appspot.com/10933085/diff/46077/ui/views/controls/...
File ui/views/controls/button/text_button.cc (right):

https://chromiumcodereview.appspot.com/10933085/diff/46077/ui/views/controls/...
ui/views/controls/button/text_button.cc:735:
prefsize.set_width(std::max(prefsize.height(), min_width_));
Shouldn't the above be prefsize.set_width(std::max(prefsize.width(),
min_width_)); ??

Powered by Google App Engine
This is Rietveld 408576698