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 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 } | 356 } |
357 | 357 |
358 void BrowserWindowCocoa::RotatePaneFocus(bool forwards) { | 358 void BrowserWindowCocoa::RotatePaneFocus(bool forwards) { |
359 // Not needed on the Mac. | 359 // Not needed on the Mac. |
360 } | 360 } |
361 | 361 |
362 void BrowserWindowCocoa::FocusBookmarksToolbar() { | 362 void BrowserWindowCocoa::FocusBookmarksToolbar() { |
363 // Not needed on the Mac. | 363 // Not needed on the Mac. |
364 } | 364 } |
365 | 365 |
366 void BrowserWindowCocoa::FocusChromeOSStatus() { | |
367 // Not needed on the Mac. | |
368 } | |
369 | 366 |
370 bool BrowserWindowCocoa::IsBookmarkBarVisible() const { | 367 bool BrowserWindowCocoa::IsBookmarkBarVisible() const { |
371 return browser_->profile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar); | 368 return browser_->profile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar); |
372 } | 369 } |
373 | 370 |
374 bool BrowserWindowCocoa::IsBookmarkBarAnimating() const { | 371 bool BrowserWindowCocoa::IsBookmarkBarAnimating() const { |
375 return [controller_ isBookmarkBarAnimating]; | 372 return [controller_ isBookmarkBarAnimating]; |
376 } | 373 } |
377 | 374 |
378 bool BrowserWindowCocoa::IsTabStripEditable() const { | 375 bool BrowserWindowCocoa::IsTabStripEditable() const { |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 AvatarMenuBubbleController* menu = | 660 AvatarMenuBubbleController* menu = |
664 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ | 661 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ |
665 anchoredAt:point]; | 662 anchoredAt:point]; |
666 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; | 663 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; |
667 [menu showWindow:nil]; | 664 [menu showWindow:nil]; |
668 } | 665 } |
669 | 666 |
670 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { | 667 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { |
671 [[controller_ avatarButtonController] showAvatarBubble]; | 668 [[controller_ avatarButtonController] showAvatarBubble]; |
672 } | 669 } |
OLD | NEW |