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