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

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

Issue 969003: Make repost form warning tab-modal on Mac. (Closed)
Patch Set: Remove an unnecessary line. Created 10 years, 9 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
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_mac.h" 9 #include "app/l10n_util_mac.h"
10 #include "base/mac_util.h" 10 #include "base/mac_util.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 // corresponding UI element. 362 // corresponding UI element.
363 - (void)enabledStateChangedForCommand:(NSInteger)command enabled:(BOOL)enabled { 363 - (void)enabledStateChangedForCommand:(NSInteger)command enabled:(BOOL)enabled {
364 NSButton* button = nil; 364 NSButton* button = nil;
365 switch (command) { 365 switch (command) {
366 case IDC_BACK: 366 case IDC_BACK:
367 button = backButton_; 367 button = backButton_;
368 break; 368 break;
369 case IDC_FORWARD: 369 case IDC_FORWARD:
370 button = forwardButton_; 370 button = forwardButton_;
371 break; 371 break;
372 case IDC_RELOAD:
373 button = reloadButton_;
374 break;
372 case IDC_HOME: 375 case IDC_HOME:
373 button = homeButton_; 376 button = homeButton_;
374 break; 377 break;
375 case IDC_BOOKMARK_PAGE: 378 case IDC_BOOKMARK_PAGE:
376 button = starButton_; 379 button = starButton_;
377 break; 380 break;
378 } 381 }
379 [button setEnabled:enabled]; 382 [button setEnabled:enabled];
380 } 383 }
381 384
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 - (void)indicateDropURLsInView:(NSView*)view at:(NSPoint)point { 842 - (void)indicateDropURLsInView:(NSView*)view at:(NSPoint)point {
840 // Do nothing. 843 // Do nothing.
841 } 844 }
842 845
843 // (URLDropTargetController protocol) 846 // (URLDropTargetController protocol)
844 - (void)hideDropURLsIndicatorInView:(NSView*)view { 847 - (void)hideDropURLsIndicatorInView:(NSView*)view {
845 // Do nothing. 848 // Do nothing.
846 } 849 }
847 850
848 @end 851 @end
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/repost_form_warning_mac.mm ('k') | chrome/browser/repost_form_warning_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698