Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: chrome/browser/cocoa/toolbar_controller.mm

Issue 3124002: [Mac] Insert the Update Chrome item to existing Wrench menus when notified. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rename method Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/cocoa/wrench_menu_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/wrench_menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698