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

Side by Side Diff: chrome/browser/ui/cocoa/fast_resize_view.h

Issue 560913004: Revert of Mac: Fix rounded corners on browser windows on retina display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge conflicts. Created 6 years, 3 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 unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_UI_COCOA_FAST_RESIZE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_FAST_RESIZE_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_FAST_RESIZE_VIEW_H_ 6 #define CHROME_BROWSER_UI_COCOA_FAST_RESIZE_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 @class CAShapeLayer;
11
12 // A Cocoa view originally created to support fast re-painting to white on 10 // A Cocoa view originally created to support fast re-painting to white on
13 // resize. This is done by CoreAnimation now, so this view remains only as the 11 // resize. This is done by CoreAnimation now, so this view remains only as the
14 // first opaque ancestor of accelerated web contents views. 12 // first opaque ancestor of accelerated web contents views.
15 @interface FastResizeView : NSView { 13 @interface FastResizeView : NSView
16 @private
17 // Whether the bottom corners should be rounded.
18 BOOL roundedBottomCorners_;
19
20 // Weak reference to the mask of the hosted layer.
21 CAShapeLayer* layerMask_;
22 }
23
24 // Changes whether the bottom two corners are rounded.
25 - (void)setRoundedBottomCorners:(BOOL)roundedBottomCorners;
26 14
27 @end 15 @end
28 16
29 #endif // CHROME_BROWSER_UI_COCOA_FAST_RESIZE_VIEW_H_ 17 #endif // CHROME_BROWSER_UI_COCOA_FAST_RESIZE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_private.mm ('k') | chrome/browser/ui/cocoa/fast_resize_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698