Index: chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h |
diff --git a/chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h b/chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0a0261b36464c3ec2c452936d4c4889f1733adaf |
--- /dev/null |
+++ b/chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h |
@@ -0,0 +1,49 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_DIALOG_CONTROLLER_H_ |
+#define CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_DIALOG_CONTROLLER_H_ |
+#pragma once |
+ |
+#import <Cocoa/Cocoa.h> |
+ |
+#include "base/callback.h" |
+#import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
+ |
+@class BrowserWindowController; |
+ |
+// Displays the one-click signin confirmation bubble (after syncing |
+// has started). |
+@interface OneClickSigninBubbleController : BaseBubbleController { |
+ @private |
+ IBOutlet NSTextField* messageField_; |
+ IBOutlet NSButton* learnMoreLink_; |
+ IBOutlet NSButton* advancedLink_; |
+ |
+ base::Closure learnMoreCallback_; |
+ base::Closure advancedCallback_; |
+} |
+ |
+// Initializes with a browser window controller, under whose wrench |
+// menu this bubble will be displayed, and callbacks which are called |
+// if the user clicks the corresponding link. |
+// |
+// The bubble is not automatically displayed; call showWindow:id to |
+// display. The bubble is auto-released on close. |
+- (id)initWithBrowserWindowController:(BrowserWindowController*)controller |
+ learnMoreCallback:(const base::Closure&)learnMoreCallback |
+ advancedCallback:(const base::Closure&)advancedCallback; |
+ |
+// Just closes the bubble. |
+- (IBAction)ok:(id)sender; |
+ |
+// Calls |learnMoreCallback_|. |
+- (IBAction)onClickLearnMoreLink:(id)sender; |
+ |
+// Calls |advancedCallback_|. |
+- (IBAction)onClickAdvancedLink:(id)sender; |
+ |
+@end |
+ |
+#endif // CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_DIALOG_CONTROLLER_H_ |