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 #import "chrome/browser/cocoa/browser_frame_view.h" | 5 #import "chrome/browser/cocoa/browser_frame_view.h" |
6 | 6 |
7 #import <objc/runtime.h> | 7 #import <objc/runtime.h> |
8 #import <Carbon/Carbon.h> | 8 #import <Carbon/Carbon.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/scoped_nsautorelease_pool.h" | 11 #include "base/scoped_nsautorelease_pool.h" |
12 #import "chrome/browser/browser_theme_provider.h" | |
13 #import "chrome/browser/cocoa/chrome_browser_window.h" | 12 #import "chrome/browser/cocoa/chrome_browser_window.h" |
14 #import "chrome/browser/cocoa/themed_window.h" | 13 #import "chrome/browser/cocoa/themed_window.h" |
| 14 #import "chrome/browser/themes/browser_theme_provider.h" |
15 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources.h" |
16 | 16 |
17 static const CGFloat kBrowserFrameViewPaintHeight = 60.0; | 17 static const CGFloat kBrowserFrameViewPaintHeight = 60.0; |
18 static const NSPoint kBrowserFrameViewPatternPhaseOffset = { -5, 3 }; | 18 static const NSPoint kBrowserFrameViewPatternPhaseOffset = { -5, 3 }; |
19 | 19 |
20 static BOOL gCanDrawTitle = NO; | 20 static BOOL gCanDrawTitle = NO; |
21 static BOOL gCanGetCornerRadius = NO; | 21 static BOOL gCanGetCornerRadius = NO; |
22 | 22 |
23 @interface NSView (Swizzles) | 23 @interface NSView (Swizzles) |
24 - (void)drawRectOriginal:(NSRect)rect; | 24 - (void)drawRectOriginal:(NSRect)rect; |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 - (void)updateTrackingAreas { | 341 - (void)updateTrackingAreas { |
342 [super updateTrackingAreas]; | 342 [super updateTrackingAreas]; |
343 if ([[self window] isKindOfClass:[ChromeBrowserWindow class]]) { | 343 if ([[self window] isKindOfClass:[ChromeBrowserWindow class]]) { |
344 ChromeBrowserWindow* window = | 344 ChromeBrowserWindow* window = |
345 static_cast<ChromeBrowserWindow*>([self window]); | 345 static_cast<ChromeBrowserWindow*>([self window]); |
346 [window updateTrackingAreas]; | 346 [window updateTrackingAreas]; |
347 } | 347 } |
348 } | 348 } |
349 | 349 |
350 @end | 350 @end |
OLD | NEW |