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

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

Issue 9814030: get rid of old options pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes 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
(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_OPTIONS_FONT_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_
7 #pragma once
8
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/prefs/pref_member.h"
11 #include "chrome/browser/ui/webui/options/options_ui.h"
12
13 namespace base {
14 class ListValue;
15 }
16
17 // Font settings overlay page UI handler.
18 class FontSettingsHandler : public OptionsPageUIHandler {
19 public:
20 FontSettingsHandler();
21 virtual ~FontSettingsHandler();
22
23 // OptionsPageUIHandler implementation.
24 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
25 virtual void InitializeHandler() OVERRIDE;
26
27 // WebUIMessageHandler implementation.
28 virtual void RegisterMessages() OVERRIDE;
29
30 // content::NotificationObserver implementation.
31 virtual void Observe(int type,
32 const content::NotificationSource& source,
33 const content::NotificationDetails& details) OVERRIDE;
34
35 private:
36 void HandleFetchFontsData(const ListValue* args);
37
38 void FontsListHasLoaded(scoped_ptr<base::ListValue> list);
39
40 void SetUpStandardFontSample();
41 void SetUpSerifFontSample();
42 void SetUpSansSerifFontSample();
43 void SetUpFixedFontSample();
44 void SetUpMinimumFontSample();
45
46 StringPrefMember standard_font_;
47 StringPrefMember serif_font_;
48 StringPrefMember sans_serif_font_;
49 StringPrefMember fixed_font_;
50 StringPrefMember font_encoding_;
51 IntegerPrefMember default_font_size_;
52 IntegerPrefMember default_fixed_font_size_;
53 IntegerPrefMember minimum_font_size_;
54
55 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler);
56 };
57
58 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698