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

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: Fix bot issues 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
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 (after syncing
19 // has started). 19 // has started).
20 @interface OneClickSigninBubbleController : BaseBubbleController { 20 @interface OneClickSigninBubbleController : BaseBubbleController {
21 scoped_nsobject<OneClickSigninViewController> viewController_; 21 scoped_nsobject<OneClickSigninViewController> viewController_;
22 @private
23 IBOutlet NSTextField* messageTextField_;
22 } 24 }
23 25
24 @property(readonly, nonatomic) OneClickSigninViewController* viewController; 26 @property(readonly, nonatomic) OneClickSigninViewController* viewController;
25 27
26 // Initializes with a browser window controller, under whose wrench 28 // Initializes with a browser window controller, under whose wrench
27 // menu this bubble will be displayed, and callbacks which are called 29 // menu this bubble will be displayed, and callbacks which are called
28 // if the user clicks the corresponding link. 30 // if the user clicks the corresponding link.
29 // 31 //
30 // The bubble is not automatically displayed; call showWindow:id to 32 // The bubble is not automatically displayed; call showWindow:id to
31 // display. The bubble is auto-released on close. 33 // display. The bubble is auto-released on close.
32 - (id)initWithBrowserWindowController:(BrowserWindowController*)controller 34 - (id)initWithBrowserWindowController:(BrowserWindowController*)controller
35 webContents:(content::WebContents*)webContents
36 errorMessage:(const string16&)errorMessage
Alexei Svitkine (slow) 2013/04/19 19:54:15 Please document the parameters, particularly |erro
noms (inactive) 2013/04/22 15:28:07 Done.
33 callback:(const BrowserWindow::StartSyncCallback&) 37 callback:(const BrowserWindow::StartSyncCallback&)
34 syncCallback; 38 syncCallback;
35 39
36 @end 40 @end
37 41
38 #endif // CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_ 42 #endif // CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698