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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 }; | 78 }; |
79 | 79 |
80 explicit FakeAppInstance(mojom::AppHost* app_host); | 80 explicit FakeAppInstance(mojom::AppHost* app_host); |
81 ~FakeAppInstance() override; | 81 ~FakeAppInstance() override; |
82 | 82 |
83 // mojom::AppInstance overrides: | 83 // mojom::AppInstance overrides: |
84 void Init(mojom::AppHostPtr host_ptr) override {} | 84 void Init(mojom::AppHostPtr host_ptr) override {} |
85 void RefreshAppList() override; | 85 void RefreshAppList() override; |
86 void LaunchApp(const mojo::String& package_name, | 86 void LaunchApp(const mojo::String& package_name, |
87 const mojo::String& activity, | 87 const mojo::String& activity, |
88 const gfx::Rect& dimension) override; | 88 const base::Optional<gfx::Rect>& dimension) override; |
89 void RequestAppIcon(const mojo::String& package_name, | 89 void RequestAppIcon(const mojo::String& package_name, |
90 const mojo::String& activity, | 90 const mojo::String& activity, |
91 mojom::ScaleFactor scale_factor) override; | 91 mojom::ScaleFactor scale_factor) override; |
92 void LaunchIntent(const mojo::String& intent_uri, | 92 void LaunchIntent( |
93 const gfx::Rect& dimension_on_screen) override; | 93 const mojo::String& intent_uri, |
| 94 const base::Optional<gfx::Rect>& dimension_on_screen) override; |
94 void RequestIcon(const mojo::String& icon_resource_id, | 95 void RequestIcon(const mojo::String& icon_resource_id, |
95 arc::mojom::ScaleFactor scale_factor, | 96 arc::mojom::ScaleFactor scale_factor, |
96 const RequestIconCallback& callback) override; | 97 const RequestIconCallback& callback) override; |
97 void RemoveCachedIcon(const mojo::String& icon_resource_id) override; | 98 void RemoveCachedIcon(const mojo::String& icon_resource_id) override; |
98 void CanHandleResolution( | 99 void CanHandleResolution( |
99 const mojo::String& package_name, | 100 const mojo::String& package_name, |
100 const mojo::String& activity, | 101 const mojo::String& activity, |
101 const gfx::Rect& dimension, | 102 const gfx::Rect& dimension, |
102 const CanHandleResolutionCallback& callback) override; | 103 const CanHandleResolutionCallback& callback) override; |
103 void UninstallPackage(const mojo::String& package_name) override; | 104 void UninstallPackage(const mojo::String& package_name) override; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 169 |
169 bool GetFakeIcon(mojom::ScaleFactor scale_factor, | 170 bool GetFakeIcon(mojom::ScaleFactor scale_factor, |
170 std::string* png_data_as_string); | 171 std::string* png_data_as_string); |
171 | 172 |
172 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); | 173 DISALLOW_COPY_AND_ASSIGN(FakeAppInstance); |
173 }; | 174 }; |
174 | 175 |
175 } // namespace arc | 176 } // namespace arc |
176 | 177 |
177 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ | 178 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ |
OLD | NEW |