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

Side by Side Diff: chrome/browser/ui/app_list/arc/arc_app_utils.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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_
6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "ui/gfx/geometry/rect.h" 11 #include "ui/gfx/geometry/rect.h"
12 12
13 namespace content { 13 namespace content {
14 class BrowserContext; 14 class BrowserContext;
15 } 15 }
16 16
17 namespace arc { 17 namespace arc {
18
18 using CanHandleResolutionCallback = base::Callback<void(bool)>; 19 using CanHandleResolutionCallback = base::Callback<void(bool)>;
19 20
20 // Launch an app and let the system decide how big and where to place it. 21 // Launch an app and let the system decide how big and where to place it.
21 bool LaunchApp(content::BrowserContext* context, const std::string& app_id); 22 bool LaunchApp(content::BrowserContext* context, const std::string& app_id);
22 23
23 // Launch an app and place it at the specified coordinates. 24 // Launch an app and place it at the specified coordinates.
24 bool LaunchAppWithRect(content::BrowserContext* context, 25 bool LaunchAppWithRect(content::BrowserContext* context,
25 const std::string& app_id, 26 const std::string& app_id,
26 const gfx::Rect& target_rect); 27 const gfx::Rect& target_rect);
27 28
28 // Tests if the application can use the given target resolution. 29 // Tests if the application can use the given target resolution.
29 // The callback will receive the information once known. 30 // The callback will receive the information once known.
30 // A false will get returned if the result cannot be determined in which case 31 // A false will get returned if the result cannot be determined in which case
31 // the callback will not be called. 32 // the callback will not be called.
32 bool CanHandleResolution(content::BrowserContext* context, 33 bool CanHandleResolution(content::BrowserContext* context,
33 const std::string& app_id, 34 const std::string& app_id,
34 const gfx::Rect& rect, 35 const gfx::Rect& rect,
35 const CanHandleResolutionCallback callback); 36 const CanHandleResolutionCallback& callback);
37
38 // Uninstalls the package in ARC.
39 void UninstallPackage(const std::string& package_name);
36 40
37 } // namespace arc 41 } // namespace arc
38 42
39 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ 43 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_test.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698