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

Side by Side Diff: chrome/browser/sync/sync_setup_wizard.h

Issue 276072: The login dialog was being opened with the main browser window as a parent in... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 2 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_
6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ 6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "app/gfx/native_widget_types.h"
9 10
10 #if defined(OS_LINUX) 11 #if defined(OS_LINUX)
11 typedef struct _GtkWidget GtkWidget; 12 typedef struct _GtkWidget GtkWidget;
12 typedef struct _GtkWindow GtkWindow; 13 typedef struct _GtkWindow GtkWindow;
13 #else 14 #else
14 class SyncSetupFlowContainer; 15 class SyncSetupFlowContainer;
15 #endif 16 #endif
16 17
17 class ProfileSyncService; 18 class ProfileSyncService;
18 19
(...skipping 13 matching lines...) Expand all
32 FATAL_ERROR, 33 FATAL_ERROR,
33 // A final state for when setup completes and it is possible it is the 34 // A final state for when setup completes and it is possible it is the
34 // user's first time (globally speaking) as the cloud doesn't have any 35 // user's first time (globally speaking) as the cloud doesn't have any
35 // bookmarks. We show additional info in this case to explain setting up 36 // bookmarks. We show additional info in this case to explain setting up
36 // more computers. 37 // more computers.
37 DONE_FIRST_TIME, 38 DONE_FIRST_TIME,
38 // A catch-all done case for any setup process. 39 // A catch-all done case for any setup process.
39 DONE 40 DONE
40 }; 41 };
41 42
43 class WizardParentDelegate {
tim (not reviewing) 2009/10/29 21:58:44 I know I suggested going this route with the deleg
44 gfx::NativeWindow GetWizardParent();
tim (not reviewing) 2009/10/29 21:58:44 <stale comment after prev suggestion> hmm.. you do
45 };
46
42 explicit SyncSetupWizard(ProfileSyncService* service); 47 explicit SyncSetupWizard(ProfileSyncService* service);
43 ~SyncSetupWizard(); 48 ~SyncSetupWizard();
44 49
45 // Advances the wizard to the specified state if possible, or opens a 50 // Advances the wizard to the specified state if possible, or opens a
46 // new dialog starting at |advance_state|. If the wizard has never ran 51 // new dialog starting at |advance_state|. If the wizard has never ran
47 // through to completion, it will always attempt to do so. Otherwise, e.g 52 // through to completion, it will always attempt to do so. Otherwise, e.g
48 // for a transient auth failure, it will just run as far as is necessary 53 // for a transient auth failure, it will just run as far as is necessary
49 // based on |advance_state| (so for auth failure, up to GAIA_SUCCESS). 54 // based on |advance_state| (so for auth failure, up to GAIA_SUCCESS).
50 void Step(State advance_state); 55 void Step(State advance_state);
51 56
(...skipping 21 matching lines...) Expand all
73 bool visible_; 78 bool visible_;
74 #else 79 #else
75 SyncSetupFlowContainer* flow_container_; 80 SyncSetupFlowContainer* flow_container_;
76 #endif 81 #endif
77 82
78 DISALLOW_COPY_AND_ASSIGN(SyncSetupWizard); 83 DISALLOW_COPY_AND_ASSIGN(SyncSetupWizard);
79 }; 84 };
80 85
81 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ 86 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_
82 87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698