| OLD | NEW |
| 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_OPTIONS2_FONT_SETTINGS_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_HANDLER2_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_HANDLER2_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/prefs/pref_member.h" | 10 #include "chrome/browser/prefs/pref_member.h" |
| 11 #include "chrome/browser/ui/webui/options2/options_ui2.h" | 11 #include "chrome/browser/ui/webui/options2/options_ui2.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class ListValue; | 14 class ListValue; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace options2 { | 17 namespace options2 { |
| 18 | 18 |
| 19 // Font settings overlay page UI handler. | 19 // Font settings overlay page UI handler. |
| 20 class FontSettingsHandler : public OptionsPageUIHandler { | 20 class FontSettingsHandler : public OptionsPageUIHandler { |
| 21 public: | 21 public: |
| 22 FontSettingsHandler(); | 22 FontSettingsHandler(); |
| 23 virtual ~FontSettingsHandler(); | 23 virtual ~FontSettingsHandler(); |
| 24 | 24 |
| 25 // OptionsPageUIHandler implementation. | 25 // OptionsPageUIHandler implementation. |
| 26 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; | 26 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; |
| 27 virtual void Initialize() OVERRIDE; | 27 virtual void SendPageValues() OVERRIDE; |
| 28 | 28 |
| 29 // WebUIMessageHandler implementation. | 29 // WebUIMessageHandler implementation. |
| 30 virtual void RegisterMessages() OVERRIDE; | 30 virtual void RegisterMessages() OVERRIDE; |
| 31 | 31 |
| 32 // content::NotificationObserver implementation. | 32 // content::NotificationObserver implementation. |
| 33 virtual void Observe(int type, | 33 virtual void Observe(int type, |
| 34 const content::NotificationSource& source, | 34 const content::NotificationSource& source, |
| 35 const content::NotificationDetails& details) OVERRIDE; | 35 const content::NotificationDetails& details) OVERRIDE; |
| 36 | 36 |
| 37 private: | 37 private: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 53 IntegerPrefMember default_font_size_; | 53 IntegerPrefMember default_font_size_; |
| 54 IntegerPrefMember default_fixed_font_size_; | 54 IntegerPrefMember default_fixed_font_size_; |
| 55 IntegerPrefMember minimum_font_size_; | 55 IntegerPrefMember minimum_font_size_; |
| 56 | 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler); | 57 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace options2 | 60 } // namespace options2 |
| 61 | 61 |
| 62 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_HANDLER2_H_ | 62 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_FONT_SETTINGS_HANDLER2_H_ |
| OLD | NEW |