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

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

Issue 1992063002: [Mac][Material Design] Reduce distance between bookmark buttons. (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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 - (void)resetAllButtonPositionsWithAnimation:(BOOL)animate; 248 - (void)resetAllButtonPositionsWithAnimation:(BOOL)animate;
249 249
250 @end 250 @end
251 251
252 namespace bookmarks { 252 namespace bookmarks {
253 253
254 CGFloat BookmarkHorizontalPadding() { 254 CGFloat BookmarkHorizontalPadding() {
255 if (!ui::MaterialDesignController::IsModeMaterial()) { 255 if (!ui::MaterialDesignController::IsModeMaterial()) {
256 return 1.0; 256 return 1.0;
257 } 257 }
258 return 16.0; 258 return 10.0;
259 } 259 }
260 260
261 CGFloat BookmarkVerticalPadding() { 261 CGFloat BookmarkVerticalPadding() {
262 if (!ui::MaterialDesignController::IsModeMaterial()) { 262 if (!ui::MaterialDesignController::IsModeMaterial()) {
263 return 2.0; 263 return 2.0;
264 } 264 }
265 return 4.0; 265 return 4.0;
266 } 266 }
267 267
268 CGFloat BookmarkLeftMargin() { 268 CGFloat BookmarkLeftMargin() {
(...skipping 2818 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