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

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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 [controller_ showBookmarkBubbleForURL:url 469 [controller_ showBookmarkBubbleForURL:url
470 alreadyBookmarked:(already_bookmarked ? YES : NO)]; 470 alreadyBookmarked:(already_bookmarked ? YES : NO)];
471 } 471 }
472 472
473 void BrowserWindowCocoa::ShowChromeToMobileBubble() { 473 void BrowserWindowCocoa::ShowChromeToMobileBubble() {
474 [controller_ showChromeToMobileBubble]; 474 [controller_ showChromeToMobileBubble];
475 } 475 }
476 476
477 #if defined(ENABLE_ONE_CLICK_SIGNIN) 477 #if defined(ENABLE_ONE_CLICK_SIGNIN)
478 void BrowserWindowCocoa::ShowOneClickSigninBubble( 478 void BrowserWindowCocoa::ShowOneClickSigninBubble(
479 const StartSyncCallback& start_sync_callback) { 479 OneClickSigninBubbleType type,
480 const StartSyncCallback& start_sync_callback) {
480 OneClickSigninBubbleController* bubble_controller = 481 OneClickSigninBubbleController* bubble_controller =
481 [[OneClickSigninBubbleController alloc] 482 [[OneClickSigninBubbleController alloc]
482 initWithBrowserWindowController:cocoa_controller() 483 initWithBrowserWindowController:cocoa_controller()
483 start_sync_callback:start_sync_callback]; 484 start_sync_callback:start_sync_callback];
484 [bubble_controller showWindow:nil]; 485 [bubble_controller showWindow:nil];
485 } 486 }
486 #endif 487 #endif
487 488
488 bool BrowserWindowCocoa::IsDownloadShelfVisible() const { 489 bool BrowserWindowCocoa::IsDownloadShelfVisible() const {
489 return [controller_ isDownloadShelfVisible] != NO; 490 return [controller_ isDownloadShelfVisible] != NO;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 PasswordGenerationBubbleController* controller = 690 PasswordGenerationBubbleController* controller =
690 [[PasswordGenerationBubbleController alloc] 691 [[PasswordGenerationBubbleController alloc]
691 initWithWindow:browser_->window()->GetNativeWindow() 692 initWithWindow:browser_->window()->GetNativeWindow()
692 anchoredAt:point 693 anchoredAt:point
693 renderViewHost:web_contents->GetRenderViewHost() 694 renderViewHost:web_contents->GetRenderViewHost()
694 passwordManager:PasswordManager::FromWebContents(web_contents) 695 passwordManager:PasswordManager::FromWebContents(web_contents)
695 usingGenerator:password_generator 696 usingGenerator:password_generator
696 forForm:form]; 697 forForm:form];
697 [controller showWindow:nil]; 698 [controller showWindow:nil];
698 } 699 }
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