| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 const gfx::Rect& dimension_on_screen) override; | 110 const gfx::Rect& dimension_on_screen) override; |
| 111 void ShowPackageInfoOnPage(const mojo::String& package_name, | 111 void ShowPackageInfoOnPage(const mojo::String& package_name, |
| 112 mojom::ShowPackageInfoPage page, | 112 mojom::ShowPackageInfoPage page, |
| 113 const gfx::Rect& dimension_on_screen) override; | 113 const gfx::Rect& dimension_on_screen) override; |
| 114 void SetNotificationsEnabled(const mojo::String& package_name, | 114 void SetNotificationsEnabled(const mojo::String& package_name, |
| 115 bool enabled) override; | 115 bool enabled) override; |
| 116 void InstallPackage(mojom::ArcPackageInfoPtr arcPackageInfo) override; | 116 void InstallPackage(mojom::ArcPackageInfoPtr arcPackageInfo) override; |
| 117 | 117 |
| 118 // Methods to reply messages. | 118 // Methods to reply messages. |
| 119 void SendRefreshAppList(const std::vector<mojom::AppInfo>& apps); | 119 void SendRefreshAppList(const std::vector<mojom::AppInfo>& apps); |
| 120 void SendAppAdded(const mojom::AppInfo& app); |
| 120 void SendTaskCreated(int32_t taskId, const mojom::AppInfo& app); | 121 void SendTaskCreated(int32_t taskId, const mojom::AppInfo& app); |
| 121 void SendTaskDestroyed(int32_t taskId); | 122 void SendTaskDestroyed(int32_t taskId); |
| 122 bool GenerateAndSendIcon(const mojom::AppInfo& app, | 123 bool GenerateAndSendIcon(const mojom::AppInfo& app, |
| 123 mojom::ScaleFactor scale_factor, | 124 mojom::ScaleFactor scale_factor, |
| 124 std::string* png_data_as_string); | 125 std::string* png_data_as_string); |
| 125 void SendInstallShortcut(const mojom::ShortcutInfo& shortcuts); | 126 void SendInstallShortcut(const mojom::ShortcutInfo& shortcuts); |
| 126 void SendInstallShortcuts(const std::vector<mojom::ShortcutInfo>& shortcuts); | 127 void SendInstallShortcuts(const std::vector<mojom::ShortcutInfo>& shortcuts); |
| 127 void SetTaskInfo(int32_t task_id, | 128 void SetTaskInfo(int32_t task_id, |
| 128 const std::string& package_name, | 129 const std::string& package_name, |
| 129 const std::string& activity); | 130 const std::string& activity); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 170 |
| 170 bool GetFakeIcon(mojom::ScaleFactor scale_factor, | 171 bool GetFakeIcon(mojom::ScaleFactor scale_factor, |
| 171 std::string* png_data_as_string); | 172 std::string* png_data_as_string); |
| 172 | 173 |
| 173 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); | 174 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); |
| 174 }; | 175 }; |
| 175 | 176 |
| 176 } // namespace arc | 177 } // namespace arc |
| 177 | 178 |
| 178 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 179 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ |
| OLD | NEW |