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

Side by Side Diff: components/arc/test/fake_app_instance.h

Issue 2749973002: arc: Fix Default icon issue when cached icon file is corrupted. (Closed)
Patch Set: Address Yury's comments. Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ 5 #ifndef COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_
6 #define COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ 6 #define COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void SendAppAdded(const mojom::AppInfo& app); 118 void SendAppAdded(const mojom::AppInfo& app);
119 void SendPackageAppListRefreshed(const std::string& package_name, 119 void SendPackageAppListRefreshed(const std::string& package_name,
120 const std::vector<mojom::AppInfo>& apps); 120 const std::vector<mojom::AppInfo>& apps);
121 void SendTaskCreated(int32_t taskId, 121 void SendTaskCreated(int32_t taskId,
122 const mojom::AppInfo& app, 122 const mojom::AppInfo& app,
123 const std::string& intent); 123 const std::string& intent);
124 void SendTaskDestroyed(int32_t taskId); 124 void SendTaskDestroyed(int32_t taskId);
125 bool GenerateAndSendIcon(const mojom::AppInfo& app, 125 bool GenerateAndSendIcon(const mojom::AppInfo& app,
126 mojom::ScaleFactor scale_factor, 126 mojom::ScaleFactor scale_factor,
127 std::string* png_data_as_string); 127 std::string* png_data_as_string);
128 void GenerateAndSendBadIcon(const mojom::AppInfo& app,
129 mojom::ScaleFactor scale_factor,
130 std::string* png_data_as_string);
Luis Héctor Chávez 2017/03/15 20:28:52 can you convert this to a std::vector<uint8_t>*? s
lgcheng 2017/03/15 22:05:34 In fact the std::string* png_data_as_string is not
Luis Héctor Chávez 2017/03/15 22:49:50 I see, the removal of this parameter sgtm. The ot
128 void SendInstallShortcut(const mojom::ShortcutInfo& shortcuts); 131 void SendInstallShortcut(const mojom::ShortcutInfo& shortcuts);
129 void SendInstallShortcuts(const std::vector<mojom::ShortcutInfo>& shortcuts); 132 void SendInstallShortcuts(const std::vector<mojom::ShortcutInfo>& shortcuts);
130 void SetTaskInfo(int32_t task_id, 133 void SetTaskInfo(int32_t task_id,
131 const std::string& package_name, 134 const std::string& package_name,
132 const std::string& activity); 135 const std::string& activity);
133 void SendRefreshPackageList( 136 void SendRefreshPackageList(
134 const std::vector<mojom::ArcPackageInfo>& packages); 137 const std::vector<mojom::ArcPackageInfo>& packages);
135 void SendPackageAdded(const mojom::ArcPackageInfo& package); 138 void SendPackageAdded(const mojom::ArcPackageInfo& package);
136 void SendPackageUninstalled(const std::string& pacakge_name); 139 void SendPackageUninstalled(const std::string& pacakge_name);
137 140
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 180
178 bool GetFakeIcon(mojom::ScaleFactor scale_factor, 181 bool GetFakeIcon(mojom::ScaleFactor scale_factor,
179 std::string* png_data_as_string); 182 std::string* png_data_as_string);
180 183
181 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); 184 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance);
182 }; 185 };
183 186
184 } // namespace arc 187 } // namespace arc
185 188
186 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ 189 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698