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_folder_button_cell.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h" |
6 | 6 |
7 #include "ui/base/material_design/material_design_controller.h" | 7 #include "ui/base/material_design/material_design_controller.h" |
8 | 8 |
9 using bookmarks::BookmarkNode; | 9 using bookmarks::BookmarkNode; |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 } | 24 } |
25 | 25 |
26 - (BOOL)isFolderButtonCell { | 26 - (BOOL)isFolderButtonCell { |
27 return YES; | 27 return YES; |
28 } | 28 } |
29 | 29 |
30 - (void)setMouseInside:(BOOL)flag animate:(BOOL)animated { | 30 - (void)setMouseInside:(BOOL)flag animate:(BOOL)animated { |
31 } | 31 } |
32 | 32 |
33 - (int)verticalTextOffset { | 33 - (int)verticalTextOffset { |
34 if (!ui::MaterialDesignController::IsModeMaterial()) { | |
35 return [super verticalTextOffset]; | |
36 } | |
37 return -3; | 34 return -3; |
38 } | 35 } |
39 | 36 |
40 @end | 37 @end |
OLD | NEW |