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

Unified Diff: chrome/browser/ui/gtk/one_click_signin_dialog_gtk.h

Issue 9874006: [Sync] [GTK] Add GTK version of the one-click signin dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Exclude ChromeOS 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
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/ui/gtk/one_click_signin_dialog_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/one_click_signin_dialog_gtk.h
diff --git a/chrome/browser/ui/gtk/one_click_signin_dialog_gtk.h b/chrome/browser/ui/gtk/one_click_signin_dialog_gtk.h
new file mode 100644
index 0000000000000000000000000000000000000000..16759d549b4fbd69a1f15164d842f1be70ca47bb
--- /dev/null
+++ b/chrome/browser/ui/gtk/one_click_signin_dialog_gtk.h
@@ -0,0 +1,43 @@
+// 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_GTK_ONE_CLICK_SIGNIN_DIALOG_GTK_H_
+#define CHROME_BROWSER_UI_GTK_ONE_CLICK_SIGNIN_DIALOG_GTK_H_
+#pragma once
+
+#include "chrome/browser/ui/sync/one_click_signin_dialog.h"
tfarina 2012/03/30 21:45:17 nit: hum? this should be sorted with the other inc
+
+#include "base/basictypes.h"
+#include "base/callback.h"
tfarina 2012/03/30 21:45:17 nit: can't you forward declare this because of |ac
+#include "ui/base/gtk/gtk_signal.h"
+
+typedef struct _GtkWidget GtkWidget;
+typedef struct _GtkWindow GtkWindow;
+
+// Displays the one-click signin confirmation dialog (as a
+// window-modal dialog) and starts one-click signin if the user
+// accepts.
+class OneClickSigninDialogGtk {
+ public:
+ // Deletes self on close. The given callback will be called if the
+ // user confirms the dialog.
+ OneClickSigninDialogGtk(GtkWindow* parent_window,
+ const OneClickAcceptCallback& accept_callback);
+
+ void SendResponseForTest(int response_id);
+ void SetUseDefaultSettingsForTest(bool use_default_settings);
+
+ private:
+ ~OneClickSigninDialogGtk();
+
+ CHROMEGTK_CALLBACK_1(OneClickSigninDialogGtk, void, OnResponse, int);
+
+ GtkWidget* dialog_;
+ GtkWidget* use_default_settings_checkbox_;
+ const OneClickAcceptCallback accept_callback_;
+
+ DISALLOW_COPY_AND_ASSIGN(OneClickSigninDialogGtk);
+};
+
+#endif // CHROME_BROWSER_UI_GTK_ONE_CLICK_SIGNIN_DIALOG_GTK_H_
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/ui/gtk/one_click_signin_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698