| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void LaunchApp(const mojo::String& package_name, | 69 void LaunchApp(const mojo::String& package_name, |
| 70 const mojo::String& activity, | 70 const mojo::String& activity, |
| 71 ScreenRectPtr dimension) override; | 71 ScreenRectPtr dimension) override; |
| 72 void RequestAppIcon(const mojo::String& package_name, | 72 void RequestAppIcon(const mojo::String& package_name, |
| 73 const mojo::String& activity, | 73 const mojo::String& activity, |
| 74 ScaleFactor scale_factor) override; | 74 ScaleFactor scale_factor) override; |
| 75 void CanHandleResolution(const mojo::String& package_name, | 75 void CanHandleResolution(const mojo::String& package_name, |
| 76 const mojo::String& activity, | 76 const mojo::String& activity, |
| 77 ScreenRectPtr dimension, | 77 ScreenRectPtr dimension, |
| 78 const CanHandleResolutionCallback& callback) override; | 78 const CanHandleResolutionCallback& callback) override; |
| 79 void UninstallApp(const mojo::String& package_name, |
| 80 const UninstallAppCallback& callback) override; |
| 79 | 81 |
| 80 // Methods to reply messages. | 82 // Methods to reply messages. |
| 81 void SendRefreshAppList(const std::vector<AppInfo>& apps); | 83 void SendRefreshAppList(const std::vector<AppInfo>& apps); |
| 82 bool GenerateAndSendIcon(const AppInfo& app, | 84 bool GenerateAndSendIcon(const AppInfo& app, |
| 83 ScaleFactor scale_factor, | 85 ScaleFactor scale_factor, |
| 84 std::string* png_data_as_string); | 86 std::string* png_data_as_string); |
| 85 | 87 |
| 86 int refresh_app_list_count() const { return refresh_app_list_count_; } | 88 int refresh_app_list_count() const { return refresh_app_list_count_; } |
| 87 | 89 |
| 88 const ScopedVector<Request>& launch_requests() const { | 90 const ScopedVector<Request>& launch_requests() const { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 112 int refresh_app_list_count_ = 0; | 114 int refresh_app_list_count_ = 0; |
| 113 // Keeps information about launch requests. | 115 // Keeps information about launch requests. |
| 114 ScopedVector<Request> launch_requests_; | 116 ScopedVector<Request> launch_requests_; |
| 115 // Keeps information about icon load requests. | 117 // Keeps information about icon load requests. |
| 116 ScopedVector<IconRequest> icon_requests_; | 118 ScopedVector<IconRequest> icon_requests_; |
| 117 }; | 119 }; |
| 118 | 120 |
| 119 } // namespace arc | 121 } // namespace arc |
| 120 | 122 |
| 121 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 123 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ |
| OLD | NEW |