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_mac.h" | 9 #include "app/l10n_util_mac.h" |
10 #include "app/menus/accelerator_cocoa.h" | 10 #include "app/menus/accelerator_cocoa.h" |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 [[NSImage alloc] initWithSize:wrenchImageSize]); | 562 [[NSImage alloc] initWithSize:wrenchImageSize]); |
563 | 563 |
564 [overlayImage lockFocus]; | 564 [overlayImage lockFocus]; |
565 [badge drawAtPoint:NSZeroPoint | 565 [badge drawAtPoint:NSZeroPoint |
566 fromRect:NSZeroRect | 566 fromRect:NSZeroRect |
567 operation:NSCompositeSourceOver | 567 operation:NSCompositeSourceOver |
568 fraction:1.0]; | 568 fraction:1.0]; |
569 [overlayImage unlockFocus]; | 569 [overlayImage unlockFocus]; |
570 | 570 |
571 [[wrenchButton_ cell] setOverlayImage:overlayImage]; | 571 [[wrenchButton_ cell] setOverlayImage:overlayImage]; |
| 572 |
| 573 [wrenchMenuController_ insertUpdateAvailableItem]; |
572 } | 574 } |
573 | 575 |
574 - (void)prefChanged:(std::wstring*)prefName { | 576 - (void)prefChanged:(std::wstring*)prefName { |
575 if (!prefName) return; | 577 if (!prefName) return; |
576 if (*prefName == prefs::kShowHomeButton) { | 578 if (*prefName == prefs::kShowHomeButton) { |
577 [self showOptionalHomeButton]; | 579 [self showOptionalHomeButton]; |
578 } | 580 } |
579 } | 581 } |
580 | 582 |
581 - (void)createBrowserActionButtons { | 583 - (void)createBrowserActionButtons { |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 - (void)indicateDropURLsInView:(NSView*)view at:(NSPoint)point { | 784 - (void)indicateDropURLsInView:(NSView*)view at:(NSPoint)point { |
783 // Do nothing. | 785 // Do nothing. |
784 } | 786 } |
785 | 787 |
786 // (URLDropTargetController protocol) | 788 // (URLDropTargetController protocol) |
787 - (void)hideDropURLsIndicatorInView:(NSView*)view { | 789 - (void)hideDropURLsIndicatorInView:(NSView*)view { |
788 // Do nothing. | 790 // Do nothing. |
789 } | 791 } |
790 | 792 |
791 @end | 793 @end |
OLD | NEW |