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

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

Issue 11896021: Change the one-click sign in confirmation bubble into a modal dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 11 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 [controller_ showBookmarkBubbleForURL:url 466 [controller_ showBookmarkBubbleForURL:url
467 alreadyBookmarked:(already_bookmarked ? YES : NO)]; 467 alreadyBookmarked:(already_bookmarked ? YES : NO)];
468 } 468 }
469 469
470 void BrowserWindowCocoa::ShowChromeToMobileBubble() { 470 void BrowserWindowCocoa::ShowChromeToMobileBubble() {
471 [controller_ showChromeToMobileBubble]; 471 [controller_ showChromeToMobileBubble];
472 } 472 }
473 473
474 #if defined(ENABLE_ONE_CLICK_SIGNIN) 474 #if defined(ENABLE_ONE_CLICK_SIGNIN)
475 void BrowserWindowCocoa::ShowOneClickSigninBubble( 475 void BrowserWindowCocoa::ShowOneClickSigninBubble(
476 const StartSyncCallback& start_sync_callback) { 476 OneClickSigninBubbleType type,
477 const StartSyncCallback& start_sync_callback) {
477 OneClickSigninBubbleController* bubble_controller = 478 OneClickSigninBubbleController* bubble_controller =
478 [[OneClickSigninBubbleController alloc] 479 [[OneClickSigninBubbleController alloc]
479 initWithBrowserWindowController:cocoa_controller() 480 initWithBrowserWindowController:cocoa_controller()
480 start_sync_callback:start_sync_callback]; 481 start_sync_callback:start_sync_callback];
481 [bubble_controller showWindow:nil]; 482 [bubble_controller showWindow:nil];
482 } 483 }
483 #endif 484 #endif
484 485
485 bool BrowserWindowCocoa::IsDownloadShelfVisible() const { 486 bool BrowserWindowCocoa::IsDownloadShelfVisible() const {
486 return [controller_ isDownloadShelfVisible] != NO; 487 return [controller_ isDownloadShelfVisible] != NO;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 PasswordGenerationBubbleController* controller = 689 PasswordGenerationBubbleController* controller =
689 [[PasswordGenerationBubbleController alloc] 690 [[PasswordGenerationBubbleController alloc]
690 initWithWindow:browser_->window()->GetNativeWindow() 691 initWithWindow:browser_->window()->GetNativeWindow()
691 anchoredAt:point 692 anchoredAt:point
692 renderViewHost:web_contents->GetRenderViewHost() 693 renderViewHost:web_contents->GetRenderViewHost()
693 passwordManager:PasswordManager::FromWebContents(web_contents) 694 passwordManager:PasswordManager::FromWebContents(web_contents)
694 usingGenerator:password_generator 695 usingGenerator:password_generator
695 forForm:form]; 696 forForm:form];
696 [controller showWindow:nil]; 697 [controller showWindow:nil];
697 } 698 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698