| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 const gfx::Rect& dimension_on_screen) override; | 112 const gfx::Rect& dimension_on_screen) override; |
| 113 void ShowPackageInfoOnPage(const mojo::String& package_name, | 113 void ShowPackageInfoOnPage(const mojo::String& package_name, |
| 114 mojom::ShowPackageInfoPage page, | 114 mojom::ShowPackageInfoPage page, |
| 115 const gfx::Rect& dimension_on_screen) override; | 115 const gfx::Rect& dimension_on_screen) override; |
| 116 void SetNotificationsEnabled(const mojo::String& package_name, | 116 void SetNotificationsEnabled(const mojo::String& package_name, |
| 117 bool enabled) override; | 117 bool enabled) override; |
| 118 void InstallPackage(mojom::ArcPackageInfoPtr arcPackageInfo) override; | 118 void InstallPackage(mojom::ArcPackageInfoPtr arcPackageInfo) override; |
| 119 | 119 |
| 120 // Methods to reply messages. | 120 // Methods to reply messages. |
| 121 void SendRefreshAppList(const std::vector<mojom::AppInfo>& apps); | 121 void SendRefreshAppList(const std::vector<mojom::AppInfo>& apps); |
| 122 void SendAppAdded(const mojom::AppInfo& app); |
| 122 void SendTaskCreated(int32_t taskId, const mojom::AppInfo& app); | 123 void SendTaskCreated(int32_t taskId, const mojom::AppInfo& app); |
| 123 void SendTaskDestroyed(int32_t taskId); | 124 void SendTaskDestroyed(int32_t taskId); |
| 124 bool GenerateAndSendIcon(const mojom::AppInfo& app, | 125 bool GenerateAndSendIcon(const mojom::AppInfo& app, |
| 125 mojom::ScaleFactor scale_factor, | 126 mojom::ScaleFactor scale_factor, |
| 126 std::string* png_data_as_string); | 127 std::string* png_data_as_string); |
| 127 void SendInstallShortcut(const mojom::ShortcutInfo& shortcuts); | 128 void SendInstallShortcut(const mojom::ShortcutInfo& shortcuts); |
| 128 void SendInstallShortcuts(const std::vector<mojom::ShortcutInfo>& shortcuts); | 129 void SendInstallShortcuts(const std::vector<mojom::ShortcutInfo>& shortcuts); |
| 129 void SetTaskInfo(int32_t task_id, | 130 void SetTaskInfo(int32_t task_id, |
| 130 const std::string& package_name, | 131 const std::string& package_name, |
| 131 const std::string& activity); | 132 const std::string& activity); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 187 |
| 187 bool GetFakeIcon(mojom::ScaleFactor scale_factor, | 188 bool GetFakeIcon(mojom::ScaleFactor scale_factor, |
| 188 std::string* png_data_as_string); | 189 std::string* png_data_as_string); |
| 189 | 190 |
| 190 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); | 191 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); |
| 191 }; | 192 }; |
| 192 | 193 |
| 193 } // namespace arc | 194 } // namespace arc |
| 194 | 195 |
| 195 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 196 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ |
| OLD | NEW |