| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 void CanHandleResolution( | 101 void CanHandleResolution( |
| 102 const mojo::String& package_name, | 102 const mojo::String& package_name, |
| 103 const mojo::String& activity, | 103 const mojo::String& activity, |
| 104 const gfx::Rect& dimension, | 104 const gfx::Rect& dimension, |
| 105 const CanHandleResolutionCallback& callback) override; | 105 const CanHandleResolutionCallback& callback) override; |
| 106 void UninstallPackage(const mojo::String& package_name) override; | 106 void UninstallPackage(const mojo::String& package_name) override; |
| 107 void GetTaskInfo(int32_t task_id, | 107 void GetTaskInfo(int32_t task_id, |
| 108 const GetTaskInfoCallback& callback) override; | 108 const GetTaskInfoCallback& callback) override; |
| 109 void SetTaskActive(int32_t task_id) override; | 109 void SetTaskActive(int32_t task_id) override; |
| 110 void CloseTask(int32_t task_id) override; | 110 void CloseTask(int32_t task_id) override; |
| 111 void ShowPackageInfo(const mojo::String& package_name, | 111 void ShowPackageInfoDeprecated(const mojo::String& package_name, |
| 112 const gfx::Rect& dimension_on_screen) override; | 112 const gfx::Rect& dimension_on_screen) override; |
| 113 void ShowPackageInfoOnPage(const mojo::String& package_name, |
| 114 mojom::ShowPackageInfoPage page, |
| 115 const gfx::Rect& dimension_on_screen) override; |
| 113 void SetNotificationsEnabled(const mojo::String& package_name, | 116 void SetNotificationsEnabled(const mojo::String& package_name, |
| 114 bool enabled) override; | 117 bool enabled) override; |
| 115 void InstallPackage(mojom::ArcPackageInfoPtr arcPackageInfo) override; | 118 void InstallPackage(mojom::ArcPackageInfoPtr arcPackageInfo) override; |
| 116 | 119 |
| 117 // Methods to reply messages. | 120 // Methods to reply messages. |
| 118 void SendRefreshAppList(const std::vector<mojom::AppInfo>& apps); | 121 void SendRefreshAppList(const std::vector<mojom::AppInfo>& apps); |
| 119 void SendTaskCreated(int32_t taskId, const mojom::AppInfo& app); | 122 void SendTaskCreated(int32_t taskId, const mojom::AppInfo& app); |
| 120 void SendTaskDestroyed(int32_t taskId); | 123 void SendTaskDestroyed(int32_t taskId); |
| 121 bool GenerateAndSendIcon(const mojom::AppInfo& app, | 124 bool GenerateAndSendIcon(const mojom::AppInfo& app, |
| 122 mojom::ScaleFactor scale_factor, | 125 mojom::ScaleFactor scale_factor, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 186 |
| 184 bool GetFakeIcon(mojom::ScaleFactor scale_factor, | 187 bool GetFakeIcon(mojom::ScaleFactor scale_factor, |
| 185 std::string* png_data_as_string); | 188 std::string* png_data_as_string); |
| 186 | 189 |
| 187 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); | 190 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); |
| 188 }; | 191 }; |
| 189 | 192 |
| 190 } // namespace arc | 193 } // namespace arc |
| 191 | 194 |
| 192 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 195 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ |
| OLD | NEW |