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

Side by Side Diff: ui/gfx/path_mac.h

Issue 1718043003: MacViews: Clip contents for non-rectangular windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | ui/gfx/path_mac.mm » ('j') | ui/gfx/path_mac.mm » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 UI_GFX_PATH_MAC_H_ 5 #ifndef UI_GFX_PATH_MAC_H_
6 #define UI_GFX_PATH_MAC_H_ 6 #define UI_GFX_PATH_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h>
9
10 #include "base/mac/scoped_cftyperef.h"
8 #include "ui/gfx/gfx_export.h" 11 #include "ui/gfx/gfx_export.h"
9 12
10 @class NSBezierPath;
11 class SkPath; 13 class SkPath;
12 14
13 namespace gfx { 15 namespace gfx {
14 16
15 // Returns an autoreleased NSBezierPath corresponding to |path|. Caller should 17 // Returns an autoreleased NSBezierPath corresponding to |path|. Caller should
16 // call retain on the returned object, if it wishes to take ownership. 18 // call retain on the returned object, if it wishes to take ownership.
17 GFX_EXPORT NSBezierPath* CreateNSBezierPathFromSkPath(const SkPath& path); 19 GFX_EXPORT NSBezierPath* CreateNSBezierPathFromSkPath(const SkPath& path);
18 20
21 // Returns an immutable CGPath corresponding to |path|. An empty CGPath is
22 // returned for an empty or nil |path| value.
23 GFX_EXPORT base::ScopedCFTypeRef<CGPathRef> CreateCGPathFromNSBezierPath(
24 NSBezierPath* path);
25
19 } // namespace gfx 26 } // namespace gfx
20 27
21 #endif // UI_GFX_PATH_MAC_H_ 28 #endif // UI_GFX_PATH_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/path_mac.mm » ('j') | ui/gfx/path_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698