| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cocoa/toolbar_controller.h" | 5 #import "chrome/browser/cocoa/toolbar_controller.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/l10n_util_mac.h" | 10 #include "app/l10n_util_mac.h" |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 [[NSImage alloc] initWithSize:wrenchImageSize]); | 572 [[NSImage alloc] initWithSize:wrenchImageSize]); |
| 573 | 573 |
| 574 [overlayImage lockFocus]; | 574 [overlayImage lockFocus]; |
| 575 [badge drawAtPoint:NSZeroPoint | 575 [badge drawAtPoint:NSZeroPoint |
| 576 fromRect:NSZeroRect | 576 fromRect:NSZeroRect |
| 577 operation:NSCompositeSourceOver | 577 operation:NSCompositeSourceOver |
| 578 fraction:1.0]; | 578 fraction:1.0]; |
| 579 [overlayImage unlockFocus]; | 579 [overlayImage unlockFocus]; |
| 580 | 580 |
| 581 [[wrenchButton_ cell] setOverlayImage:overlayImage]; | 581 [[wrenchButton_ cell] setOverlayImage:overlayImage]; |
| 582 |
| 583 [wrenchMenuController_ insertUpdateAvailableItem]; |
| 582 } | 584 } |
| 583 | 585 |
| 584 - (void)prefChanged:(std::wstring*)prefName { | 586 - (void)prefChanged:(std::wstring*)prefName { |
| 585 if (!prefName) return; | 587 if (!prefName) return; |
| 586 if (*prefName == prefs::kShowHomeButton) { | 588 if (*prefName == prefs::kShowHomeButton) { |
| 587 [self showOptionalHomeButton]; | 589 [self showOptionalHomeButton]; |
| 588 } | 590 } |
| 589 } | 591 } |
| 590 | 592 |
| 591 - (void)createBrowserActionButtons { | 593 - (void)createBrowserActionButtons { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 - (void)indicateDropURLsInView:(NSView*)view at:(NSPoint)point { | 794 - (void)indicateDropURLsInView:(NSView*)view at:(NSPoint)point { |
| 793 // Do nothing. | 795 // Do nothing. |
| 794 } | 796 } |
| 795 | 797 |
| 796 // (URLDropTargetController protocol) | 798 // (URLDropTargetController protocol) |
| 797 - (void)hideDropURLsIndicatorInView:(NSView*)view { | 799 - (void)hideDropURLsIndicatorInView:(NSView*)view { |
| 798 // Do nothing. | 800 // Do nothing. |
| 799 } | 801 } |
| 800 | 802 |
| 801 @end | 803 @end |
| OLD | NEW |