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

Side by Side Diff: chrome/browser/ui/webui/options2/personal_options_handler2.h

Issue 9181013: [uber page] Migrate remaining Personal options into Browser options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: kill, kill, kill! Created 8 years, 11 months 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_PERSONAL_OPTIONS_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_PERSONAL_OPTIONS_HANDLER2_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/values.h"
11 #include "chrome/browser/ui/webui/options2/options_ui2.h"
12 #if defined(OS_CHROMEOS)
13 #include "content/public/browser/notification_registrar.h"
14 #endif
15
16 namespace options2 {
17
18 // Chrome personal options page UI handler.
19 class PersonalOptionsHandler : public OptionsPageUIHandler {
20 public:
21 PersonalOptionsHandler();
22 virtual ~PersonalOptionsHandler();
23
24 // OptionsPageUIHandler implementation.
25 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
26 virtual void Initialize() OVERRIDE;
27
28 // WebUIMessageHandler implementation.
29 virtual void RegisterMessages() OVERRIDE;
30
31 // content::NotificationObserver implementation.
32 virtual void Observe(int type,
33 const content::NotificationSource& source,
34 const content::NotificationDetails& details) OVERRIDE;
35
36 private:
37 void ObserveThemeChanged();
38 void ThemesReset(const ListValue* args);
39 #if defined(TOOLKIT_GTK)
40 void ThemesSetGTK(const ListValue* args);
41 #endif
42
43 #if defined(OS_CHROMEOS)
44 void UpdateAccountPicture();
45 content::NotificationRegistrar registrar_;
46 #endif
47
48 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler);
49 };
50
51 } // namespace options2
52
53 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_PERSONAL_OPTIONS_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698