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

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

Issue 7193031: Move UI specific implementation from ProfileSyncService to SyncSetupFlowHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void Step(State advance_state); 60 void Step(State advance_state);
61 61
62 // Whether or not a dialog is currently showing. Useful to determine 62 // Whether or not a dialog is currently showing. Useful to determine
63 // if various buttons in the UI should be enabled or disabled. 63 // if various buttons in the UI should be enabled or disabled.
64 bool IsVisible() const; 64 bool IsVisible() const;
65 65
66 // Focus the dialog if it is already open. Does nothing if the dialog is 66 // Focus the dialog if it is already open. Does nothing if the dialog is
67 // not visible. 67 // not visible.
68 void Focus(); 68 void Focus();
69 69
70 // Show the sync setup tab.
71 void ShowSyncSetup();
72
70 // Attaches |handler| to the flow contained in |flow_container_|. Returns NULL 73 // Attaches |handler| to the flow contained in |flow_container_|. Returns NULL
71 // if the flow does not exist or if an existing handler is already attached to 74 // if the flow does not exist or if an existing handler is already attached to
72 // the flow. 75 // the flow.
73 SyncSetupFlow* AttachSyncSetupHandler(SyncSetupFlowHandler* handler); 76 SyncSetupFlow* AttachSyncSetupHandler(SyncSetupFlowHandler* handler);
74 77
75 private: 78 private:
76 ProfileSyncService* service_; 79 ProfileSyncService* service_;
77 80
78 SyncSetupFlowContainer* flow_container_; 81 SyncSetupFlowContainer* flow_container_;
79 82
80 DISALLOW_COPY_AND_ASSIGN(SyncSetupWizard); 83 DISALLOW_COPY_AND_ASSIGN(SyncSetupWizard);
81 }; 84 };
82 85
83 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_ 86 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_WIZARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698