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 #include "chrome/browser/extensions/extension_icon_manager.h" | 5 #include "chrome/browser/extensions/extension_icon_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "chrome/browser/extensions/image_loader.h" | 10 #include "extensions/browser/image_loader.h" |
11 #include "extensions/common/constants.h" | 11 #include "extensions/common/constants.h" |
12 #include "extensions/common/extension.h" | 12 #include "extensions/common/extension.h" |
13 #include "extensions/common/extension_icon_set.h" | 13 #include "extensions/common/extension_icon_set.h" |
14 #include "extensions/common/extension_resource.h" | 14 #include "extensions/common/extension_resource.h" |
15 #include "extensions/common/manifest_handlers/icons_handler.h" | 15 #include "extensions/common/manifest_handlers/icons_handler.h" |
16 #include "grit/theme_resources.h" | 16 #include "grit/theme_resources.h" |
17 #include "skia/ext/image_operations.h" | 17 #include "skia/ext/image_operations.h" |
18 #include "ui/base/resource/resource_bundle.h" | 18 #include "ui/base/resource/resource_bundle.h" |
19 #include "ui/gfx/canvas.h" | 19 #include "ui/gfx/canvas.h" |
20 #include "ui/gfx/color_utils.h" | 20 #include "ui/gfx/color_utils.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 if (monochrome_) { | 127 if (monochrome_) { |
128 color_utils::HSL shift = {-1, 0, 0.6}; | 128 color_utils::HSL shift = {-1, 0, 0.6}; |
129 result = SkBitmapOperations::CreateHSLShiftedBitmap(result, shift); | 129 result = SkBitmapOperations::CreateHSLShiftedBitmap(result, shift); |
130 } | 130 } |
131 | 131 |
132 if (!padding_.empty()) | 132 if (!padding_.empty()) |
133 result = ApplyPadding(result, padding_); | 133 result = ApplyPadding(result, padding_); |
134 | 134 |
135 return result; | 135 return result; |
136 } | 136 } |
OLD | NEW |