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 // Font Settings Extension API implementation. | 5 // Font Settings Extension API implementation. |
6 | 6 |
7 #include "chrome/browser/extensions/extension_font_settings_api.h" | 7 #include "chrome/browser/extensions/extension_font_settings_api.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/extensions/extension_event_router.h" | |
16 #include "chrome/browser/extensions/extension_preference_helpers.h" | 15 #include "chrome/browser/extensions/extension_preference_helpers.h" |
17 #include "chrome/browser/extensions/extension_service.h" | 16 #include "chrome/browser/extensions/extension_service.h" |
18 #include "chrome/browser/prefs/pref_service.h" | 17 #include "chrome/browser/prefs/pref_service.h" |
19 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
21 #include "chrome/common/extensions/api/font_settings.h" | 20 #include "chrome/common/extensions/api/font_settings.h" |
22 #include "chrome/common/extensions/extension_error_utils.h" | 21 #include "chrome/common/extensions/extension_error_utils.h" |
23 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
24 #include "content/public/browser/font_list_async.h" | 23 #include "content/public/browser/font_list_async.h" |
25 #include "content/public/browser/notification_details.h" | 24 #include "content/public/browser/notification_details.h" |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 return kPixelSizeKey; | 474 return kPixelSizeKey; |
476 } | 475 } |
477 | 476 |
478 const char* SetMinimumFontSizeFunction::GetPrefName() { | 477 const char* SetMinimumFontSizeFunction::GetPrefName() { |
479 return prefs::kWebKitMinimumFontSize; | 478 return prefs::kWebKitMinimumFontSize; |
480 } | 479 } |
481 | 480 |
482 const char* SetMinimumFontSizeFunction::GetKey() { | 481 const char* SetMinimumFontSizeFunction::GetKey() { |
483 return kPixelSizeKey; | 482 return kPixelSizeKey; |
484 } | 483 } |
OLD | NEW |