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

Unified Diff: chrome/browser/ui/cocoa/framed_browser_window.mm

Issue 915313002: [Mac] Remove -[NSWindow drawRect] swizzling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nawc
Patch Set: Address comments Created 5 years, 10 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 | « chrome/browser/ui/cocoa/custom_frame_view_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/framed_browser_window.mm
diff --git a/chrome/browser/ui/cocoa/framed_browser_window.mm b/chrome/browser/ui/cocoa/framed_browser_window.mm
index 7ad19907f6caaf566d6c09891e73d8ed912c7b32..5d098be8d3c00a47cd7a24ab4c2703c7ba498748 100644
--- a/chrome/browser/ui/cocoa/framed_browser_window.mm
+++ b/chrome/browser/ui/cocoa/framed_browser_window.mm
@@ -12,7 +12,6 @@
#include "chrome/browser/themes/theme_service.h"
#import "chrome/browser/ui/cocoa/browser_window_controller.h"
#import "chrome/browser/ui/cocoa/browser_window_utils.h"
-#import "chrome/browser/ui/cocoa/custom_frame_view.h"
#import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h"
#import "chrome/browser/ui/cocoa/themed_window.h"
#include "grit/theme_resources.h"
@@ -44,18 +43,6 @@ const CGFloat kWindowGradientHeight = 24.0;
@end
-// Undocumented APIs. They are really on NSGrayFrame rather than NSView. Take
-// care to only call them on the NSView passed into
-// -[NSWindow drawCustomRect:forView:].
-@interface NSView (UndocumentedAPI)
-
-- (float)roundedCornerRadius;
-- (CGRect)_titlebarTitleRect;
-- (void)_drawTitleStringIn:(struct CGRect)arg1 withColor:(id)color;
-
-@end
-
-
@implementation FramedBrowserWindow
- (id)initWithContentRect:(NSRect)contentRect
« no previous file with comments | « chrome/browser/ui/cocoa/custom_frame_view_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698