Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: chrome/browser/chromeos/extensions/gfx_utils.cc

Issue 2700783002: s/\bArc\b/ARC/g for ARC related code. (Closed)
Patch Set: Address ARC++ Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/chromeos/extensions/gfx_utils.h" 5 #include "chrome/browser/chromeos/extensions/gfx_utils.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "chrome/browser/chromeos/profiles/profile_helper.h" 8 #include "chrome/browser/chromeos/profiles/profile_helper.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" 10 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 {"com.google.android.talk", "cgmlfbhkckbedohgdepgbkflommbfkep"}, 90 {"com.google.android.talk", "cgmlfbhkckbedohgdepgbkflommbfkep"},
91 {"com.google.android.talk", "gldgpnmcpaogjlojhhpebkbbanacoglc"}, 91 {"com.google.android.talk", "gldgpnmcpaogjlojhhpebkbbanacoglc"},
92 // Google Play Music 92 // Google Play Music
93 {"com.google.android.music", "fahmaaghhglfmonjliepjlchgpgfmobi"}, 93 {"com.google.android.music", "fahmaaghhglfmonjliepjlchgpgfmobi"},
94 // Google News 94 // Google News
95 {"com.google.android.apps.genie.geniewidget", 95 {"com.google.android.apps.genie.geniewidget",
96 "dllkocilcinkggkchnjgegijklcililc"}, 96 "dllkocilcinkggkchnjgegijklcililc"},
97 }; 97 };
98 98
99 // This class maintains the maps between the extension id and its equivalent 99 // This class maintains the maps between the extension id and its equivalent
100 // Arc package name. 100 // ARC package name.
101 class AppDualBadgeMap { 101 class AppDualBadgeMap {
102 public: 102 public:
103 using ArcAppToExtensionsMap = 103 using ArcAppToExtensionsMap =
104 std::unordered_map<std::string, std::vector<std::string>>; 104 std::unordered_map<std::string, std::vector<std::string>>;
105 using ExtensionToArcAppMap = std::unordered_map<std::string, std::string>; 105 using ExtensionToArcAppMap = std::unordered_map<std::string, std::string>;
106 106
107 AppDualBadgeMap() { 107 AppDualBadgeMap() {
108 for (size_t i = 0; i < arraysize(kDualBadgeMap); ++i) { 108 for (size_t i = 0; i < arraysize(kDualBadgeMap); ++i) {
109 arc_app_to_extensions_map_[kDualBadgeMap[i].arc_package_name].push_back( 109 arc_app_to_extensions_map_[kDualBadgeMap[i].arc_package_name].push_back(
110 kDualBadgeMap[i].extension_id); 110 kDualBadgeMap[i].extension_id);
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 resized_badge_image = gfx::ImageSkiaOperations::CreateResizedImage( 209 resized_badge_image = gfx::ImageSkiaOperations::CreateResizedImage(
210 *badge_image, skia::ImageOperations::RESIZE_BEST, icon_out->size()); 210 *badge_image, skia::ImageOperations::RESIZE_BEST, icon_out->size());
211 } 211 }
212 *icon_out = gfx::ImageSkiaOperations::CreateSuperimposedImage( 212 *icon_out = gfx::ImageSkiaOperations::CreateSuperimposedImage(
213 *icon_out, resized_badge_image); 213 *icon_out, resized_badge_image);
214 return; 214 return;
215 } 215 }
216 216
217 } // namespace util 217 } // namespace util
218 } // namespace extensions 218 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698