OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 void GetLocalizedValues(base::DictionaryValue* localized_strings) override; | 36 void GetLocalizedValues(base::DictionaryValue* localized_strings) override; |
37 void InitializeHandler() override; | 37 void InitializeHandler() override; |
38 void InitializePage() override; | 38 void InitializePage() override; |
39 | 39 |
40 // WebUIMessageHandler implementation. | 40 // WebUIMessageHandler implementation. |
41 void RegisterMessages() override; | 41 void RegisterMessages() override; |
42 | 42 |
43 // ExtensionRegistryObserver implementation. | 43 // ExtensionRegistryObserver implementation. |
44 void OnExtensionLoaded(content::BrowserContext* browser_context, | 44 void OnExtensionLoaded(content::BrowserContext* browser_context, |
45 const extensions::Extension* extension) override; | 45 const extensions::Extension* extension) override; |
46 void OnExtensionUnloaded( | 46 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
47 content::BrowserContext* browser_context, | 47 const extensions::Extension* extension, |
48 const extensions::Extension* extension, | 48 extensions::UnloadedExtensionReason reason) override; |
49 extensions::UnloadedExtensionInfo::Reason reason) override; | |
50 | 49 |
51 private: | 50 private: |
52 void HandleFetchFontsData(const base::ListValue* args); | 51 void HandleFetchFontsData(const base::ListValue* args); |
53 | 52 |
54 void FontsListHasLoaded(std::unique_ptr<base::ListValue> list); | 53 void FontsListHasLoaded(std::unique_ptr<base::ListValue> list); |
55 | 54 |
56 void SetUpStandardFontSample(); | 55 void SetUpStandardFontSample(); |
57 void SetUpSerifFontSample(); | 56 void SetUpSerifFontSample(); |
58 void SetUpSansSerifFontSample(); | 57 void SetUpSansSerifFontSample(); |
59 void SetUpFixedFontSample(); | 58 void SetUpFixedFontSample(); |
(...skipping 23 matching lines...) Expand all Loading... |
83 extension_registry_observer_; | 82 extension_registry_observer_; |
84 | 83 |
85 base::WeakPtrFactory<FontSettingsHandler> weak_ptr_factory_; | 84 base::WeakPtrFactory<FontSettingsHandler> weak_ptr_factory_; |
86 | 85 |
87 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler); | 86 DISALLOW_COPY_AND_ASSIGN(FontSettingsHandler); |
88 }; | 87 }; |
89 | 88 |
90 } // namespace options | 89 } // namespace options |
91 | 90 |
92 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_ | 91 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_HANDLER_H_ |
OLD | NEW |