summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/nsview_additions.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/cocoa/nsview_additions.mm')
-rw-r--r--chrome/browser/ui/cocoa/nsview_additions.mm13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/nsview_additions.mm b/chrome/browser/ui/cocoa/nsview_additions.mm
new file mode 100644
index 0000000..636837c
--- /dev/null
+++ b/chrome/browser/ui/cocoa/nsview_additions.mm
@@ -0,0 +1,13 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import "chrome/browser/ui/cocoa/nsview_additions.h"
+
+@implementation NSView (ChromeAdditions)
+
+- (CGFloat)cr_lineWidth {
+ return 1.0 / [self convertSizeToBase:NSMakeSize(1, 1)].width;
+}
+
+@end