| 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_button_cell.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
| 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" | 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" |
| 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_context_menu_cocoa_controlle
r.h" | 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_context_menu_cocoa_controlle
r.h" |
| 11 #include "chrome/grit/generated_resources.h" | 11 #include "chrome/grit/generated_resources.h" |
| 12 #import "components/bookmarks/browser/bookmark_model.h" | 12 #import "components/bookmarks/browser/bookmark_model.h" |
| 13 #include "content/public/browser/user_metrics.h" | 13 #include "content/public/browser/user_metrics.h" |
| 14 #include "ui/base/l10n/l10n_util_mac.h" | 14 #include "ui/base/l10n/l10n_util_mac.h" |
| 15 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "ui/resources/grit/ui_resources.h" | 16 #include "ui/resources/grit/ui_resources.h" |
| 17 | 17 |
| 18 using base::UserMetricsAction; | 18 using base::UserMetricsAction; |
| 19 using bookmarks::BookmarkNode; |
| 19 | 20 |
| 20 const int kHierarchyButtonXMargin = 4; | 21 const int kHierarchyButtonXMargin = 4; |
| 21 | 22 |
| 22 @interface BookmarkButtonCell(Private) | 23 @interface BookmarkButtonCell(Private) |
| 23 - (void)configureBookmarkButtonCell; | 24 - (void)configureBookmarkButtonCell; |
| 24 - (void)applyTextColor; | 25 - (void)applyTextColor; |
| 25 @end | 26 @end |
| 26 | 27 |
| 27 | 28 |
| 28 @implementation BookmarkButtonCell | 29 @implementation BookmarkButtonCell |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 respectFlipped:YES | 298 respectFlipped:YES |
| 298 hints:nil]; | 299 hints:nil]; |
| 299 } | 300 } |
| 300 } | 301 } |
| 301 | 302 |
| 302 - (int)verticalTextOffset { | 303 - (int)verticalTextOffset { |
| 303 return 0; | 304 return 0; |
| 304 } | 305 } |
| 305 | 306 |
| 306 @end | 307 @end |
| OLD | NEW |