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

Unified Diff: chrome/browser/cocoa/bookmark_bar_toolbar_view.mm

Issue 271045: Fix for the bookmark_bar which got ignored in my earlier... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/bookmark_bar_toolbar_view.mm
===================================================================
--- chrome/browser/cocoa/bookmark_bar_toolbar_view.mm (revision 28656)
+++ chrome/browser/cocoa/bookmark_bar_toolbar_view.mm (working copy)
@@ -23,14 +23,16 @@
@implementation BookmarkBarToolbarView
- (BOOL)isOpaque {
- return YES;
+ return [controller_ drawAsFloatingBar];
}
- (void)drawRect:(NSRect)rect {
if ([controller_ drawAsFloatingBar]) {
[self drawRectAsFloating:rect];
} else {
- [super drawRect:rect];
+ NSPoint phase = [self gtm_themePatternPhase];
+ [[NSGraphicsContext currentContext] setPatternPhase:phase];
+ [self drawBackground];
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698