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

Side by Side Diff: chrome/browser/dom_ui/options/font_settings_handler.h

Issue 6155008: DOMUI: Implement the new Fonts and Encoding page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix 3. Created 9 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
1 // Copyright (c) 2010 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/dom_ui/options/options_ui.h"
10 #include "chrome/browser/prefs/pref_member.h" 10 #include "chrome/browser/prefs/pref_member.h"
11 11
12 // Font settings overlay page UI handler. 12 // Font settings overlay page UI handler.
13 class FontSettingsHandler : public OptionsPageUIHandler { 13 class FontSettingsHandler : public OptionsPageUIHandler {
14 public: 14 public:
15 FontSettingsHandler(); 15 FontSettingsHandler();
16 virtual ~FontSettingsHandler(); 16 virtual ~FontSettingsHandler();
17 17
18 // OptionsUIHandler implementation. 18 // OptionsUIHandler implementation.
19 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 19 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
20 virtual void Initialize(); 20 virtual void Initialize();
21 21
22 // DOMMessageHandler implementation. 22 // DOMMessageHandler implementation.
23 virtual DOMMessageHandler* Attach(DOMUI* dom_ui); 23 virtual DOMMessageHandler* Attach(DOMUI* dom_ui);
24 24
25 // NotificationObserver implementation. 25 // NotificationObserver implementation.
26 virtual void Observe(NotificationType type, 26 virtual void Observe(NotificationType type,
27 const NotificationSource& source, 27 const NotificationSource& source,
28 const NotificationDetails& details); 28 const NotificationDetails& details);
29 29
30 private: 30 private:
31 void SetupSerifFontPreview(); 31 void SetupSerifFontSample();
32 void SetupSansSerifFontPreview(); 32 void SetupFixedFontSample();
33 void SetupFixedFontPreview(); 33 void SetupMinimumFontSample();
34 34
35 StringPrefMember serif_font_; 35 StringPrefMember serif_font_;
36 StringPrefMember sans_serif_font_;
37 StringPrefMember fixed_font_; 36 StringPrefMember fixed_font_;
38 IntegerPrefMember default_font_size_; 37 IntegerPrefMember default_font_size_;
39 IntegerPrefMember default_fixed_font_size_; 38 IntegerPrefMember default_fixed_font_size_;
39 IntegerPrefMember minimum_font_size_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler); 41 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler);
42 }; 42 };
43 43
44 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_FONT_SETTINGS_HANDLER_H_ 44 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_FONT_SETTINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_ui/options/font_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698