Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm

Issue 1989953002: [Mac][Material Design] Change bookmark chevron icon size to 8x8. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698