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

Unified Diff: chrome/browser/ui/cocoa/one_click_signin_view_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: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/one_click_signin_view_controller.h
diff --git a/chrome/browser/ui/cocoa/one_click_signin_view_controller.h b/chrome/browser/ui/cocoa/one_click_signin_view_controller.h
index c3d2ae76279f84e6ac9675d2447563b4cf4ddc67..9f15334fd494d6dd2be389917e0fb31a564bf55b 100644
--- a/chrome/browser/ui/cocoa/one_click_signin_view_controller.h
+++ b/chrome/browser/ui/cocoa/one_click_signin_view_controller.h
@@ -25,6 +25,9 @@ class WebContents;
IBOutlet NSButton* advancedLink_;
IBOutlet NSButton* closeButton_;
+ BOOL isSyncDialog_;
+ scoped_nsobject<NSString> errorMessage_;
+
// Text fields don't work as well with embedded links as text views, but
// text views cannot conveniently be created in IB. The xib file contains
// a text field |informativePlaceholderTextField_| that's replaced by this
@@ -35,10 +38,17 @@ class WebContents;
content::WebContents* webContents_;
}
+// Initializes the controller from a nib file, with an alternate |errorMessage|
+// that can be displayed in the case of an authentication error,
+// |syncCallback| is called to start sync if |isSyncDialog| is YES,
+// |webContents| is used to open the Learn More and Advanced links and
+// |callback| is called when the view is closing.
- (id)initWithNibName:(NSString*)nibName
webContents:(content::WebContents*)webContents
syncCallback:(const BrowserWindow::StartSyncCallback&)syncCallback
- closeCallback:(const base::Closure&)callback;
+ closeCallback:(const base::Closure&)callback
+ isSyncDialog:(BOOL)isSyncDialog
+ errorMessage:(NSString*)errorMessage;
// Called before the view is closed.
- (void)viewWillClose;

Powered by Google App Engine
This is Rietveld 408576698