| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import "chrome/browser/cocoa/tab_view.h" | 5 #import "chrome/browser/cocoa/tab_view.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #import "base/mac_util.h" | 8 #import "base/mac_util.h" |
| 9 #include "base/nsimage_cache_mac.h" | 9 #include "base/nsimage_cache_mac.h" |
| 10 #include "base/scoped_cftyperef.h" | 10 #include "base/scoped_cftyperef.h" |
| (...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 if ([child isKindOfClass:[NSButtonCell class]]) | 842 if ([child isKindOfClass:[NSButtonCell class]]) |
| 843 [okChildren addObject:child]; | 843 [okChildren addObject:child]; |
| 844 } | 844 } |
| 845 | 845 |
| 846 return okChildren; | 846 return okChildren; |
| 847 } | 847 } |
| 848 | 848 |
| 849 return [super accessibilityAttributeValue:attribute]; | 849 return [super accessibilityAttributeValue:attribute]; |
| 850 } | 850 } |
| 851 | 851 |
| 852 - (ViewID)viewID { | |
| 853 return VIEW_ID_TAB; | |
| 854 } | |
| 855 | |
| 856 @end // @implementation TabView | 852 @end // @implementation TabView |
| 857 | 853 |
| 858 @implementation TabView (TabControllerInterface) | 854 @implementation TabView (TabControllerInterface) |
| 859 | 855 |
| 860 - (void)setController:(TabController*)controller { | 856 - (void)setController:(TabController*)controller { |
| 861 controller_ = controller; | 857 controller_ = controller; |
| 862 } | 858 } |
| 863 | 859 |
| 864 @end // @implementation TabView (TabControllerInterface) | 860 @end // @implementation TabView (TabControllerInterface) |
| 865 | 861 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 controlPoint1:NSMakePoint(topRight.x + bottomControlPointInset, | 1032 controlPoint1:NSMakePoint(topRight.x + bottomControlPointInset, |
| 1037 topRight.y) | 1033 topRight.y) |
| 1038 controlPoint2:NSMakePoint(bottomRight.x - baseControlPointOutset, | 1034 controlPoint2:NSMakePoint(bottomRight.x - baseControlPointOutset, |
| 1039 bottomRight.y)]; | 1035 bottomRight.y)]; |
| 1040 [path lineToPoint:NSMakePoint(bottomRight.x + 1, bottomRight.y)]; | 1036 [path lineToPoint:NSMakePoint(bottomRight.x + 1, bottomRight.y)]; |
| 1041 [path lineToPoint:NSMakePoint(bottomRight.x + 1, bottomRight.y - 2)]; | 1037 [path lineToPoint:NSMakePoint(bottomRight.x + 1, bottomRight.y - 2)]; |
| 1042 return path; | 1038 return path; |
| 1043 } | 1039 } |
| 1044 | 1040 |
| 1045 @end // @implementation TabView(Private) | 1041 @end // @implementation TabView(Private) |
| OLD | NEW |