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

Issue 240163006: Linux Aura Task Manager Frame Buttons Misaligned (Closed)

Created:
6 years, 8 months ago by jonross
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tfarina, varkha
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Linux Aura Task Manager Frame Buttons Misaligned The task manager is a CustomFrameView. This had the logic for its button placement hardcoded. The view now adds itself as a listener for button configuration changes on linux. For other systems it falls back on a default set that matches the current (minimize, maximize, close) order. The layout of the buttons has changed to consult this order definition. Loading the assets for the close button has been moved out of layout. ResourceBundle only loads the asset once, so this can be done during initialization. The top padding for the buttons has been updated to provide more spacing. It now fits the rest of the padding in the class. TEST=CustomFrameViewTest BUG=351917 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269597

Patch Set 1 : #

Total comments: 16

Patch Set 2 : Add #ifdefs #

Total comments: 8

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Patch Set 6 : Refactor button observer out of CustomFrameView #

Total comments: 15

Patch Set 7 : Split out linux implementation #

Total comments: 2

Patch Set 8 : #

Total comments: 8

Patch Set 9 : #

Total comments: 6

Patch Set 10 : #

Total comments: 7

Patch Set 11 : . #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+572 lines, -66 lines) Patch
A ui/views/linux_ui/window_button_order_provider.cc View 1 2 3 4 5 6 1 chunk +93 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 4 chunks +7 lines, -0 lines 0 comments Download
M ui/views/window/custom_frame_view.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +21 lines, -3 lines 0 comments Download
M ui/views/window/custom_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +94 lines, -63 lines 0 comments Download
A ui/views/window/custom_frame_view_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +253 lines, -0 lines 0 comments Download
A ui/views/window/window_button_order_provider.h View 1 2 3 4 5 6 7 1 chunk +53 lines, -0 lines 0 comments Download
A ui/views/window/window_button_order_provider.cc View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
jonross
6 years, 8 months ago (2014-04-22 13:31:14 UTC) #1
flackr
https://codereview.chromium.org/240163006/diff/20001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/20001/ui/views/window/custom_frame_view.cc#newcode493 ui/views/window/custom_frame_view.cc:493: bool leading) { I don't think this wrapping conforms ...
6 years, 8 months ago (2014-04-22 18:36:45 UTC) #2
varkha
I don't feel that I have enough understanding of this code yet. I suggest sadrul@ ...
6 years, 8 months ago (2014-04-22 21:08:34 UTC) #3
jonross
https://codereview.chromium.org/240163006/diff/20001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/20001/ui/views/window/custom_frame_view.cc#newcode493 ui/views/window/custom_frame_view.cc:493: bool leading) { On 2014/04/22 18:36:45, flackr wrote: > ...
6 years, 8 months ago (2014-04-23 18:53:53 UTC) #4
flackr
Generally looks good, you should add an OWNER. https://codereview.chromium.org/240163006/diff/40001/ui/views/window/custom_frame_view.h File ui/views/window/custom_frame_view.h (right): https://codereview.chromium.org/240163006/diff/40001/ui/views/window/custom_frame_view.h#newcode8 ui/views/window/custom_frame_view.h:8: #include ...
6 years, 8 months ago (2014-04-24 21:40:12 UTC) #5
jonross
https://codereview.chromium.org/240163006/diff/40001/ui/views/window/custom_frame_view.h File ui/views/window/custom_frame_view.h (right): https://codereview.chromium.org/240163006/diff/40001/ui/views/window/custom_frame_view.h#newcode8 ui/views/window/custom_frame_view.h:8: #include <vector> On 2014/04/24 21:40:13, flackr wrote: > nit: ...
6 years, 8 months ago (2014-04-25 15:59:57 UTC) #6
jonross
Hi Sadrul, Could you provide OWNER review for my changes to CustomFrameView?
6 years, 8 months ago (2014-04-25 16:01:00 UTC) #7
flackr
https://codereview.chromium.org/240163006/diff/60001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/60001/ui/views/window/custom_frame_view.cc#newcode90 ui/views/window/custom_frame_view.cc:90: maximum_title_bar_x_(INT_MAX) { Rather than initializing this to INT_MAX, since ...
6 years, 8 months ago (2014-04-25 16:04:18 UTC) #8
jonross
https://codereview.chromium.org/240163006/diff/60001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/60001/ui/views/window/custom_frame_view.cc#newcode90 ui/views/window/custom_frame_view.cc:90: maximum_title_bar_x_(INT_MAX) { On 2014/04/25 16:04:18, flackr wrote: > Rather ...
6 years, 7 months ago (2014-04-29 15:26:04 UTC) #9
flackr
https://codereview.chromium.org/240163006/diff/80001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/80001/ui/views/window/custom_frame_view.cc#newcode22 ui/views/window/custom_frame_view.cc:22: #if defined(OS_LINUX) && !defined(OS_CHROMEOS) Move to end after always ...
6 years, 7 months ago (2014-04-29 15:58:28 UTC) #10
sadrul
+erg@ https://codereview.chromium.org/240163006/diff/80001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/80001/ui/views/window/custom_frame_view.cc#newcode267 ui/views/window/custom_frame_view.cc:267: //// CustomFrameView, ButtonListener implementation: Two // https://codereview.chromium.org/240163006/diff/80001/ui/views/window/custom_frame_view.h File ...
6 years, 7 months ago (2014-04-30 15:46:53 UTC) #11
jonross
https://codereview.chromium.org/240163006/diff/80001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/80001/ui/views/window/custom_frame_view.cc#newcode22 ui/views/window/custom_frame_view.cc:22: #if defined(OS_LINUX) && !defined(OS_CHROMEOS) On 2014/04/29 15:58:28, flackr wrote: ...
6 years, 7 months ago (2014-04-30 15:50:51 UTC) #12
jonross
I have refactored the WindowButtonOrderObserver out of CustomFrameView. I now have no linux specific changes ...
6 years, 7 months ago (2014-04-30 18:45:38 UTC) #13
flackr
https://codereview.chromium.org/240163006/diff/140001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/140001/ui/views/window/custom_frame_view.cc#newcode467 ui/views/window/custom_frame_view.cc:467: void CustomFrameView::LayoutButton(ImageButton* button, int x, int y) { This ...
6 years, 7 months ago (2014-05-01 15:43:36 UTC) #14
jonross
https://codereview.chromium.org/240163006/diff/140001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/140001/ui/views/window/custom_frame_view.cc#newcode467 ui/views/window/custom_frame_view.cc:467: void CustomFrameView::LayoutButton(ImageButton* button, int x, int y) { On ...
6 years, 7 months ago (2014-05-02 17:53:53 UTC) #15
flackr
https://codereview.chromium.org/240163006/diff/140001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/140001/ui/views/window/custom_frame_view.cc#newcode472 ui/views/window/custom_frame_view.cc:472: button->SetBounds(x, y, button_size.width(), button_size.height()); On 2014/05/02 17:53:54, jonross wrote: ...
6 years, 7 months ago (2014-05-06 02:35:01 UTC) #16
jonross
https://codereview.chromium.org/240163006/diff/140001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/140001/ui/views/window/custom_frame_view.cc#newcode472 ui/views/window/custom_frame_view.cc:472: button->SetBounds(x, y, button_size.width(), button_size.height()); Sorry, lost that part during ...
6 years, 7 months ago (2014-05-06 14:27:51 UTC) #17
flackr
https://codereview.chromium.org/240163006/diff/180001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/180001/ui/views/window/custom_frame_view.cc#newcode73 ui/views/window/custom_frame_view.cc:73: void LayoutButton(ImageButton* button, int x, int y, int extra_width) ...
6 years, 7 months ago (2014-05-07 00:37:57 UTC) #18
jonross
https://codereview.chromium.org/240163006/diff/180001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/180001/ui/views/window/custom_frame_view.cc#newcode73 ui/views/window/custom_frame_view.cc:73: void LayoutButton(ImageButton* button, int x, int y, int extra_width) ...
6 years, 7 months ago (2014-05-07 17:27:07 UTC) #19
flackr
https://codereview.chromium.org/240163006/diff/200001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/200001/ui/views/window/custom_frame_view.cc#newcode73 ui/views/window/custom_frame_view.cc:73: void LayoutButton(ImageButton* button, gfx::Rect& bounds) { nit: const gfx::Rect& ...
6 years, 7 months ago (2014-05-07 21:51:04 UTC) #20
jonross
https://codereview.chromium.org/240163006/diff/200001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/200001/ui/views/window/custom_frame_view.cc#newcode73 ui/views/window/custom_frame_view.cc:73: void LayoutButton(ImageButton* button, gfx::Rect& bounds) { On 2014/05/07 21:51:05, ...
6 years, 7 months ago (2014-05-08 17:13:43 UTC) #21
flackr
LGTM with one issue. https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.cc#newcode519 ui/views/window/custom_frame_view.cc:519: next_button_x = width() - FrameBorderThickness() ...
6 years, 7 months ago (2014-05-08 19:04:53 UTC) #22
Elliot Glaysher
lgtm https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.h File ui/views/window/custom_frame_view.h (right): https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.h#newcode41 ui/views/window/custom_frame_view.h:41: // NonClientFrameView: Please don't remove the "Overridden from"; ...
6 years, 7 months ago (2014-05-08 19:23:39 UTC) #23
jonross
https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.h File ui/views/window/custom_frame_view.h (right): https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.h#newcode41 ui/views/window/custom_frame_view.h:41: // NonClientFrameView: On 2014/05/08 19:23:40, Elliot Glaysher wrote: > ...
6 years, 7 months ago (2014-05-08 19:29:56 UTC) #24
varkha
https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.h File ui/views/window/custom_frame_view.h (right): https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.h#newcode41 ui/views/window/custom_frame_view.h:41: // NonClientFrameView: On 2014/05/08 19:29:56, jonross wrote: > On ...
6 years, 7 months ago (2014-05-08 19:32:48 UTC) #25
flackr
On 2014/05/08 19:32:48, varkha wrote: > https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.h > File ui/views/window/custom_frame_view.h (right): > > https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.h#newcode41 > ...
6 years, 7 months ago (2014-05-08 19:37:38 UTC) #26
sadrul
https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.cc#newcode518 ui/views/window/custom_frame_view.cc:518: // Trailing buttions are laid out in a RTL ...
6 years, 7 months ago (2014-05-09 13:53:09 UTC) #27
jonross
https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/240163006/diff/220001/ui/views/window/custom_frame_view.cc#newcode518 ui/views/window/custom_frame_view.cc:518: // Trailing buttions are laid out in a RTL ...
6 years, 7 months ago (2014-05-09 15:57:47 UTC) #28
sadrul
lgtm
6 years, 7 months ago (2014-05-09 16:00:43 UTC) #29
jonross
The CQ bit was checked by jonross@chromium.org
6 years, 7 months ago (2014-05-09 16:03:16 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jonross@chromium.org/240163006/260001
6 years, 7 months ago (2014-05-09 16:06:36 UTC) #31
commit-bot: I haz the power
Change committed as 269597
6 years, 7 months ago (2014-05-10 18:34:11 UTC) #32
mdempsky
6 years, 7 months ago (2014-05-10 20:57:36 UTC) #33
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/276173002/ by mdempsky@chromium.org.

The reason for reverting is: Suspected of being responsible for ash_unittests
failing on Linux ChromiumOS Tests(1):
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2...
.

Powered by Google App Engine
This is Rietveld 408576698