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

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

Issue 11876036: Alternate NTP: Don't hide bookmark bar on instant (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_NSVIEW_ADDITIONS_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_
6 #define CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_ 6 #define CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 @interface NSView (ChromeAdditions) 10 @interface NSView (ChromeAdditions)
11 11
12 // Returns the line width that will generate a 1 pixel wide line. 12 // Returns the line width that will generate a 1 pixel wide line.
13 - (CGFloat)cr_lineWidth; 13 - (CGFloat)cr_lineWidth;
14 14
15 // Checks if the mouse is currently in this view. 15 // Checks if the mouse is currently in this view.
16 - (BOOL)cr_isMouseInView; 16 - (BOOL)cr_isMouseInView;
17 17
18 // Returns YES if this view is below |otherView|.
19 - (BOOL)cr_isBelowView:(NSView*)otherView;
20
21 // Returns YES if this view is aobve |otherView|.
22 - (BOOL)cr_isAboveView:(NSView*)otherView;
23
24 // Ensures that the z-order of |subview| is correct relative to |otherView|.
25 - (void)cr_ensureSubview:(NSView*)subview
26 isPositioned:(NSWindowOrderingMode)place
27 relativeTo:(NSView *)otherView;
28
18 @end 29 @end
19 30
20 #endif // CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_ 31 #endif // CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698