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

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

Issue 2747693003: Add missing include guards in Cocoa code. (Closed)
Patch Set: Fix nit Created 3 years, 9 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) 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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/content_settings/cookie_tree_node.h ('k') | chrome/browser/ui/cocoa/dock_icon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698