OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SETTINGS_FONT_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_FONT_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_FONT_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_FONT_HANDLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 namespace extensions { | 25 namespace extensions { |
26 class Extension; | 26 class Extension; |
27 class ExtensionRegistry; | 27 class ExtensionRegistry; |
28 } | 28 } |
29 | 29 |
30 class Profile; | 30 class Profile; |
31 | 31 |
32 namespace settings { | 32 namespace settings { |
33 | 33 |
34 // Handle OS font list, font preference settings and character encoding. | 34 // Handle OS font list and font preference settings. |
35 class FontHandler : public SettingsPageUIHandler, | 35 class FontHandler : public SettingsPageUIHandler, |
36 public extensions::ExtensionRegistryObserver { | 36 public extensions::ExtensionRegistryObserver { |
37 public: | 37 public: |
38 explicit FontHandler(content::WebUI* webui); | 38 explicit FontHandler(content::WebUI* webui); |
39 ~FontHandler() override; | 39 ~FontHandler() override; |
40 | 40 |
41 // SettingsPageUIHandler implementation. | 41 // SettingsPageUIHandler implementation. |
42 void RegisterMessages() override; | 42 void RegisterMessages() override; |
43 void OnJavascriptAllowed() override; | 43 void OnJavascriptAllowed() override; |
44 void OnJavascriptDisallowed() override; | 44 void OnJavascriptDisallowed() override; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 Profile* profile_; // Weak pointer. | 77 Profile* profile_; // Weak pointer. |
78 | 78 |
79 base::WeakPtrFactory<FontHandler> weak_ptr_factory_; | 79 base::WeakPtrFactory<FontHandler> weak_ptr_factory_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(FontHandler); | 81 DISALLOW_COPY_AND_ASSIGN(FontHandler); |
82 }; | 82 }; |
83 | 83 |
84 } // namespace settings | 84 } // namespace settings |
85 | 85 |
86 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_FONT_HANDLER_H_ | 86 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_FONT_HANDLER_H_ |
OLD | NEW |