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_FONT_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_FONT_SETTINGS_HANDLER_H_ |
6 #define CHROME_BROWSER_DOM_UI_OPTIONS_FONT_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_FONT_SETTINGS_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/dom_ui/options/options_ui.h" | 9 #include "chrome/browser/webui/options/font_settings_handler.h" |
10 #include "chrome/browser/prefs/pref_member.h" | 10 // TODO(tfarina): remove this file once all includes have been updated. |
11 | |
12 // Font settings overlay page UI handler. | |
13 class FontSettingsHandler : public OptionsPageUIHandler { | |
14 public: | |
15 FontSettingsHandler(); | |
16 virtual ~FontSettingsHandler(); | |
17 | |
18 // OptionsUIHandler implementation. | |
19 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | |
20 virtual void Initialize(); | |
21 | |
22 // WebUIMessageHandler implementation. | |
23 virtual WebUIMessageHandler* Attach(WebUI* web_ui); | |
24 | |
25 // NotificationObserver implementation. | |
26 virtual void Observe(NotificationType type, | |
27 const NotificationSource& source, | |
28 const NotificationDetails& details); | |
29 | |
30 private: | |
31 void SetupSerifFontSample(); | |
32 void SetupFixedFontSample(); | |
33 void SetupMinimumFontSample(); | |
34 | |
35 StringPrefMember serif_font_; | |
36 StringPrefMember fixed_font_; | |
37 IntegerPrefMember default_font_size_; | |
38 IntegerPrefMember default_fixed_font_size_; | |
39 IntegerPrefMember minimum_font_size_; | |
40 | |
41 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler); | |
42 }; | |
43 | 11 |
44 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_FONT_SETTINGS_HANDLER_H_ | 12 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_FONT_SETTINGS_HANDLER_H_ |
OLD | NEW |