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

Side by Side Diff: chrome/browser/ui/app_list/arc/arc_app_utils.h

Issue 1973603002: arc: Make Play Store item persistance in shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + policy_browsertest.cc Created 4 years, 7 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
19 extern const char kPlayStoreAppId[];
20
19 using CanHandleResolutionCallback = base::Callback<void(bool)>; 21 using CanHandleResolutionCallback = base::Callback<void(bool)>;
20 22
21 // Launch an app and let the system decides how big and where to place it. 23 // Launch an app and let the system decides how big and where to place it.
22 bool LaunchApp(content::BrowserContext* context, const std::string& app_id); 24 bool LaunchApp(content::BrowserContext* context, const std::string& app_id);
23 25
24 // Launch an app with given layout and let the system decides how big and where 26 // Launch an app with given layout and let the system decides how big and where
25 // to place it. 27 // to place it.
26 bool LaunchApp(content::BrowserContext* context, 28 bool LaunchApp(content::BrowserContext* context,
27 const std::string& app_id, 29 const std::string& app_id,
28 bool landscape_layout); 30 bool landscape_layout);
(...skipping 11 matching lines...) Expand all
40 const std::string& app_id, 42 const std::string& app_id,
41 const gfx::Rect& rect, 43 const gfx::Rect& rect,
42 const CanHandleResolutionCallback& callback); 44 const CanHandleResolutionCallback& callback);
43 45
44 // Uninstalls the package in ARC. 46 // Uninstalls the package in ARC.
45 void UninstallPackage(const std::string& package_name); 47 void UninstallPackage(const std::string& package_name);
46 48
47 } // namespace arc 49 } // namespace arc
48 50
49 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ 51 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.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