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_ |