diff options
author | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-14 21:16:40 +0000 |
---|---|---|
committer | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-14 21:16:40 +0000 |
commit | 9df1e88e20b950bf62e2f2a0f0ecb60d523b7559 (patch) | |
tree | 3d080460d1812910c2e220e7b051f137ea78b5c1 /ash/frame/header_painter.h | |
parent | 74f778ee567a5e18ae6766416711b92fc6e7f39a (diff) | |
download | chromium_src-9df1e88e20b950bf62e2f2a0f0ecb60d523b7559.zip chromium_src-9df1e88e20b950bf62e2f2a0f0ecb60d523b7559.tar.gz chromium_src-9df1e88e20b950bf62e2f2a0f0ecb60d523b7559.tar.bz2 |
Fixes bugs wrt to painting window header
- Fixes bug where we paint the maximized task manager window title white (a relic from when the task manager had a black header background when maximized)
- Fixes painting of the border highlight. There are bugs in painting the border highlight for both browser and non-browser windows.
- Split up HeaderPainter::PainterBorder() to HeaderPainter::PaintHighlightForRestoredBrowserWindow() and HeaderPainter::PaintHighlightForInactiveRestoredWindow() in preparation for refactor in https://codereview.chromium.org/189463013/
BUG=352042
TEST=None
Review URL: https://codereview.chromium.org/199283004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257201 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/frame/header_painter.h')
-rw-r--r-- | ash/frame/header_painter.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ash/frame/header_painter.h b/ash/frame/header_painter.h index 5207583..f4f8d36 100644 --- a/ash/frame/header_painter.h +++ b/ash/frame/header_painter.h @@ -129,8 +129,13 @@ class ASH_EXPORT HeaderPainter : public gfx::AnimationDelegate { private: FRIEND_TEST_ALL_PREFIXES(HeaderPainterTest, TitleIconAlignment); - // Paints the border around the header. - void PaintBorder(gfx::Canvas* canvas, Mode mode); + // Paints highlight around the edge of the header for restored browser + // windows. + void PaintHighlightForRestoredBrowserWindow(gfx::Canvas* canvas); + + // Paints highlight around the edge of the header for inactive restored + // non-browser windows. + void PaintHighlightForInactiveRestoredWindow(gfx::Canvas* canvas); // Updates the images used for the minimize, restore and close buttons. void UpdateCaptionButtonImages(); |