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

Unified Diff: chrome/browser/ui/cocoa/fast_resize_view.h

Issue 463263002: Mac: Fix rounded corners on browser windows on retina display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
Index: chrome/browser/ui/cocoa/fast_resize_view.h
diff --git a/chrome/browser/ui/cocoa/fast_resize_view.h b/chrome/browser/ui/cocoa/fast_resize_view.h
index fb68d95a3adff4ac73157e0cb5ab37b2f3a962b2..8e089866f952ae3b4d898438d02bdac276fd4562 100644
--- a/chrome/browser/ui/cocoa/fast_resize_view.h
+++ b/chrome/browser/ui/cocoa/fast_resize_view.h
@@ -7,6 +7,8 @@
#import <Cocoa/Cocoa.h>
+@class CAShapeLayer;
+
// A Cocoa view that supports an alternate resizing mode, normally used when
// animations are in progress. In normal resizing mode, subviews are sized to
// completely fill this view's bounds. In fast resizing mode, the subviews'
@@ -16,6 +18,12 @@
@interface FastResizeView : NSView {
@private
BOOL fastResizeMode_;
+
+ // Whether the bottom corners should be rounded.
+ BOOL roundedBottomCorners_;
+
+ // Weak reference to the mask of the hosted layer.
+ CAShapeLayer* layerMask_;
}
// Turns fast resizing mode on or off, which determines how this view resizes
@@ -24,6 +32,9 @@
// to trigger a resize.
- (void)setFastResizeMode:(BOOL)fastResizeMode;
+// Changes whether the bottom two corners are rounded.
+- (void)setRoundedBottomCorners:(BOOL)roundedBottomCorners;
+
@end
#endif // CHROME_BROWSER_UI_COCOA_FAST_RESIZE_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698