| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |