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

Side by Side Diff: chrome/browser/ui/webui/options/personal_options_handler.h

Issue 8604005: Add OVERRIDE to chrome/browser/ui/webui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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_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/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
11 #include "chrome/browser/ui/webui/options/options_ui.h" 11 #include "chrome/browser/ui/webui/options/options_ui.h"
12 #if defined(OS_CHROMEOS) 12 #if defined(OS_CHROMEOS)
13 #include "content/public/browser/notification_registrar.h" 13 #include "content/public/browser/notification_registrar.h"
14 #endif 14 #endif
15 15
16 // Chrome personal options page UI handler. 16 // Chrome personal options page UI handler.
17 class PersonalOptionsHandler : public OptionsPageUIHandler, 17 class PersonalOptionsHandler : public OptionsPageUIHandler,
18 public ProfileSyncServiceObserver { 18 public ProfileSyncServiceObserver {
19 public: 19 public:
20 PersonalOptionsHandler(); 20 PersonalOptionsHandler();
21 virtual ~PersonalOptionsHandler(); 21 virtual ~PersonalOptionsHandler();
22 22
23 // OptionsPageUIHandler implementation. 23 // OptionsPageUIHandler implementation.
24 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 24 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
25 virtual void Initialize(); 25 virtual void Initialize() OVERRIDE;
26 26
27 // WebUIMessageHandler implementation. 27 // WebUIMessageHandler implementation.
28 virtual void RegisterMessages(); 28 virtual void RegisterMessages() OVERRIDE;
29 29
30 // content::NotificationObserver implementation. 30 // content::NotificationObserver implementation.
31 virtual void Observe(int type, 31 virtual void Observe(int type,
32 const content::NotificationSource& source, 32 const content::NotificationSource& source,
33 const content::NotificationDetails& details); 33 const content::NotificationDetails& details) OVERRIDE;
34 34
35 // ProfileSyncServiceObserver implementation. 35 // ProfileSyncServiceObserver implementation.
36 virtual void OnStateChanged(); 36 virtual void OnStateChanged() OVERRIDE;
37 37
38 private: 38 private:
39 void ObserveThemeChanged(); 39 void ObserveThemeChanged();
40 void ThemesReset(const ListValue* args); 40 void ThemesReset(const ListValue* args);
41 #if defined(TOOLKIT_GTK) 41 #if defined(TOOLKIT_GTK)
42 void ThemesSetGTK(const ListValue* args); 42 void ThemesSetGTK(const ListValue* args);
43 #endif 43 #endif
44 44
45 #if defined(OS_CHROMEOS) 45 #if defined(OS_CHROMEOS)
46 void UpdateAccountPicture(); 46 void UpdateAccountPicture();
(...skipping 14 matching lines...) Expand all
61 // |args| is not used. 61 // |args| is not used.
62 void CreateProfile(const ListValue* args); 62 void CreateProfile(const ListValue* args);
63 63
64 // True if the multiprofiles switch is enabled. 64 // True if the multiprofiles switch is enabled.
65 bool multiprofile_; 65 bool multiprofile_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler); 67 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler);
68 }; 68 };
69 69
70 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ 70 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698