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

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

Issue 8604005: Add OVERRIDE to chrome/browser/ui/webui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/options_ui.h" 10 #include "chrome/browser/ui/webui/options/options_ui.h"
11 #include "content/browser/font_list_async.h" 11 #include "content/browser/font_list_async.h"
12 12
13 // Font settings overlay page UI handler. 13 // Font settings overlay page UI handler.
14 class FontSettingsHandler : public OptionsPageUIHandler { 14 class FontSettingsHandler : public OptionsPageUIHandler {
15 public: 15 public:
16 FontSettingsHandler(); 16 FontSettingsHandler();
17 virtual ~FontSettingsHandler(); 17 virtual ~FontSettingsHandler();
18 18
19 // OptionsPageUIHandler implementation. 19 // OptionsPageUIHandler implementation.
20 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 20 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
21 virtual void Initialize(); 21 virtual void Initialize() OVERRIDE;
22 22
23 // WebUIMessageHandler implementation. 23 // WebUIMessageHandler implementation.
24 virtual WebUIMessageHandler* Attach(WebUI* web_ui); 24 virtual WebUIMessageHandler* Attach(WebUI* web_ui) OVERRIDE;
25 virtual void RegisterMessages(); 25 virtual void RegisterMessages() OVERRIDE;
26 26
27 // content::NotificationObserver implementation. 27 // content::NotificationObserver implementation.
28 virtual void Observe(int type, 28 virtual void Observe(int type,
29 const content::NotificationSource& source, 29 const content::NotificationSource& source,
30 const content::NotificationDetails& details); 30 const content::NotificationDetails& details) OVERRIDE;
31 31
32 private: 32 private:
33 void HandleFetchFontsData(const ListValue* args); 33 void HandleFetchFontsData(const ListValue* args);
34 34
35 void FontsListHasLoaded(scoped_refptr<content::FontListResult> list); 35 void FontsListHasLoaded(scoped_refptr<content::FontListResult> list);
36 36
37 void SetUpStandardFontSample(); 37 void SetUpStandardFontSample();
38 void SetUpSerifFontSample(); 38 void SetUpSerifFontSample();
39 void SetUpSansSerifFontSample(); 39 void SetUpSansSerifFontSample();
40 void SetUpFixedFontSample(); 40 void SetUpFixedFontSample();
41 void SetUpMinimumFontSample(); 41 void SetUpMinimumFontSample();
42 42
43 StringPrefMember standard_font_; 43 StringPrefMember standard_font_;
44 StringPrefMember serif_font_; 44 StringPrefMember serif_font_;
45 StringPrefMember sans_serif_font_; 45 StringPrefMember sans_serif_font_;
46 StringPrefMember fixed_font_; 46 StringPrefMember fixed_font_;
47 StringPrefMember font_encoding_; 47 StringPrefMember font_encoding_;
48 IntegerPrefMember default_font_size_; 48 IntegerPrefMember default_font_size_;
49 IntegerPrefMember default_fixed_font_size_; 49 IntegerPrefMember default_fixed_font_size_;
50 IntegerPrefMember minimum_font_size_; 50 IntegerPrefMember minimum_font_size_;
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/webui/options/core_options_handler.h ('k') | chrome/browser/ui/webui/options/handler_options_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698