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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_cocoa.mm

Issue 14225016: Add key to focus infobars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 } 418 }
419 419
420 void BrowserWindowCocoa::RotatePaneFocus(bool forwards) { 420 void BrowserWindowCocoa::RotatePaneFocus(bool forwards) {
421 // Not needed on the Mac. 421 // Not needed on the Mac.
422 } 422 }
423 423
424 void BrowserWindowCocoa::FocusBookmarksToolbar() { 424 void BrowserWindowCocoa::FocusBookmarksToolbar() {
425 // Not needed on the Mac. 425 // Not needed on the Mac.
426 } 426 }
427 427
428 void BrowserWindowCocoa::FocusInfobars() {
429 // Not needed on the Mac.
430 }
431
428 bool BrowserWindowCocoa::IsBookmarkBarVisible() const { 432 bool BrowserWindowCocoa::IsBookmarkBarVisible() const {
429 return browser_->profile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar); 433 return browser_->profile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar);
430 } 434 }
431 435
432 bool BrowserWindowCocoa::IsBookmarkBarAnimating() const { 436 bool BrowserWindowCocoa::IsBookmarkBarAnimating() const {
433 return [controller_ isBookmarkBarAnimating]; 437 return [controller_ isBookmarkBarAnimating];
434 } 438 }
435 439
436 bool BrowserWindowCocoa::IsTabStripEditable() const { 440 bool BrowserWindowCocoa::IsTabStripEditable() const {
437 return ![controller_ isDragSessionActive]; 441 return ![controller_ isDragSessionActive];
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 PasswordGenerationBubbleController* controller = 705 PasswordGenerationBubbleController* controller =
702 [[PasswordGenerationBubbleController alloc] 706 [[PasswordGenerationBubbleController alloc]
703 initWithWindow:browser_->window()->GetNativeWindow() 707 initWithWindow:browser_->window()->GetNativeWindow()
704 anchoredAt:point 708 anchoredAt:point
705 renderViewHost:web_contents->GetRenderViewHost() 709 renderViewHost:web_contents->GetRenderViewHost()
706 passwordManager:PasswordManager::FromWebContents(web_contents) 710 passwordManager:PasswordManager::FromWebContents(web_contents)
707 usingGenerator:password_generator 711 usingGenerator:password_generator
708 forForm:form]; 712 forForm:form];
709 [controller showWindow:nil]; 713 [controller showWindow:nil];
710 } 714 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | chrome/browser/ui/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698