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 <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
16 #include "base/prefs/pref_service.h" | |
17 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
18 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
19 #include "base/trace_event/trace_event.h" | 18 #include "base/trace_event/trace_event.h" |
20 #include "base/values.h" | 19 #include "base/values.h" |
21 #include "build/build_config.h" | 20 #include "build/build_config.h" |
22 #include "chrome/browser/chrome_notification_types.h" | 21 #include "chrome/browser/chrome_notification_types.h" |
23 #include "chrome/browser/extensions/api/preference/preference_api.h" | 22 #include "chrome/browser/extensions/api/preference/preference_api.h" |
24 #include "chrome/browser/extensions/api/preference/preference_helpers.h" | 23 #include "chrome/browser/extensions/api/preference/preference_helpers.h" |
25 #include "chrome/browser/extensions/extension_service.h" | 24 #include "chrome/browser/extensions/extension_service.h" |
26 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
27 #include "chrome/common/extensions/api/font_settings.h" | 26 #include "chrome/common/extensions/api/font_settings.h" |
28 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
29 #include "chrome/common/pref_names_util.h" | 28 #include "chrome/common/pref_names_util.h" |
| 29 #include "components/prefs/pref_service.h" |
30 #include "content/public/browser/font_list_async.h" | 30 #include "content/public/browser/font_list_async.h" |
31 #include "content/public/browser/notification_details.h" | 31 #include "content/public/browser/notification_details.h" |
32 #include "content/public/browser/notification_source.h" | 32 #include "content/public/browser/notification_source.h" |
33 #include "extensions/browser/extension_system.h" | 33 #include "extensions/browser/extension_system.h" |
34 #include "extensions/common/error_utils.h" | 34 #include "extensions/common/error_utils.h" |
35 | 35 |
36 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
37 #include "ui/gfx/font.h" | 37 #include "ui/gfx/font.h" |
38 #include "ui/gfx/platform_font_win.h" | 38 #include "ui/gfx/platform_font_win.h" |
39 #endif | 39 #endif |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 | 452 |
453 const char* FontSettingsSetMinimumFontSizeFunction::GetPrefName() { | 453 const char* FontSettingsSetMinimumFontSizeFunction::GetPrefName() { |
454 return prefs::kWebKitMinimumFontSize; | 454 return prefs::kWebKitMinimumFontSize; |
455 } | 455 } |
456 | 456 |
457 const char* FontSettingsSetMinimumFontSizeFunction::GetKey() { | 457 const char* FontSettingsSetMinimumFontSizeFunction::GetKey() { |
458 return kPixelSizeKey; | 458 return kPixelSizeKey; |
459 } | 459 } |
460 | 460 |
461 } // namespace extensions | 461 } // namespace extensions |
OLD | NEW |