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_DOM_UI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_DOM_UI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/browser_signin.h" | 9 #include "chrome/browser/browser_signin.h" |
10 #include "chrome/browser/dom_ui/options/options_ui.h" | 10 #include "chrome/browser/dom_ui/options/options_ui.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // ProfileSyncServiceObserver implementation. | 35 // ProfileSyncServiceObserver implementation. |
36 virtual void OnStateChanged(); | 36 virtual void OnStateChanged(); |
37 | 37 |
38 // BrowserSignin::SigninDelegate implementation. | 38 // BrowserSignin::SigninDelegate implementation. |
39 virtual void OnLoginSuccess(); | 39 virtual void OnLoginSuccess(); |
40 virtual void OnLoginFailure(const GoogleServiceAuthError& error); | 40 virtual void OnLoginFailure(const GoogleServiceAuthError& error); |
41 | 41 |
42 private: | 42 private: |
43 void ObserveThemeChanged(); | 43 void ObserveThemeChanged(); |
44 void ShowSyncLoginDialog(const ListValue* args); | 44 void ShowSyncLoginDialog(const ListValue* args); |
| 45 void ShowCustomizeSyncDialog(const ListValue* args); |
45 void ThemesReset(const ListValue* args); | 46 void ThemesReset(const ListValue* args); |
46 #if defined(TOOLKIT_GTK) | 47 #if defined(TOOLKIT_GTK) |
47 void ThemesSetGTK(const ListValue* args); | 48 void ThemesSetGTK(const ListValue* args); |
48 #endif | 49 #endif |
49 | 50 |
50 // Called when the user updates the set of enabled data types to sync. |args| | 51 // Called when the user updates the set of enabled data types to sync. |args| |
51 // is ignored. | 52 // is ignored. |
52 void OnPreferredDataTypesUpdated(const ListValue* args); | 53 void OnPreferredDataTypesUpdated(const ListValue* args); |
53 | 54 |
54 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; | 55 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; |
55 | 56 |
56 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler); | 57 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler); |
57 }; | 58 }; |
58 | 59 |
59 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ | 60 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ |
OLD | NEW |