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 // Defines the classes to realize the Font Settings Extension API as specified | 5 // Defines the classes to realize the Font Settings Extension API as specified |
6 // in the extension API JSON. | 6 // in the extension API JSON. |
7 | 7 |
8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ |
9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ | 9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ |
10 #pragma once | |
11 | 10 |
12 #include <map> | 11 #include <map> |
13 #include <string> | 12 #include <string> |
14 #include <utility> | 13 #include <utility> |
15 | 14 |
16 #include "chrome/browser/extensions/extension_function.h" | 15 #include "chrome/browser/extensions/extension_function.h" |
17 #include "chrome/browser/prefs/pref_change_registrar.h" | 16 #include "chrome/browser/prefs/pref_change_registrar.h" |
18 | 17 |
19 // This class observes pref changed events on a profile and dispatches the | 18 // This class observes pref changed events on a profile and dispatches the |
20 // corresponding extension API events to extensions. | 19 // corresponding extension API events to extensions. |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 | 298 |
300 protected: | 299 protected: |
301 virtual ~SetMinimumFontSizeFunction() {} | 300 virtual ~SetMinimumFontSizeFunction() {} |
302 | 301 |
303 // SetFontPrefExtensionFunction: | 302 // SetFontPrefExtensionFunction: |
304 virtual const char* GetPrefName() OVERRIDE; | 303 virtual const char* GetPrefName() OVERRIDE; |
305 virtual const char* GetKey() OVERRIDE; | 304 virtual const char* GetKey() OVERRIDE; |
306 }; | 305 }; |
307 | 306 |
308 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ | 307 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ |
OLD | NEW |