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/api/font_settings/font_settings_api.h" | 7 #include "chrome/browser/extensions/api/font_settings/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/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/prefs/pref_service.h" | 13 #include "base/prefs/pref_service.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/chrome_notification_types.h" | 17 #include "chrome/browser/chrome_notification_types.h" |
18 #include "chrome/browser/extensions/api/preference/preference_api.h" | 18 #include "chrome/browser/extensions/api/preference/preference_api.h" |
19 #include "chrome/browser/extensions/api/preference/preference_helpers.h" | 19 #include "chrome/browser/extensions/api/preference/preference_helpers.h" |
20 #include "chrome/browser/extensions/extension_service.h" | 20 #include "chrome/browser/extensions/extension_service.h" |
21 #include "chrome/browser/extensions/extension_system.h" | |
22 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/common/extensions/api/font_settings.h" | 22 #include "chrome/common/extensions/api/font_settings.h" |
24 #include "chrome/common/pref_names.h" | 23 #include "chrome/common/pref_names.h" |
25 #include "chrome/common/pref_names_util.h" | 24 #include "chrome/common/pref_names_util.h" |
26 #include "content/public/browser/font_list_async.h" | 25 #include "content/public/browser/font_list_async.h" |
27 #include "content/public/browser/notification_details.h" | 26 #include "content/public/browser/notification_details.h" |
28 #include "content/public/browser/notification_source.h" | 27 #include "content/public/browser/notification_source.h" |
| 28 #include "extensions/browser/extension_system.h" |
29 #include "extensions/common/error_utils.h" | 29 #include "extensions/common/error_utils.h" |
30 | 30 |
31 #if defined(OS_WIN) | 31 #if defined(OS_WIN) |
32 #include "ui/gfx/font.h" | 32 #include "ui/gfx/font.h" |
33 #include "ui/gfx/platform_font_win.h" | 33 #include "ui/gfx/platform_font_win.h" |
34 #endif | 34 #endif |
35 | 35 |
36 namespace extensions { | 36 namespace extensions { |
37 | 37 |
38 namespace fonts = api::font_settings; | 38 namespace fonts = api::font_settings; |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 447 |
448 const char* FontSettingsSetMinimumFontSizeFunction::GetPrefName() { | 448 const char* FontSettingsSetMinimumFontSizeFunction::GetPrefName() { |
449 return prefs::kWebKitMinimumFontSize; | 449 return prefs::kWebKitMinimumFontSize; |
450 } | 450 } |
451 | 451 |
452 const char* FontSettingsSetMinimumFontSizeFunction::GetKey() { | 452 const char* FontSettingsSetMinimumFontSizeFunction::GetKey() { |
453 return kPixelSizeKey; | 453 return kPixelSizeKey; |
454 } | 454 } |
455 | 455 |
456 } // namespace extensions | 456 } // namespace extensions |
OLD | NEW |