| 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/string_util.h" |
| 12 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
| 13 #include "base/string_util.h" | |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/extensions/api/preference/preference_helpers.h" | 15 #include "chrome/browser/extensions/api/preference/preference_helpers.h" |
| 16 #include "chrome/browser/extensions/extension_service.h" | 16 #include "chrome/browser/extensions/extension_service.h" |
| 17 #include "chrome/browser/prefs/pref_service.h" | 17 #include "chrome/browser/prefs/pref_service.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
| 20 #include "chrome/common/extensions/api/font_settings.h" | 20 #include "chrome/common/extensions/api/font_settings.h" |
| 21 #include "chrome/common/extensions/extension_error_utils.h" | |
| 22 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
| 23 #include "chrome/common/pref_names_util.h" | 22 #include "chrome/common/pref_names_util.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" |
| 26 #include "content/public/browser/notification_source.h" | 25 #include "content/public/browser/notification_source.h" |
| 26 #include "extensions/common/extension_error_utils.h" |
| 27 | 27 |
| 28 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
| 29 #include "ui/gfx/font.h" | 29 #include "ui/gfx/font.h" |
| 30 #include "ui/gfx/platform_font_win.h" | 30 #include "ui/gfx/platform_font_win.h" |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 namespace extensions { | 33 namespace extensions { |
| 34 | 34 |
| 35 namespace fonts = api::font_settings; | 35 namespace fonts = api::font_settings; |
| 36 | 36 |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 454 |
| 455 const char* SetMinimumFontSizeFunction::GetPrefName() { | 455 const char* SetMinimumFontSizeFunction::GetPrefName() { |
| 456 return prefs::kWebKitMinimumFontSize; | 456 return prefs::kWebKitMinimumFontSize; |
| 457 } | 457 } |
| 458 | 458 |
| 459 const char* SetMinimumFontSizeFunction::GetKey() { | 459 const char* SetMinimumFontSizeFunction::GetKey() { |
| 460 return kPixelSizeKey; | 460 return kPixelSizeKey; |
| 461 } | 461 } |
| 462 | 462 |
| 463 } // namespace extensions | 463 } // namespace extensions |
| OLD | NEW |