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

Unified Diff: chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h

Issue 9863032: [Sync] [Mac] Implement one-click signin bubble for OS X (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address sky's comments Created 8 years, 9 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_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_
« 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