Chromium Code Reviews| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 const mojo::String& activity, | 79 const mojo::String& activity, |
| 80 const gfx::Rect& dimension, | 80 const gfx::Rect& dimension, |
| 81 const CanHandleResolutionCallback& callback) override; | 81 const CanHandleResolutionCallback& callback) override; |
| 82 void UninstallPackage(const mojo::String& package_name) override; | 82 void UninstallPackage(const mojo::String& package_name) override; |
| 83 void GetTaskInfo(int32_t task_id, | 83 void GetTaskInfo(int32_t task_id, |
| 84 const GetTaskInfoCallback& callback) override; | 84 const GetTaskInfoCallback& callback) override; |
| 85 void SetTaskActive(int32_t task_id) override; | 85 void SetTaskActive(int32_t task_id) override; |
| 86 void CloseTask(int32_t task_id) override; | 86 void CloseTask(int32_t task_id) override; |
| 87 void ShowPackageInfo(const mojo::String& package_name, | 87 void ShowPackageInfo(const mojo::String& package_name, |
| 88 const gfx::Rect& dimension_on_screen) override; | 88 const gfx::Rect& dimension_on_screen) override; |
| 89 void ShowPackageInfoOnPage(const mojo::String& package_name, | |
| 90 mojom::ShowPackageInfoPage page, | |
|
Yusuke Sato
2016/06/20 05:00:26
wrong indent?
mtomasz
2016/06/20 05:14:58
Done.
| |
| 91 const gfx::Rect& dimension_on_screen) override; | |
| 89 void SetNotificationsEnabled(const mojo::String& package_name, | 92 void SetNotificationsEnabled(const mojo::String& package_name, |
| 90 bool enabled) override; | 93 bool enabled) override; |
| 91 | 94 |
| 92 // Methods to reply messages. | 95 // Methods to reply messages. |
| 93 void SendRefreshAppList(const std::vector<mojom::AppInfo>& apps); | 96 void SendRefreshAppList(const std::vector<mojom::AppInfo>& apps); |
| 94 void SendTaskCreated(int32_t taskId, const mojom::AppInfo& app); | 97 void SendTaskCreated(int32_t taskId, const mojom::AppInfo& app); |
| 95 void SendTaskDestroyed(int32_t taskId); | 98 void SendTaskDestroyed(int32_t taskId); |
| 96 bool GenerateAndSendIcon(const mojom::AppInfo& app, | 99 bool GenerateAndSendIcon(const mojom::AppInfo& app, |
| 97 mojom::ScaleFactor scale_factor, | 100 mojom::ScaleFactor scale_factor, |
| 98 std::string* png_data_as_string); | 101 std::string* png_data_as_string); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 137 ScopedVector<IconRequest> icon_requests_; | 140 ScopedVector<IconRequest> icon_requests_; |
| 138 // Keeps information for running tasks. | 141 // Keeps information for running tasks. |
| 139 TaskIdToInfo task_id_to_info_; | 142 TaskIdToInfo task_id_to_info_; |
| 140 | 143 |
| 141 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); | 144 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); |
| 142 }; | 145 }; |
| 143 | 146 |
| 144 } // namespace arc | 147 } // namespace arc |
| 145 | 148 |
| 146 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 149 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ |
| OLD | NEW |