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

Side by Side Diff: chrome/browser/ui/gtk/one_click_signin_dialog_gtk.h

Issue 9964001: Revert 129762 - [Sync] [GTK] Add GTK version of the one-click signin dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_GTK_ONE_CLICK_SIGNIN_DIALOG_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_ONE_CLICK_SIGNIN_DIALOG_GTK_H_
7 #pragma once
8
9 #include "chrome/browser/ui/sync/one_click_signin_dialog.h"
10
11 #include "base/basictypes.h"
12 #include "base/callback.h"
13 #include "ui/base/gtk/gtk_signal.h"
14
15 typedef struct _GtkWidget GtkWidget;
16 typedef struct _GtkWindow GtkWindow;
17
18 // Displays the one-click signin confirmation dialog (as a
19 // window-modal dialog) and starts one-click signin if the user
20 // accepts.
21 class OneClickSigninDialogGtk {
22 public:
23 // Deletes self on close. The given callback will be called if the
24 // user confirms the dialog.
25 OneClickSigninDialogGtk(GtkWindow* parent_window,
26 const OneClickAcceptCallback& accept_callback);
27
28 void SendResponseForTest(int response_id);
29 void SetUseDefaultSettingsForTest(bool use_default_settings);
30
31 private:
32 ~OneClickSigninDialogGtk();
33
34 CHROMEGTK_CALLBACK_1(OneClickSigninDialogGtk, void, OnResponse, int);
35
36 GtkWidget* dialog_;
37 GtkWidget* use_default_settings_checkbox_;
38 const OneClickAcceptCallback accept_callback_;
39
40 DISALLOW_COPY_AND_ASSIGN(OneClickSigninDialogGtk);
41 };
42
43 #endif // CHROME_BROWSER_UI_GTK_ONE_CLICK_SIGNIN_DIALOG_GTK_H_
OLDNEW
« 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