Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Side by Side Diff: chrome/browser/extensions/extension_font_settings_api.h

Issue 9576001: Add getFontList() to Font Settings Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_font_settings_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 class GetFontNameFunction : public SyncExtensionFunction { 11 class GetFontNameFunction : public SyncExtensionFunction {
12 public: 12 public:
13 virtual bool RunImpl() OVERRIDE; 13 virtual bool RunImpl() OVERRIDE;
14 DECLARE_EXTENSION_FUNCTION_NAME("experimental.fontSettings.getFontName") 14 DECLARE_EXTENSION_FUNCTION_NAME("experimental.fontSettings.getFontName")
15 }; 15 };
16 16
17 class SetFontNameFunction : public SyncExtensionFunction { 17 class SetFontNameFunction : public SyncExtensionFunction {
18 public: 18 public:
19 virtual bool RunImpl() OVERRIDE; 19 virtual bool RunImpl() OVERRIDE;
20 DECLARE_EXTENSION_FUNCTION_NAME("experimental.fontSettings.setFontName") 20 DECLARE_EXTENSION_FUNCTION_NAME("experimental.fontSettings.setFontName")
21 }; 21 };
22 22
23 class GetFontListFunction : public AsyncExtensionFunction {
24 public:
25 virtual bool RunImpl() OVERRIDE;
26 DECLARE_EXTENSION_FUNCTION_NAME("experimental.fontSettings.getFontList")
27
28 private:
29 void FontListHasLoaded(scoped_ptr<base::ListValue> list);
30 bool CopyFontsToResult(base::ListValue* fonts);
31 };
32
23 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__ 33 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FONT_SETTINGS_API_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_font_settings_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698