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

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

Issue 3455027: [Mac] Do not insert an "About Chrome" item when the Wrench menu shows an available update. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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