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_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "chrome/browser/browser_signin.h" | 10 #include "chrome/browser/browser_signin.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // ProfileSyncServiceObserver implementation. | 39 // ProfileSyncServiceObserver implementation. |
40 virtual void OnStateChanged(); | 40 virtual void OnStateChanged(); |
41 | 41 |
42 // BrowserSignin::SigninDelegate implementation. | 42 // BrowserSignin::SigninDelegate implementation. |
43 virtual void OnLoginSuccess(); | 43 virtual void OnLoginSuccess(); |
44 virtual void OnLoginFailure(const GoogleServiceAuthError& error); | 44 virtual void OnLoginFailure(const GoogleServiceAuthError& error); |
45 | 45 |
46 private: | 46 private: |
47 void ObserveThemeChanged(); | 47 void ObserveThemeChanged(); |
48 void ShowSyncActionDialog(const ListValue* args); | |
49 void ShowSyncLoginDialog(const ListValue* args); | |
50 void ShowCustomizeSyncDialog(const ListValue* args); | |
51 void ThemesReset(const ListValue* args); | 48 void ThemesReset(const ListValue* args); |
52 #if defined(TOOLKIT_GTK) | 49 #if defined(TOOLKIT_GTK) |
53 void ThemesSetGTK(const ListValue* args); | 50 void ThemesSetGTK(const ListValue* args); |
54 #endif | 51 #endif |
55 | 52 |
56 #if defined(OS_CHROMEOS) | 53 #if defined(OS_CHROMEOS) |
57 void LoadAccountPicture(const ListValue* args); | 54 void LoadAccountPicture(const ListValue* args); |
58 NotificationRegistrar registrar_; | 55 NotificationRegistrar registrar_; |
59 #endif | 56 #endif |
60 | 57 |
61 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; | 58 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; |
62 | 59 |
63 // True if the multiprofiles switch is enabled. | 60 // True if the multiprofiles switch is enabled. |
64 bool multiprofile_; | 61 bool multiprofile_; |
65 | 62 |
66 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler); | 63 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler); |
67 }; | 64 }; |
68 | 65 |
69 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ | 66 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ |
OLD | NEW |