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_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 class GetFontListFunction : public AsyncExtensionFunction { | 23 class GetFontListFunction : public AsyncExtensionFunction { |
24 public: | 24 public: |
25 virtual bool RunImpl() OVERRIDE; | 25 virtual bool RunImpl() OVERRIDE; |
26 DECLARE_EXTENSION_FUNCTION_NAME("experimental.fontSettings.getFontList") | 26 DECLARE_EXTENSION_FUNCTION_NAME("experimental.fontSettings.getFontList") |
27 | 27 |
28 private: | 28 private: |
29 void FontListHasLoaded(scoped_ptr<base::ListValue> list); | 29 void FontListHasLoaded(scoped_ptr<base::ListValue> list); |
30 bool CopyFontsToResult(base::ListValue* fonts); | 30 bool CopyFontsToResult(base::ListValue* fonts); |
31 }; | 31 }; |
32 | 32 |
| 33 class GetDefaultFontSizeFunction : public SyncExtensionFunction { |
| 34 public: |
| 35 virtual bool RunImpl() OVERRIDE; |
| 36 DECLARE_EXTENSION_FUNCTION_NAME( |
| 37 "experimental.fontSettings.getDefaultFontSize") |
| 38 }; |
| 39 |
| 40 class SetDefaultFontSizeFunction : public SyncExtensionFunction { |
| 41 public: |
| 42 virtual bool RunImpl() OVERRIDE; |
| 43 DECLARE_EXTENSION_FUNCTION_NAME( |
| 44 "experimental.fontSettings.setDefaultFontSize") |
| 45 }; |
| 46 |
33 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ | 47 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ |
OLD | NEW |