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

Side by Side Diff: chrome/browser/extensions/extension_function_dispatcher.cc

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
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 #include "chrome/browser/extensions/extension_function_dispatcher.h" 5 #include "chrome/browser/extensions/extension_function_dispatcher.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/json/json_string_value_serializer.h" 9 #include "base/json/json_string_value_serializer.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 RegisterFunction<extensions::ClearSettingsFunction>(); 449 RegisterFunction<extensions::ClearSettingsFunction>();
450 RegisterFunction<extensions::GetBytesInUseSettingsFunction>(); 450 RegisterFunction<extensions::GetBytesInUseSettingsFunction>();
451 451
452 // Content settings. 452 // Content settings.
453 RegisterFunction<GetResourceIdentifiersFunction>(); 453 RegisterFunction<GetResourceIdentifiersFunction>();
454 RegisterFunction<ClearContentSettingsFunction>(); 454 RegisterFunction<ClearContentSettingsFunction>();
455 RegisterFunction<GetContentSettingFunction>(); 455 RegisterFunction<GetContentSettingFunction>();
456 RegisterFunction<SetContentSettingFunction>(); 456 RegisterFunction<SetContentSettingFunction>();
457 457
458 // Font settings. 458 // Font settings.
459 RegisterFunction<GetFontListFunction>();
459 RegisterFunction<GetFontNameFunction>(); 460 RegisterFunction<GetFontNameFunction>();
460 RegisterFunction<SetFontNameFunction>(); 461 RegisterFunction<SetFontNameFunction>();
461 462
462 // ChromeAuth settings. 463 // ChromeAuth settings.
463 RegisterFunction<SetCloudPrintCredentialsFunction>(); 464 RegisterFunction<SetCloudPrintCredentialsFunction>();
464 465
465 // Experimental App API. 466 // Experimental App API.
466 RegisterFunction<AppNotifyFunction>(); 467 RegisterFunction<AppNotifyFunction>();
467 RegisterFunction<AppClearAllNotificationsFunction>(); 468 RegisterFunction<AppClearAllNotificationsFunction>();
468 469
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 return function; 788 return function;
788 } 789 }
789 790
790 // static 791 // static
791 void ExtensionFunctionDispatcher::SendAccessDenied( 792 void ExtensionFunctionDispatcher::SendAccessDenied(
792 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { 793 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) {
793 ipc_sender->Send(new ExtensionMsg_Response( 794 ipc_sender->Send(new ExtensionMsg_Response(
794 routing_id, request_id, false, std::string(), 795 routing_id, request_id, false, std::string(),
795 "Access to extension API denied.")); 796 "Access to extension API denied."));
796 } 797 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_font_settings_api.cc ('k') | chrome/common/extensions/api/experimental.fonts.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698