| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/cocoa/toolbar_view.h" | 5 #import "chrome/browser/cocoa/toolbar_view.h" |
| 6 | 6 |
| 7 @implementation ToolbarView | 7 @implementation ToolbarView |
| 8 | 8 |
| 9 // Prevent mouse down events from moving the parent window around. | 9 // Prevent mouse down events from moving the parent window around. |
| 10 - (BOOL)mouseDownCanMoveWindow { | 10 - (BOOL)mouseDownCanMoveWindow { |
| 11 return NO; | 11 return NO; |
| 12 } | 12 } |
| 13 | 13 |
| 14 - (void)drawRect:(NSRect)rect { |
| 15 // The toolbar's background pattern is phased relative to the |
| 16 // tab strip view's background pattern. |
| 17 NSPoint phase = [self gtm_themePatternPhase]; |
| 18 [[NSGraphicsContext currentContext] setPatternPhase:phase]; |
| 19 [self drawBackground]; |
| 20 } |
| 21 |
| 14 @end | 22 @end |
| OLD | NEW |