Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: components/arc/test/fake_app_instance.h

Issue 1756193008: Support uninstalling ARC app from Chrome launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/arc/common/app.mojom ('k') | components/arc/test/fake_app_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/arc/common/app.mojom ('k') | components/arc/test/fake_app_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698