| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void SetTaskActive(int32_t task_id) override; | 105 void SetTaskActive(int32_t task_id) override; |
| 106 void CloseTask(int32_t task_id) override; | 106 void CloseTask(int32_t task_id) override; |
| 107 void ShowPackageInfoDeprecated(const std::string& package_name, | 107 void ShowPackageInfoDeprecated(const std::string& package_name, |
| 108 const gfx::Rect& dimension_on_screen) override; | 108 const gfx::Rect& dimension_on_screen) override; |
| 109 void ShowPackageInfoOnPage(const std::string& package_name, | 109 void ShowPackageInfoOnPage(const std::string& package_name, |
| 110 mojom::ShowPackageInfoPage page, | 110 mojom::ShowPackageInfoPage page, |
| 111 const gfx::Rect& dimension_on_screen) override; | 111 const gfx::Rect& dimension_on_screen) override; |
| 112 void SetNotificationsEnabled(const std::string& package_name, | 112 void SetNotificationsEnabled(const std::string& package_name, |
| 113 bool enabled) override; | 113 bool enabled) override; |
| 114 void InstallPackage(mojom::ArcPackageInfoPtr arcPackageInfo) override; | 114 void InstallPackage(mojom::ArcPackageInfoPtr arcPackageInfo) override; |
| 115 void GetRecentAndSuggestedAppsFromPlayStore( |
| 116 const std::string& query, |
| 117 int32_t max_results, |
| 118 const GetRecentAndSuggestedAppsFromPlayStoreCallback& callback) override; |
| 115 | 119 |
| 116 // Methods to reply messages. | 120 // Methods to reply messages. |
| 117 void SendRefreshAppList(const std::vector<mojom::AppInfo>& apps); | 121 void SendRefreshAppList(const std::vector<mojom::AppInfo>& apps); |
| 118 void SendAppAdded(const mojom::AppInfo& app); | 122 void SendAppAdded(const mojom::AppInfo& app); |
| 119 void SendPackageAppListRefreshed(const std::string& package_name, | 123 void SendPackageAppListRefreshed(const std::string& package_name, |
| 120 const std::vector<mojom::AppInfo>& apps); | 124 const std::vector<mojom::AppInfo>& apps); |
| 121 void SendTaskCreated(int32_t taskId, | 125 void SendTaskCreated(int32_t taskId, |
| 122 const mojom::AppInfo& app, | 126 const mojom::AppInfo& app, |
| 123 const std::string& intent); | 127 const std::string& intent); |
| 124 void SendTaskDescription(int32_t taskId, | 128 void SendTaskDescription(int32_t taskId, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 188 |
| 185 bool GetFakeIcon(mojom::ScaleFactor scale_factor, | 189 bool GetFakeIcon(mojom::ScaleFactor scale_factor, |
| 186 std::string* png_data_as_string); | 190 std::string* png_data_as_string); |
| 187 | 191 |
| 188 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); | 192 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); |
| 189 }; | 193 }; |
| 190 | 194 |
| 191 } // namespace arc | 195 } // namespace arc |
| 192 | 196 |
| 193 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 197 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ |
| OLD | NEW |