| 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_controller.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/mac_util.h" | 7 #include "base/mac/mac_util.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_editor.h" | 10 #include "chrome/browser/bookmarks/bookmark_editor.h" |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 | 733 |
| 734 - (IBAction)importBookmarks:(id)sender { | 734 - (IBAction)importBookmarks:(id)sender { |
| 735 browser_->OpenImportSettingsDialog(); | 735 browser_->OpenImportSettingsDialog(); |
| 736 } | 736 } |
| 737 | 737 |
| 738 #pragma mark Private Methods | 738 #pragma mark Private Methods |
| 739 | 739 |
| 740 // Called after the current theme has changed. | 740 // Called after the current theme has changed. |
| 741 - (void)themeDidChangeNotification:(NSNotification*)aNotification { | 741 - (void)themeDidChangeNotification:(NSNotification*)aNotification { |
| 742 ui::ThemeProvider* themeProvider = | 742 ui::ThemeProvider* themeProvider = |
| 743 static_cast<ui::ThemeProvider*>([[aNotification object] pointerValue]); | 743 static_cast<ThemeService*>([[aNotification object] pointerValue]); |
| 744 [self updateTheme:themeProvider]; | 744 [self updateTheme:themeProvider]; |
| 745 } | 745 } |
| 746 | 746 |
| 747 // (Private) Method is the same as [self view], but is provided to be explicit. | 747 // (Private) Method is the same as [self view], but is provided to be explicit. |
| 748 - (BackgroundGradientView*)backgroundGradientView { | 748 - (BackgroundGradientView*)backgroundGradientView { |
| 749 DCHECK([[self view] isKindOfClass:[BackgroundGradientView class]]); | 749 DCHECK([[self view] isKindOfClass:[BackgroundGradientView class]]); |
| 750 return (BackgroundGradientView*)[self view]; | 750 return (BackgroundGradientView*)[self view]; |
| 751 } | 751 } |
| 752 | 752 |
| 753 // (Private) Method is the same as [self view], but is provided to be explicit. | 753 // (Private) Method is the same as [self view], but is provided to be explicit. |
| (...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2545 // to minimize touching the object passed in (likely a mock). | 2545 // to minimize touching the object passed in (likely a mock). |
| 2546 - (void)setButtonContextMenu:(id)menu { | 2546 - (void)setButtonContextMenu:(id)menu { |
| 2547 buttonContextMenu_ = menu; | 2547 buttonContextMenu_ = menu; |
| 2548 } | 2548 } |
| 2549 | 2549 |
| 2550 - (void)setIgnoreAnimations:(BOOL)ignore { | 2550 - (void)setIgnoreAnimations:(BOOL)ignore { |
| 2551 ignoreAnimations_ = ignore; | 2551 ignoreAnimations_ = ignore; |
| 2552 } | 2552 } |
| 2553 | 2553 |
| 2554 @end | 2554 @end |
| OLD | NEW |