| 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/string_util.h" | 14 #include "base/string_util.h" |
| 14 #include "base/stringprintf.h" | 15 #include "base/stringprintf.h" |
| 15 #include "base/values.h" | 16 #include "base/values.h" |
| 16 #include "chrome/browser/extensions/api/preference/preference_helpers.h" | 17 #include "chrome/browser/extensions/api/preference/preference_helpers.h" |
| 17 #include "chrome/browser/extensions/extension_service.h" | 18 #include "chrome/browser/extensions/extension_service.h" |
| 18 #include "chrome/browser/extensions/extension_system.h" | 19 #include "chrome/browser/extensions/extension_system.h" |
| 19 #include "chrome/browser/prefs/pref_service.h" | |
| 20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/common/chrome_notification_types.h" | 21 #include "chrome/common/chrome_notification_types.h" |
| 22 #include "chrome/common/extensions/api/font_settings.h" | 22 #include "chrome/common/extensions/api/font_settings.h" |
| 23 #include "chrome/common/pref_names.h" | 23 #include "chrome/common/pref_names.h" |
| 24 #include "chrome/common/pref_names_util.h" | 24 #include "chrome/common/pref_names_util.h" |
| 25 #include "content/public/browser/font_list_async.h" | 25 #include "content/public/browser/font_list_async.h" |
| 26 #include "content/public/browser/notification_details.h" | 26 #include "content/public/browser/notification_details.h" |
| 27 #include "content/public/browser/notification_source.h" | 27 #include "content/public/browser/notification_source.h" |
| 28 #include "extensions/common/error_utils.h" | 28 #include "extensions/common/error_utils.h" |
| 29 | 29 |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 | 465 |
| 466 const char* FontSettingsSetMinimumFontSizeFunction::GetPrefName() { | 466 const char* FontSettingsSetMinimumFontSizeFunction::GetPrefName() { |
| 467 return prefs::kWebKitMinimumFontSize; | 467 return prefs::kWebKitMinimumFontSize; |
| 468 } | 468 } |
| 469 | 469 |
| 470 const char* FontSettingsSetMinimumFontSizeFunction::GetKey() { | 470 const char* FontSettingsSetMinimumFontSizeFunction::GetKey() { |
| 471 return kPixelSizeKey; | 471 return kPixelSizeKey; |
| 472 } | 472 } |
| 473 | 473 |
| 474 } // namespace extensions | 474 } // namespace extensions |
| OLD | NEW |