| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CUSTOM_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_CUSTOM_FRAME_VIEW_H_ |
| 7 |
| 5 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 6 | 9 |
| 7 // CustomFrameView is a class whose methods we swizzle into NSGrayFrame | 10 // CustomFrameView is a class whose methods we swizzle into NSGrayFrame |
| 8 // on 10.7 and below, or NSThemeFrame on 10.8 and above, so that we can | 11 // on 10.7 and below, or NSThemeFrame on 10.8 and above, so that we can |
| 9 // support custom frame drawing. | 12 // support custom frame drawing. |
| 10 // This class is never to be instantiated on its own. | 13 // This class is never to be instantiated on its own. |
| 11 | 14 |
| 12 @interface NSView (CustomFrameView) | 15 @interface NSView (CustomFrameView) |
| 13 | 16 |
| 14 // Returns where the fullscreen button's origin should be positioned in window | 17 // Returns where the fullscreen button's origin should be positioned in window |
| 15 // coordinates. | 18 // coordinates. |
| 16 // We swizzle NSThemeFrame's implementation to center it vertically in the | 19 // We swizzle NSThemeFrame's implementation to center it vertically in the |
| 17 // tabstrip (if there is a tabstrip), and to shift it to the left of the | 20 // tabstrip (if there is a tabstrip), and to shift it to the left of the |
| 18 // old-style avatar icon if necessary. | 21 // old-style avatar icon if necessary. |
| 19 - (NSPoint)_fullScreenButtonOrigin; | 22 - (NSPoint)_fullScreenButtonOrigin; |
| 20 | 23 |
| 21 @end | 24 @end |
| 25 |
| 26 #endif // CHROME_BROWSER_UI_COCOA_CUSTOM_FRAME_VIEW_H_ |
| OLD | NEW |