| OLD | NEW |
| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 128 void GenerateAndSendBadIcon(const mojom::AppInfo& app, |
| 129 mojom::ScaleFactor scale_factor); | 129 mojom::ScaleFactor scale_factor); |
| 130 void SendInstallShortcut(const mojom::ShortcutInfo& shortcuts); | 130 void SendInstallShortcut(const mojom::ShortcutInfo& shortcut); |
| 131 void SendUninstallShortcut(const std::string& package_name, |
| 132 const std::string& intent_uri); |
| 131 void SendInstallShortcuts(const std::vector<mojom::ShortcutInfo>& shortcuts); | 133 void SendInstallShortcuts(const std::vector<mojom::ShortcutInfo>& shortcuts); |
| 132 void SetTaskInfo(int32_t task_id, | 134 void SetTaskInfo(int32_t task_id, |
| 133 const std::string& package_name, | 135 const std::string& package_name, |
| 134 const std::string& activity); | 136 const std::string& activity); |
| 135 void SendRefreshPackageList( | 137 void SendRefreshPackageList( |
| 136 const std::vector<mojom::ArcPackageInfo>& packages); | 138 const std::vector<mojom::ArcPackageInfo>& packages); |
| 137 void SendPackageAdded(const mojom::ArcPackageInfo& package); | 139 void SendPackageAdded(const mojom::ArcPackageInfo& package); |
| 138 void SendPackageUninstalled(const std::string& pacakge_name); | 140 void SendPackageUninstalled(const std::string& pacakge_name); |
| 139 | 141 |
| 140 void SendInstallationStarted(const std::string& package_name); | 142 void SendInstallationStarted(const std::string& package_name); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 181 |
| 180 bool GetFakeIcon(mojom::ScaleFactor scale_factor, | 182 bool GetFakeIcon(mojom::ScaleFactor scale_factor, |
| 181 std::string* png_data_as_string); | 183 std::string* png_data_as_string); |
| 182 | 184 |
| 183 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); | 185 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); |
| 184 }; | 186 }; |
| 185 | 187 |
| 186 } // namespace arc | 188 } // namespace arc |
| 187 | 189 |
| 188 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 190 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ |
| OLD | NEW |