| OLD | NEW |
| 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 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #import "chrome/browser/themes/theme_properties.h" | 8 #import "chrome/browser/themes/theme_properties.h" |
| 9 #import "chrome/browser/themes/theme_service.h" | 9 #import "chrome/browser/themes/theme_service.h" |
| 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 [noItemContainer_ setAutoresizingMask:NSViewMaxXMargin]; | 86 [noItemContainer_ setAutoresizingMask:NSViewMaxXMargin]; |
| 87 | 87 |
| 88 noItemTextfield_.reset([[NSTextField alloc] | 88 noItemTextfield_.reset([[NSTextField alloc] |
| 89 initWithFrame:NSMakeRect(kInitialTextFieldXOrigin, | 89 initWithFrame:NSMakeRect(kInitialTextFieldXOrigin, |
| 90 kInitialElementYOrigin, CGFLOAT_MAX, | 90 kInitialElementYOrigin, CGFLOAT_MAX, |
| 91 kInitialElementHeight)]); | 91 kInitialElementHeight)]); |
| 92 [noItemTextfield_ setAutoresizingMask:NSViewWidthSizable]; | 92 [noItemTextfield_ setAutoresizingMask:NSViewWidthSizable]; |
| 93 [noItemTextfield_ setFont:smallSystemFont]; | 93 [noItemTextfield_ setFont:smallSystemFont]; |
| 94 [noItemTextfield_ | 94 [noItemTextfield_ |
| 95 setStringValue:l10n_util::GetNSString(IDS_BOOKMARKS_NO_ITEMS)]; | 95 setStringValue:l10n_util::GetNSString(IDS_BOOKMARKS_NO_ITEMS)]; |
| 96 [noItemTextfield_ setEditable:NO]; |
| 96 | 97 |
| 97 [noItemTextfield_ setBordered:NO]; | 98 [noItemTextfield_ setBordered:NO]; |
| 98 [[noItemTextfield_ cell] setLineBreakMode:NSLineBreakByTruncatingTail]; | 99 [[noItemTextfield_ cell] setLineBreakMode:NSLineBreakByTruncatingTail]; |
| 99 | 100 |
| 100 [noItemTextfield_ setTextColor:[NSColor controlTextColor]]; | 101 [noItemTextfield_ setTextColor:[NSColor controlTextColor]]; |
| 101 [noItemTextfield_ setBackgroundColor:[NSColor controlColor]]; | 102 [noItemTextfield_ setBackgroundColor:[NSColor controlColor]]; |
| 102 | 103 |
| 103 [noItemTextfield_ setDrawsBackground:NO]; | 104 [noItemTextfield_ setDrawsBackground:NO]; |
| 104 [noItemTextfield_ setTextColor:[NSColor controlTextColor]]; | 105 [noItemTextfield_ setTextColor:[NSColor controlTextColor]]; |
| 105 [noItemTextfield_ setBackgroundColor:[NSColor controlColor]]; | 106 [noItemTextfield_ setBackgroundColor:[NSColor controlColor]]; |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 | 344 |
| 344 - (NSMenu*)menu { | 345 - (NSMenu*)menu { |
| 345 return [[controller_ menuController] menuForBookmarkBar]; | 346 return [[controller_ menuController] menuForBookmarkBar]; |
| 346 } | 347 } |
| 347 | 348 |
| 348 - (ViewID)viewID { | 349 - (ViewID)viewID { |
| 349 return VIEW_ID_BOOKMARK_BAR; | 350 return VIEW_ID_BOOKMARK_BAR; |
| 350 } | 351 } |
| 351 | 352 |
| 352 @end // @implementation BookmarkBarView | 353 @end // @implementation BookmarkBarView |
| OLD | NEW |