[Mac] Use a custom view to implement colored app windows.
commitadebcb60c6ae805b8e35640b06fa57ed37480da6
authorjackhou <jackhou@chromium.org>
Mon, 23 Feb 2015 00:39:48 +0000 (22 16:39 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 23 Feb 2015 00:40:29 +0000 (23 00:40 +0000)
treec2f1f7c5a26a96ea84a31c50b7bf5832027e08e0
parent63b2854330a8432e51e041b988cb397aa7a21463
[Mac] Use a custom view to implement colored app windows.

When building with >=10.9 SDK, swizzling drawRect on the window no
longer works. See https://codereview.chromium.org/611453004

This changes NativeAppWindowCocoa to put an extra view in the title bar
that draws the color.

BUG=457991

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

Cr-Commit-Position: refs/heads/master@{#317534}
chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h
chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm