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

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

Issue 2880001: HTML sync setup UI. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 6 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
« no previous file with comments | « chrome/browser/sync/sync_setup_flow.cc ('k') | chrome/browser/sync/sync_setup_wizard.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 class SyncSetupFlowContainer; 10 class SyncSetupFlowContainer;
11 11
12 class ProfileSyncService; 12 class ProfileSyncService;
13 13
14 class SyncSetupWizard { 14 class SyncSetupWizard {
15 public: 15 public:
16 enum State { 16 enum State {
17 // Show the Google Account login UI. 17 // Show the Google Account login UI.
18 GAIA_LOGIN = 0, 18 GAIA_LOGIN = 0,
19 // A login attempt succeeded. Depending on initial conditions, this may 19 // A login attempt succeeded. This will wait for an explicit transition
20 // cause a transition to DONE, or to wait for an explicit transition (via 20 // (via Step) to the next state.
21 // Step) to the next state.
22 GAIA_SUCCESS, 21 GAIA_SUCCESS,
22 // Show the screen that lets you click either "Keep everything synced" or
23 // "Choose which data types to sync", and checkboxes for each data type.
24 CHOOSE_DATA_TYPES,
25 // Show the screen that lets you create a passphrase (if you've never set
26 // one up before).
27 CREATE_PASSPHRASE,
28 // Show the screen that lets you enter the passphrase (if you've set one up
29 // on another machine).
30 ENTER_PASSPHRASE,
31 // Show the screen that lets you reset your passphrase (if you forgot it).
32 RESET_PASSPHRASE,
23 // The panic switch. Something went terribly wrong during setup and we 33 // The panic switch. Something went terribly wrong during setup and we
24 // can't recover. 34 // can't recover.
25 FATAL_ERROR, 35 FATAL_ERROR,
26 // A final state for when setup completes and it is possible it is the 36 // A final state for when setup completes and it is possible it is the
27 // user's first time (globally speaking) as the cloud doesn't have any 37 // user's first time (globally speaking) as the cloud doesn't have any
28 // bookmarks. We show additional info in this case to explain setting up 38 // bookmarks. We show additional info in this case to explain setting up
29 // more computers. 39 // more computers.
30 DONE_FIRST_TIME, 40 DONE_FIRST_TIME,
31 // A catch-all done case for any setup process. 41 // A catch-all done case for any setup process.
32 DONE 42 DONE
(...skipping 22 matching lines...) Expand all
55 // gaia credentials in the event of a steady-state auth failure, this is 65 // gaia credentials in the event of a steady-state auth failure, this is
56 // a "discrete" run (as in not a continuous wizard flow). This returns 66 // a "discrete" run (as in not a continuous wizard flow). This returns
57 // the end state to pass to Run for a given |start_state|. 67 // the end state to pass to Run for a given |start_state|.
58 static State GetEndStateForDiscreteRun(State start_state); 68 static State GetEndStateForDiscreteRun(State start_state);
59 69
60 // Helper to return whether |state| warrants starting a new flow. 70 // Helper to return whether |state| warrants starting a new flow.
61 static bool IsTerminalState(State state); 71 static bool IsTerminalState(State state);
62 72
63 ProfileSyncService* service_; 73 ProfileSyncService* service_;
64 74
65 // The use of ShowHtmlDialog and SyncSetupFlowContainer is disabled on Linux
66 // until BrowserShowHtmlDialog() is implemented.
67 // See: http://code.google.com/p/chromium/issues/detail?id=25260
68 SyncSetupFlowContainer* flow_container_; 75 SyncSetupFlowContainer* flow_container_;
69 76
70 DISALLOW_COPY_AND_ASSIGN(SyncSetupWizard); 77 DISALLOW_COPY_AND_ASSIGN(SyncSetupWizard);
71 }; 78 };
72 79
73 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ 80 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_setup_flow.cc ('k') | chrome/browser/sync/sync_setup_wizard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698