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

Issue 11077006: Correct padding and focus ring for frameless constrained window dialog (Closed)

Created:
8 years, 2 months ago by please use gerrit instead
Modified:
8 years, 2 months ago
CC:
chromium-reviews, tfarina, webintents-eng_chromium.org, jstark_chromium.org, kevers, flackr
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Correct padding and focus ring for frameless constrained window dialog: http://i.imgur.com/IQbR9.png BUG=154325 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161772

Patch Set 1 #

Total comments: 10

Patch Set 2 : Add comments and ASCII art. More clear implementation of client insets. #

Total comments: 24

Patch Set 3 : Address comments #

Total comments: 4

Patch Set 4 : Land images outside of CQ #

Patch Set 5 : Simplify insets. Update WebUI paddings for close button #

Total comments: 1

Patch Set 6 : Fix mac build #

Patch Set 7 : Fix mac build, part 2 #

Total comments: 4

Patch Set 8 : Address sail@ comment for mac usage of constants #

Total comments: 2

Patch Set 9 : Constrained window constants #

Patch Set 10 : Fix mac build #

Patch Set 11 : Fix license header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -116 lines) Patch
M chrome/browser/resources/shared/css/overlay.css View 1 2 3 4 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/resources/shared_resources.grd View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/constrained_window/constrained_window_alert.mm View 1 2 3 4 5 6 7 8 8 chunks +18 lines, -16 lines 0 comments Download
M chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_window.mm View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/intents/web_intent_choose_service_view_controller.mm View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/intents/web_intent_inline_service_view_controller.mm View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/intents/web_intent_message_view_controller.mm View 1 2 3 4 5 6 7 8 9 5 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.mm View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/intents/web_intent_progress_view_controller.mm View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/intents/web_intent_service_row_view_controller.mm View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/web_intent_sheet_controller.mm View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/constrained_window.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -15 lines 0 comments Download
A chrome/browser/ui/constrained_window_constants.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_frame_simple.cc View 1 2 3 4 5 6 7 8 9 chunks +45 lines, -53 lines 0 comments Download
M chrome/browser/ui/views/tab_modal_confirm_dialog_views.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/button/chrome_style.cc View 1 2 2 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
Mike Wittman
+cc:Sailesh for the ConstrainedWindow layout constant changes.
8 years, 2 months ago (2012-10-08 17:03:45 UTC) #1
sail
http://codereview.chromium.org/11077006/diff/1/chrome/browser/ui/constrained_window.h File chrome/browser/ui/constrained_window.h (right): http://codereview.chromium.org/11077006/diff/1/chrome/browser/ui/constrained_window.h#newcode25 chrome/browser/ui/constrained_window.h:25: static const int kCloseButtonPadding = 4; // Padding around ...
8 years, 2 months ago (2012-10-08 17:19:12 UTC) #2
Peter Kasting
(1) When you list multiple reviewers you always need to say exactly what you want ...
8 years, 2 months ago (2012-10-08 17:23:58 UTC) #3
Mike Wittman
http://codereview.chromium.org/11077006/diff/1/chrome/browser/ui/constrained_window.h File chrome/browser/ui/constrained_window.h (right): http://codereview.chromium.org/11077006/diff/1/chrome/browser/ui/constrained_window.h#newcode25 chrome/browser/ui/constrained_window.h:25: static const int kCloseButtonPadding = 4; // Padding around ...
8 years, 2 months ago (2012-10-08 21:34:19 UTC) #4
please use gerrit instead
Made the padding implementation more clear. Added ASCII art comments for spacing. https://codereview.chromium.org/11077006/diff/1/chrome/browser/ui/constrained_window.h File chrome/browser/ui/constrained_window.h ...
8 years, 2 months ago (2012-10-09 18:38:09 UTC) #5
please use gerrit instead
pkasting@: I've removed the nonstandard R= and +email lines from the changelist description. Below is ...
8 years, 2 months ago (2012-10-09 18:48:16 UTC) #6
please use gerrit instead
sail@: The changes to the constants in the following file might affect your work on ...
8 years, 2 months ago (2012-10-09 18:51:10 UTC) #7
sail
lgtm
8 years, 2 months ago (2012-10-09 18:54:57 UTC) #8
Peter Kasting
https://codereview.chromium.org/11077006/diff/9001/chrome/browser/ui/constrained_window.h File chrome/browser/ui/constrained_window.h (right): https://codereview.chromium.org/11077006/diff/9001/chrome/browser/ui/constrained_window.h#newcode62 chrome/browser/ui/constrained_window.h:62: static const int kRowPadding = 15; How can these ...
8 years, 2 months ago (2012-10-09 19:31:09 UTC) #9
Mike Wittman
This change makes the layout logic a lot clearer. https://codereview.chromium.org/11077006/diff/9001/chrome/browser/ui/views/constrained_window_frame_simple.cc File chrome/browser/ui/views/constrained_window_frame_simple.cc (right): https://codereview.chromium.org/11077006/diff/9001/chrome/browser/ui/views/constrained_window_frame_simple.cc#newcode134 chrome/browser/ui/views/constrained_window_frame_simple.cc:134: ...
8 years, 2 months ago (2012-10-09 22:55:46 UTC) #10
Ben Goodger (Google)
https://codereview.chromium.org/11077006/diff/9001/chrome/browser/ui/constrained_window.h File chrome/browser/ui/constrained_window.h (right): https://codereview.chromium.org/11077006/diff/9001/chrome/browser/ui/constrained_window.h#newcode21 chrome/browser/ui/constrained_window.h:21: // The kTitleTopPadding is the padding between the top ...
8 years, 2 months ago (2012-10-10 16:11:54 UTC) #11
please use gerrit instead
Addressing reviewers comments inline. The code should be simpler. sail@: Do we need to change ...
8 years, 2 months ago (2012-10-10 19:12:57 UTC) #12
sail
On 2012/10/10 19:12:57, Rouslan Solomakhin wrote: > Addressing reviewers comments inline. The code should be ...
8 years, 2 months ago (2012-10-10 19:18:00 UTC) #13
please use gerrit instead
arv@: Please review the changes under chrome/browser/resources. The UX folks have given us the update ...
8 years, 2 months ago (2012-10-10 19:24:00 UTC) #14
arv (Not doing code reviews)
LGTM rubberstamp for the images
8 years, 2 months ago (2012-10-10 19:29:22 UTC) #15
Peter Kasting
http://codereview.chromium.org/11077006/diff/7004/chrome/browser/ui/views/constrained_window_frame_simple.cc File chrome/browser/ui/views/constrained_window_frame_simple.cc (right): http://codereview.chromium.org/11077006/diff/7004/chrome/browser/ui/views/constrained_window_frame_simple.cc#newcode112 chrome/browser/ui/views/constrained_window_frame_simple.cc:112: client_insets_(ConstrainedWindow::kClientTopPadding, I didn't totally grasp why you wanted this ...
8 years, 2 months ago (2012-10-10 20:22:26 UTC) #16
please use gerrit instead
pkasting@: I've modified the header to be significantly simpler, like you suggested. csilv@: Please review ...
8 years, 2 months ago (2012-10-11 00:34:57 UTC) #17
please use gerrit instead
https://codereview.chromium.org/11077006/diff/8007/chrome/browser/ui/views/constrained_window_views.cc File chrome/browser/ui/views/constrained_window_views.cc (right): https://codereview.chromium.org/11077006/diff/8007/chrome/browser/ui/views/constrained_window_views.cc#newcode622 chrome/browser/ui/views/constrained_window_views.cc:622: dialog_client_view->set_background(background); Adding this back in, because this background is ...
8 years, 2 months ago (2012-10-11 00:39:40 UTC) #18
csilv
chrome/browser/resources lgtm
8 years, 2 months ago (2012-10-11 16:04:16 UTC) #19
please use gerrit instead
sail@: Please review the changes to constrained_window_alert.mm. I am using kTitleTopPadding, kClientTopPadding, and kClientBottomPadding instead ...
8 years, 2 months ago (2012-10-11 16:05:50 UTC) #20
sail
constrained_window_alert.mm LGTM
8 years, 2 months ago (2012-10-11 16:14:50 UTC) #21
Peter Kasting
LGTM for ui/views for now. This code needs an overhaul, we'll do that as a ...
8 years, 2 months ago (2012-10-11 18:00:24 UTC) #22
Mike Wittman
lgtm on latest changes
8 years, 2 months ago (2012-10-11 18:03:11 UTC) #23
sail
http://codereview.chromium.org/11077006/diff/15008/chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.mm File chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.mm (right): http://codereview.chromium.org/11077006/diff/15008/chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.mm#newcode149 chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.mm:149: -ConstrainedWindow::kClientBottomPadding); this will not work this insets the entire ...
8 years, 2 months ago (2012-10-11 18:15:23 UTC) #24
please use gerrit instead
sail@: Please take a look again. I believe that I have addressed your comments. https://codereview.chromium.org/11077006/diff/15008/chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.mm ...
8 years, 2 months ago (2012-10-11 18:41:27 UTC) #25
sail
web_intent_picker_view_controller.mm LGTM
8 years, 2 months ago (2012-10-11 18:42:34 UTC) #26
please use gerrit instead
On 2012/10/11 18:42:34, sail wrote: > web_intent_picker_view_controller.mm LGTM Waiting for a mac try-bot to succeed ...
8 years, 2 months ago (2012-10-11 18:48:11 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/11077006/8010
8 years, 2 months ago (2012-10-11 19:09:54 UTC) #28
commit-bot: I haz the power
Presubmit check for 11077006-8010 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-11 19:10:00 UTC) #29
please use gerrit instead
On 2012/10/11 19:10:00, I haz the power (commit-bot) wrote: > ** Presubmit ERRORS ** > ...
8 years, 2 months ago (2012-10-11 19:13:39 UTC) #30
please use gerrit instead
ben@: A friendly ping...
8 years, 2 months ago (2012-10-12 14:51:21 UTC) #31
Ben Goodger (Google)
http://codereview.chromium.org/11077006/diff/8010/chrome/browser/ui/constrained_window.h File chrome/browser/ui/constrained_window.h (right): http://codereview.chromium.org/11077006/diff/8010/chrome/browser/ui/constrained_window.h#newcode21 chrome/browser/ui/constrained_window.h:21: static const int kTitleTopPadding = 15; // Padding above ...
8 years, 2 months ago (2012-10-12 16:48:59 UTC) #32
please use gerrit instead
-------------------------------------- ben@: I've moved the constants to constrained_window_contants.h. PTLA -------------------------------------- sail@: PTLA at chrome/browser/ui/cocoa/*, where ...
8 years, 2 months ago (2012-10-12 18:56:07 UTC) #33
sail
cocoa/* LGTM
8 years, 2 months ago (2012-10-12 19:02:06 UTC) #34
Ben Goodger (Google)
lgtm
8 years, 2 months ago (2012-10-12 21:19:40 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/11077006/28001
8 years, 2 months ago (2012-10-12 21:28:54 UTC) #36
commit-bot: I haz the power
Presubmit check for 11077006-28001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-12 21:29:04 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/11077006/41001
8 years, 2 months ago (2012-10-12 21:40:20 UTC) #38
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
8 years, 2 months ago (2012-10-13 01:41:10 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/11077006/41001
8 years, 2 months ago (2012-10-13 01:48:08 UTC) #40
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
8 years, 2 months ago (2012-10-13 04:42:58 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/11077006/41001
8 years, 2 months ago (2012-10-13 18:48:08 UTC) #42
commit-bot: I haz the power
8 years, 2 months ago (2012-10-13 19:51:10 UTC) #43
Change committed as 161772

Powered by Google App Engine
This is Rietveld 408576698