| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #import "base/mac/sdk_forward_declarations.h" | 10 #import "base/mac/sdk_forward_declarations.h" |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 } | 469 } |
| 470 | 470 |
| 471 void BrowserWindowCocoa::ResetToolbarTabState(content::WebContents* contents) { | 471 void BrowserWindowCocoa::ResetToolbarTabState(content::WebContents* contents) { |
| 472 [controller_ resetTabState:contents]; | 472 [controller_ resetTabState:contents]; |
| 473 } | 473 } |
| 474 | 474 |
| 475 void BrowserWindowCocoa::FocusToolbar() { | 475 void BrowserWindowCocoa::FocusToolbar() { |
| 476 // Not needed on the Mac. | 476 // Not needed on the Mac. |
| 477 } | 477 } |
| 478 | 478 |
| 479 void BrowserWindowCocoa::ToolbarSizeChanged(bool is_animating) { |
| 480 // Not needed on the Mac. |
| 481 } |
| 482 |
| 479 void BrowserWindowCocoa::FocusAppMenu() { | 483 void BrowserWindowCocoa::FocusAppMenu() { |
| 480 // Chrome uses the standard Mac OS X menu bar, so this isn't needed. | 484 // Chrome uses the standard Mac OS X menu bar, so this isn't needed. |
| 481 } | 485 } |
| 482 | 486 |
| 483 void BrowserWindowCocoa::RotatePaneFocus(bool forwards) { | 487 void BrowserWindowCocoa::RotatePaneFocus(bool forwards) { |
| 484 // Not needed on the Mac. | 488 // Not needed on the Mac. |
| 485 } | 489 } |
| 486 | 490 |
| 487 void BrowserWindowCocoa::FocusBookmarksToolbar() { | 491 void BrowserWindowCocoa::FocusBookmarksToolbar() { |
| 488 // Not needed on the Mac. | 492 // Not needed on the Mac. |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 void BrowserWindowCocoa::UnhideDownloadShelf() { | 840 void BrowserWindowCocoa::UnhideDownloadShelf() { |
| 837 GetDownloadShelf()->Unhide(); | 841 GetDownloadShelf()->Unhide(); |
| 838 } | 842 } |
| 839 | 843 |
| 840 void BrowserWindowCocoa::HideDownloadShelf() { | 844 void BrowserWindowCocoa::HideDownloadShelf() { |
| 841 GetDownloadShelf()->Hide(); | 845 GetDownloadShelf()->Hide(); |
| 842 StatusBubble* statusBubble = GetStatusBubble(); | 846 StatusBubble* statusBubble = GetStatusBubble(); |
| 843 if (statusBubble) | 847 if (statusBubble) |
| 844 statusBubble->Hide(); | 848 statusBubble->Hide(); |
| 845 } | 849 } |
| OLD | NEW |