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

Unified Diff: chrome/browser/ui/views/sync/one_click_signin_bubble_view.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/views/sync/one_click_signin_bubble_view.h
diff --git a/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h b/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h
index fe01158e51092d4ae7c40c3522bb74660997530b..53abb0f595f161520079331ebbc1a4ffcf69c7ec 100644
--- a/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h
+++ b/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h
@@ -7,13 +7,13 @@
#pragma once
#include "base/basictypes.h"
+#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/string16.h"
#include "ui/views/bubble/bubble_delegate.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/link_listener.h"
-class Browser;
class MessageLoop;
namespace views {
@@ -30,7 +30,9 @@ class OneClickSigninBubbleView : public views::BubbleDelegateView,
// Show the one-click signin bubble if not already showing. The bubble
// will be placed visually beneath |anchor_view|. The |browser| is used
// to open links.
- static void ShowBubble(views::View* anchor_view, Browser* browser);
+ static void ShowBubble(views::View* anchor_view,
+ const base::Closure& learn_more_callback,
+ const base::Closure& advanced_callback);
static bool IsShowing();
@@ -50,7 +52,9 @@ class OneClickSigninBubbleView : public views::BubbleDelegateView,
private:
// Creates a BookmarkBubbleView.
- OneClickSigninBubbleView(views::View* anchor_view, Browser* browser);
+ OneClickSigninBubbleView(views::View* anchor_view,
+ const base::Closure& learn_more_callback,
+ const base::Closure& advanced_callback);
virtual ~OneClickSigninBubbleView();
@@ -83,8 +87,9 @@ class OneClickSigninBubbleView : public views::BubbleDelegateView,
// Button to close the window.
views::TextButton* close_button_;
- // The browser that contains this bubble.
- Browser* browser_;
+ // The callbacks for the links.
+ base::Closure learn_more_callback_;
+ base::Closure advanced_callback_;
// A message loop used only with unit tests.
MessageLoop* message_loop_for_testing_;
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698