BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / custom_frame_view.h
blobabb2278cb403d250640087c38c1f61dccf3a8be9
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
3 // found in the LICENSE file.
5 #import <Cocoa/Cocoa.h>
7 // 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
9 // support custom frame drawing.
10 // This class is never to be instantiated on its own.
12 @interface NSView (CustomFrameView)
14 // Returns where the fullscreen button's origin should be positioned in window
15 // coordinates.
16 // 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
18 // old-style avatar icon if necessary.
19 - (NSPoint)_fullScreenButtonOrigin;
21 @end