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

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

Issue 9836036: Add getDefaultFontSize and setDefaultFontSize to Font Settings Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 8 years, 8 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
(...skipping 12 matching lines...) Expand all
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__
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