| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_controller.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #import "base/mac/bundle_locations.h" | 9 #import "base/mac/bundle_locations.h" |
| 10 #import "base/mac/foundation_util.h" | 10 #import "base/mac/foundation_util.h" |
| (...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 | 901 |
| 902 - (IBAction)importBookmarks:(id)sender { | 902 - (IBAction)importBookmarks:(id)sender { |
| 903 chrome::ShowImportDialog(browser_); | 903 chrome::ShowImportDialog(browser_); |
| 904 } | 904 } |
| 905 | 905 |
| 906 - (NSButton*)offTheSideButton { | 906 - (NSButton*)offTheSideButton { |
| 907 return offTheSideButton_; | 907 return offTheSideButton_; |
| 908 } | 908 } |
| 909 | 909 |
| 910 - (NSImage*)offTheSideButtonImage:(BOOL)forDarkMode { | 910 - (NSImage*)offTheSideButtonImage:(BOOL)forDarkMode { |
| 911 const int kIconSize = 16; | 911 const int kIconSize = 8; |
| 912 SkColor vectorIconColor = forDarkMode ? SkColorSetA(SK_ColorWHITE, 0xCC) | 912 SkColor vectorIconColor = forDarkMode ? SkColorSetA(SK_ColorWHITE, 0xCC) |
| 913 : gfx::kChromeIconGrey; | 913 : gfx::kChromeIconGrey; |
| 914 return NSImageFromImageSkia( | 914 return NSImageFromImageSkia( |
| 915 gfx::CreateVectorIcon(gfx::VectorIconId::OVERFLOW_CHEVRON, | 915 gfx::CreateVectorIcon(gfx::VectorIconId::OVERFLOW_CHEVRON, |
| 916 kIconSize, | 916 kIconSize, |
| 917 vectorIconColor)); | 917 vectorIconColor)); |
| 918 } | 918 } |
| 919 | 919 |
| 920 #pragma mark Private Methods | 920 #pragma mark Private Methods |
| 921 | 921 |
| (...skipping 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3087 - (id<BookmarkButtonControllerProtocol>)controllerForNode: | 3087 - (id<BookmarkButtonControllerProtocol>)controllerForNode: |
| 3088 (const BookmarkNode*)node { | 3088 (const BookmarkNode*)node { |
| 3089 // See if it's in the bar, then if it is in the hierarchy of visible | 3089 // See if it's in the bar, then if it is in the hierarchy of visible |
| 3090 // folder menus. | 3090 // folder menus. |
| 3091 if (bookmarkModel_->bookmark_bar_node() == node) | 3091 if (bookmarkModel_->bookmark_bar_node() == node) |
| 3092 return self; | 3092 return self; |
| 3093 return [folderController_ controllerForNode:node]; | 3093 return [folderController_ controllerForNode:node]; |
| 3094 } | 3094 } |
| 3095 | 3095 |
| 3096 @end | 3096 @end |
| OLD | NEW |