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

Side by Side Diff: chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h

Issue 13845022: Mac: Display a native bubble (instead of the JS one) after the web signin flow. (branched from http… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ntpBubble
Patch Set: Ditto Created 7 years, 7 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
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 #ifndef CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/scoped_nsobject.h" 11 #include "base/memory/scoped_nsobject.h"
12 #include "chrome/browser/ui/browser_window.h" 12 #include "chrome/browser/ui/browser_window.h"
13 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" 13 #import "chrome/browser/ui/cocoa/base_bubble_controller.h"
14 14
15 @class BrowserWindowController; 15 @class BrowserWindowController;
16 @class OneClickSigninViewController; 16 @class OneClickSigninViewController;
17 17
18 // Displays the one-click signin confirmation bubble (after syncing 18 // Displays the one-click signin confirmation bubble
19 // has started).
20 @interface OneClickSigninBubbleController : BaseBubbleController { 19 @interface OneClickSigninBubbleController : BaseBubbleController {
21 scoped_nsobject<OneClickSigninViewController> viewController_; 20 scoped_nsobject<OneClickSigninViewController> viewController_;
21 @private
22 IBOutlet NSTextField* messageTextField_;
22 } 23 }
23 24
24 @property(readonly, nonatomic) OneClickSigninViewController* viewController; 25 @property(readonly, nonatomic) OneClickSigninViewController* viewController;
25 26
26 // Initializes with a browser window controller, under whose wrench 27 // Initializes with a browser window |controller|, under whose wrench
27 // menu this bubble will be displayed, and callbacks which are called 28 // menu this bubble will be displayed, and callbacks which are called
28 // if the user clicks the corresponding link. 29 // if the user clicks the corresponding link. |errorMessage| is an
30 // alternate message that will be displayed in the case of an authentication
31 // error, and |syncCallback| is called to start sync. |webContents| is used
32 // to open the Learn More and Advanced links
29 // 33 //
30 // The bubble is not automatically displayed; call showWindow:id to 34 // The bubble is not automatically displayed; call showWindow:id to
31 // display. The bubble is auto-released on close. 35 // display. The bubble is auto-released on close.
32 - (id)initWithBrowserWindowController:(BrowserWindowController*)controller 36 - (id)initWithBrowserWindowController:(BrowserWindowController*)controller
37 webContents:(content::WebContents*)webContents
38 errorMessage:(NSString*)errorMessage
33 callback:(const BrowserWindow::StartSyncCallback&) 39 callback:(const BrowserWindow::StartSyncCallback&)
34 syncCallback; 40 syncCallback;
35 41
36 @end 42 @end
37 43
38 #endif // CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_ 44 #endif // CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/one_click_signin_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698