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

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

Issue 6469067: WebUI: Move chrome/browser/dom_ui/options/ to chrome/browser/webui/options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing mac files Created 9 years, 10 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) 2011 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_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_
7 #pragma once
8
9 #include "chrome/browser/dom_ui/options/options_ui.h"
10 #include "chrome/browser/prefs/pref_member.h"
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
44 #endif // CHROME_BROWSER_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/webui/options/dom_options_util.cc ('k') | chrome/browser/webui/options/font_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698