summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/custom_frame_view.h
blob: abb2278cb403d250640087c38c1f61dccf3a8be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <Cocoa/Cocoa.h>

// CustomFrameView is a class whose methods we swizzle into NSGrayFrame
// on 10.7 and below, or NSThemeFrame on 10.8 and above, so that we can
// support custom frame drawing.
// This class is never to be instantiated on its own.

@interface NSView (CustomFrameView)

// Returns where the fullscreen button's origin should be positioned in window
// coordinates.
// We swizzle NSThemeFrame's implementation to center it vertically in the
// tabstrip (if there is a tabstrip), and to shift it to the left of the
// old-style avatar icon if necessary.
- (NSPoint)_fullScreenButtonOrigin;

@end