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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 [[NSImage alloc] initWithSize:wrenchImageSize]); | 538 [[NSImage alloc] initWithSize:wrenchImageSize]); |
539 | 539 |
540 [overlayImage lockFocus]; | 540 [overlayImage lockFocus]; |
541 [badge drawAtPoint:NSZeroPoint | 541 [badge drawAtPoint:NSZeroPoint |
542 fromRect:NSZeroRect | 542 fromRect:NSZeroRect |
543 operation:NSCompositeSourceOver | 543 operation:NSCompositeSourceOver |
544 fraction:1.0]; | 544 fraction:1.0]; |
545 [overlayImage unlockFocus]; | 545 [overlayImage unlockFocus]; |
546 | 546 |
547 [[wrenchButton_ cell] setOverlayImage:overlayImage]; | 547 [[wrenchButton_ cell] setOverlayImage:overlayImage]; |
548 | |
549 [wrenchMenuController_ insertUpdateAvailableItem]; | |
550 } | 548 } |
551 | 549 |
552 - (void)prefChanged:(std::string*)prefName { | 550 - (void)prefChanged:(std::string*)prefName { |
553 if (!prefName) return; | 551 if (!prefName) return; |
554 if (*prefName == prefs::kShowHomeButton) { | 552 if (*prefName == prefs::kShowHomeButton) { |
555 [self showOptionalHomeButton]; | 553 [self showOptionalHomeButton]; |
556 } | 554 } |
557 } | 555 } |
558 | 556 |
559 - (void)createBrowserActionButtons { | 557 - (void)createBrowserActionButtons { |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 - (void)indicateDropURLsInView:(NSView*)view at:(NSPoint)point { | 758 - (void)indicateDropURLsInView:(NSView*)view at:(NSPoint)point { |
761 // Do nothing. | 759 // Do nothing. |
762 } | 760 } |
763 | 761 |
764 // (URLDropTargetController protocol) | 762 // (URLDropTargetController protocol) |
765 - (void)hideDropURLsIndicatorInView:(NSView*)view { | 763 - (void)hideDropURLsIndicatorInView:(NSView*)view { |
766 // Do nothing. | 764 // Do nothing. |
767 } | 765 } |
768 | 766 |
769 @end | 767 @end |
OLD | NEW |