Linux Aura Task Manager Frame Buttons Misaligned
commit53f184554ebdbf323a14914335065cd793f9b8fa
authorjonross@chromium.org <jonross@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 10 May 2014 18:34:06 +0000 (10 18:34 +0000)
committerjonross@chromium.org <jonross@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 10 May 2014 18:34:06 +0000 (10 18:34 +0000)
tree1d7763eb1720ba1d3d453647c4ac3a5997e9b385
parent7de84840b52b614a26c1f69485d0ffbfb6000d7a
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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269597 0039d316-1c4b-4281-b951-d872f2087c98
ui/views/linux_ui/window_button_order_provider.cc [new file with mode: 0644]
ui/views/views.gyp
ui/views/window/custom_frame_view.cc
ui/views/window/custom_frame_view.h
ui/views/window/custom_frame_view_unittest.cc [new file with mode: 0644]
ui/views/window/window_button_order_provider.cc [new file with mode: 0644]
ui/views/window/window_button_order_provider.h [new file with mode: 0644]