1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_RECT_PATH_UTILS_H_
6 #define CHROME_BROWSER_UI_COCOA_RECT_PATH_UTILS_H_
8 #import <Cocoa/Cocoa.h>
10 namespace rect_path_utils
{
12 enum RoundedCornerFlags
{
17 NSBezierPath
*RectPathWithInset(RoundedCornerFlags roundedCornerFlags
,
21 const CGFloat outerRadius
);
23 void FillRectWithInset(RoundedCornerFlags roundedCornerFlags
,
27 const CGFloat outerRadius
,
30 void FrameRectWithInset(RoundedCornerFlags roundedCornerFlags
,
34 const CGFloat outerRadius
,
35 const CGFloat lineWidth
,
38 } // namespace rect_path_utils
40 #endif // CHROME_BROWSER_UI_COCOA_RECT_PATH_UTILS_H_