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

Side by Side Diff: ui/base/cocoa/nsview_additions.h

Issue 595283002: Move nsview_additions and hyperlink_text_view to ui/base/cocoa (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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) 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 UI_BASE_COCOA_NSVIEW_ADDITIONS_H_
6 #define CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_ 6 #define UI_BASE_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;
(...skipping 19 matching lines...) Expand all
36 // required translating or flipping to transform between the two coordinate 36 // required translating or flipping to transform between the two coordinate
37 // systems. 37 // systems.
38 - (void)cr_drawUsingAncestor:(NSView*)ancestorView inRect:(NSRect)rect; 38 - (void)cr_drawUsingAncestor:(NSView*)ancestorView inRect:(NSRect)rect;
39 39
40 // Used by ancestorView in the above draw call, to look up the child view that 40 // Used by ancestorView in the above draw call, to look up the child view that
41 // it is actually drawing to. 41 // it is actually drawing to.
42 - (NSView*)cr_viewBeingDrawnTo; 42 - (NSView*)cr_viewBeingDrawnTo;
43 43
44 @end 44 @end
45 45
46 #endif // CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_ 46 #endif // UI_BASE_COCOA_NSVIEW_ADDITIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698