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

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

Issue 2894443002: arc: Set custom icon in shelf for ARC apps. (Closed)
Patch Set: rebase Created 3 years, 6 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
« no previous file with comments | « components/arc/common/app.mojom ('k') | components/arc/test/fake_app_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void InstallPackage(mojom::ArcPackageInfoPtr arcPackageInfo) override; 114 void InstallPackage(mojom::ArcPackageInfoPtr arcPackageInfo) override;
115 115
116 // Methods to reply messages. 116 // Methods to reply messages.
117 void SendRefreshAppList(const std::vector<mojom::AppInfo>& apps); 117 void SendRefreshAppList(const std::vector<mojom::AppInfo>& apps);
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 SendTaskDescription(int32_t taskId,
125 const std::string& label,
126 const std::string& icon_png_data_as_string);
124 void SendTaskDestroyed(int32_t taskId); 127 void SendTaskDestroyed(int32_t taskId);
125 bool GenerateAndSendIcon(const mojom::AppInfo& app, 128 bool GenerateAndSendIcon(const mojom::AppInfo& app,
126 mojom::ScaleFactor scale_factor, 129 mojom::ScaleFactor scale_factor,
127 std::string* png_data_as_string); 130 std::string* png_data_as_string);
128 void GenerateAndSendBadIcon(const mojom::AppInfo& app, 131 void GenerateAndSendBadIcon(const mojom::AppInfo& app,
129 mojom::ScaleFactor scale_factor); 132 mojom::ScaleFactor scale_factor);
130 void SendInstallShortcut(const mojom::ShortcutInfo& shortcut); 133 void SendInstallShortcut(const mojom::ShortcutInfo& shortcut);
131 void SendUninstallShortcut(const std::string& package_name, 134 void SendUninstallShortcut(const std::string& package_name,
132 const std::string& intent_uri); 135 const std::string& intent_uri);
133 void SendInstallShortcuts(const std::vector<mojom::ShortcutInfo>& shortcuts); 136 void SendInstallShortcuts(const std::vector<mojom::ShortcutInfo>& shortcuts);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 184
182 bool GetFakeIcon(mojom::ScaleFactor scale_factor, 185 bool GetFakeIcon(mojom::ScaleFactor scale_factor,
183 std::string* png_data_as_string); 186 std::string* png_data_as_string);
184 187
185 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); 188 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance);
186 }; 189 };
187 190
188 } // namespace arc 191 } // namespace arc
189 192
190 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ 193 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_
OLDNEW
« no previous file with comments | « components/arc/common/app.mojom ('k') | components/arc/test/fake_app_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698