| 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 UninstallPackage(const mojo::String& package_name) override; | 
| 79 | 80 | 
| 80   // Methods to reply messages. | 81   // Methods to reply messages. | 
| 81   void SendRefreshAppList(const std::vector<AppInfo>& apps); | 82   void SendRefreshAppList(const std::vector<AppInfo>& apps); | 
| 82   bool GenerateAndSendIcon(const AppInfo& app, | 83   bool GenerateAndSendIcon(const AppInfo& app, | 
| 83                            ScaleFactor scale_factor, | 84                            ScaleFactor scale_factor, | 
| 84                            std::string* png_data_as_string); | 85                            std::string* png_data_as_string); | 
| 85 | 86 | 
| 86   int refresh_app_list_count() const { return refresh_app_list_count_; } | 87   int refresh_app_list_count() const { return refresh_app_list_count_; } | 
| 87 | 88 | 
| 88   const ScopedVector<Request>& launch_requests() const { | 89   const ScopedVector<Request>& launch_requests() const { | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
| 112   int refresh_app_list_count_ = 0; | 113   int refresh_app_list_count_ = 0; | 
| 113   // Keeps information about launch requests. | 114   // Keeps information about launch requests. | 
| 114   ScopedVector<Request> launch_requests_; | 115   ScopedVector<Request> launch_requests_; | 
| 115   // Keeps information about icon load requests. | 116   // Keeps information about icon load requests. | 
| 116   ScopedVector<IconRequest> icon_requests_; | 117   ScopedVector<IconRequest> icon_requests_; | 
| 117 }; | 118 }; | 
| 118 | 119 | 
| 119 }  // namespace arc | 120 }  // namespace arc | 
| 120 | 121 | 
| 121 #endif  // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 122 #endif  // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 
| OLD | NEW | 
|---|