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

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

Issue 6602021: web-ui settings: Standard font setting now correlates to WebKit's standard fo... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase Created 9 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 "chrome/browser/prefs/pref_member.h" 9 #include "chrome/browser/prefs/pref_member.h"
10 #include "chrome/browser/ui/webui/options/font_settings_fonts_list_loader.h" 10 #include "chrome/browser/ui/webui/options/font_settings_fonts_list_loader.h"
(...skipping 18 matching lines...) Expand all
29 virtual void Observe(NotificationType type, 29 virtual void Observe(NotificationType type,
30 const NotificationSource& source, 30 const NotificationSource& source,
31 const NotificationDetails& details); 31 const NotificationDetails& details);
32 32
33 // FontSettingsFontsListLoader::Observer implementation. 33 // FontSettingsFontsListLoader::Observer implementation.
34 virtual void FontsListHasLoaded(); 34 virtual void FontsListHasLoaded();
35 35
36 private: 36 private:
37 void HandleFetchFontsData(const ListValue* args); 37 void HandleFetchFontsData(const ListValue* args);
38 38
39 void SetupSerifFontSample(); 39 void SetupStandardFontSample();
40 void SetupFixedFontSample(); 40 void SetupFixedFontSample();
41 void SetupMinimumFontSample(); 41 void SetupMinimumFontSample();
42 42
43 StringPrefMember serif_font_; 43 StringPrefMember standard_font_;
44 StringPrefMember fixed_font_; 44 StringPrefMember fixed_font_;
45 StringPrefMember font_encoding_; 45 StringPrefMember font_encoding_;
46 IntegerPrefMember default_font_size_; 46 IntegerPrefMember default_font_size_;
47 IntegerPrefMember default_fixed_font_size_; 47 IntegerPrefMember default_fixed_font_size_;
48 IntegerPrefMember minimum_font_size_; 48 IntegerPrefMember minimum_font_size_;
49 49
50 scoped_refptr<FontSettingsFontsListLoader> fonts_list_loader_; 50 scoped_refptr<FontSettingsFontsListLoader> fonts_list_loader_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler); 52 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler);
53 }; 53 };
54 54
55 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_ 55 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents_wrapper.cc ('k') | chrome/browser/ui/webui/options/font_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698