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

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

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Initialize -> InitializeHandler, SendPageValues -> InitializePage Created 8 years, 9 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
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_FONT_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/prefs/pref_member.h" 10 #include "chrome/browser/prefs/pref_member.h"
11 #include "chrome/browser/ui/webui/options/options_ui.h" 11 #include "chrome/browser/ui/webui/options/options_ui.h"
12 12
13 namespace base { 13 namespace base {
14 class ListValue; 14 class ListValue;
15 } 15 }
16 16
17 // Font settings overlay page UI handler. 17 // Font settings overlay page UI handler.
18 class FontSettingsHandler : public OptionsPageUIHandler { 18 class FontSettingsHandler : public OptionsPageUIHandler {
19 public: 19 public:
20 FontSettingsHandler(); 20 FontSettingsHandler();
21 virtual ~FontSettingsHandler(); 21 virtual ~FontSettingsHandler();
22 22
23 // OptionsPageUIHandler implementation. 23 // OptionsPageUIHandler implementation.
24 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; 24 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
25 virtual void Initialize() OVERRIDE; 25 virtual void InitializeHandler() OVERRIDE;
26 26
27 // WebUIMessageHandler implementation. 27 // WebUIMessageHandler implementation.
28 virtual void RegisterMessages() OVERRIDE; 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) OVERRIDE; 33 const content::NotificationDetails& details) OVERRIDE;
34 34
35 private: 35 private:
(...skipping 13 matching lines...) Expand all
49 StringPrefMember fixed_font_; 49 StringPrefMember fixed_font_;
50 StringPrefMember font_encoding_; 50 StringPrefMember font_encoding_;
51 IntegerPrefMember default_font_size_; 51 IntegerPrefMember default_font_size_;
52 IntegerPrefMember default_fixed_font_size_; 52 IntegerPrefMember default_fixed_font_size_;
53 IntegerPrefMember minimum_font_size_; 53 IntegerPrefMember minimum_font_size_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler); 55 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler);
56 }; 56 };
57 57
58 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_ 58 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698