diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-07 20:59:00 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-07 20:59:00 +0000 |
commit | 875f8f9b0757f2029b21cead7822db116ea525e0 (patch) | |
tree | 2e5007bd2cbfed52d50080205ae62d37a58fc375 /chrome/browser/cocoa/browser_frame_view.h | |
parent | 248e1623b3943775a94ca3cee125f02788549e3e (diff) | |
download | chromium_src-875f8f9b0757f2029b21cead7822db116ea525e0.zip chromium_src-875f8f9b0757f2029b21cead7822db116ea525e0.tar.gz chromium_src-875f8f9b0757f2029b21cead7822db116ea525e0.tar.bz2 |
[Mac] Fix themes drawing code to properly position the theme in fullscreen windows and to properly blend transparent themes with black. Also adds a way to pass an offset in to the theme drawing code.
BUG=40213
TEST=Android robot theme should draw properly, not be pure black.
Review URL: http://codereview.chromium.org/1527020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43875 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_frame_view.h')
-rw-r--r-- | chrome/browser/cocoa/browser_frame_view.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/browser_frame_view.h b/chrome/browser/cocoa/browser_frame_view.h index 6505dfb..42faa9b 100644 --- a/chrome/browser/cocoa/browser_frame_view.h +++ b/chrome/browser/cocoa/browser_frame_view.h @@ -55,7 +55,9 @@ // count). + (BOOL)drawWindowThemeInDirtyRect:(NSRect)dirtyRect forView:(NSView*)view - bounds:(NSRect)bounds; + bounds:(NSRect)bounds + offset:(NSPoint)offset + forceBlackBackground:(BOOL)forceBlackBackground; // Gets the color to draw title text. + (NSColor*)titleColorForThemeView:(NSView*)view; |