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

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

Issue 2540713003: Revert of Propagate information about how ARC apps are launched (Closed)
Patch Set: Created 4 years 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"
(...skipping 10 matching lines...) Expand all
21 extern const char kPlayStorePackage[]; 21 extern const char kPlayStorePackage[];
22 extern const char kPlayStoreActivity[]; 22 extern const char kPlayStoreActivity[];
23 extern const char kSettingsAppId[]; 23 extern const char kSettingsAppId[];
24 24
25 using CanHandleResolutionCallback = base::Callback<void(bool)>; 25 using CanHandleResolutionCallback = base::Callback<void(bool)>;
26 26
27 // Checks if a given app should be hidden in launcher. 27 // Checks if a given app should be hidden in launcher.
28 bool ShouldShowInLauncher(const std::string& app_id); 28 bool ShouldShowInLauncher(const std::string& app_id);
29 29
30 // Launch an app and let the system decides how big and where to place it. 30 // Launch an app and let the system decides how big and where to place it.
31 bool LaunchApp(content::BrowserContext* context, 31 bool LaunchApp(content::BrowserContext* context, const std::string& app_id);
32 const std::string& app_id,
33 int event_flags);
34 32
35 // Launch Android Settings app. 33 // Launch Android Settings app.
36 bool LaunchAndroidSettingsApp(content::BrowserContext* context, 34 bool LaunchAndroidSettingsApp(content::BrowserContext* context);
37 int event_flags);
38 35
39 // Launch an app with given layout and let the system decides how big and where 36 // Launch an app with given layout and let the system decides how big and where
40 // to place it. 37 // to place it.
41 bool LaunchApp(content::BrowserContext* context, 38 bool LaunchApp(content::BrowserContext* context,
42 const std::string& app_id, 39 const std::string& app_id,
43 bool landscape_layout, 40 bool landscape_layout);
44 int event_flags);
45 41
46 // Launch an app and place it at the specified coordinates. 42 // Launch an app and place it at the specified coordinates.
47 bool LaunchAppWithRect(content::BrowserContext* context, 43 bool LaunchAppWithRect(content::BrowserContext* context,
48 const std::string& app_id, 44 const std::string& app_id,
49 const gfx::Rect& target_rect, 45 const gfx::Rect& target_rect);
50 int event_flags);
51 46
52 // Sets task active. 47 // Sets task active.
53 void SetTaskActive(int task_id); 48 void SetTaskActive(int task_id);
54 49
55 // Closes the task. 50 // Closes the task.
56 void CloseTask(int task_id); 51 void CloseTask(int task_id);
57 52
58 // Open TalkBack settings window. 53 // Open TalkBack settings window.
59 void ShowTalkBackSettings(); 54 void ShowTalkBackSettings();
60 55
61 // Tests if the application can use the given target resolution. 56 // Tests if the application can use the given target resolution.
62 // The callback will receive the information once known. 57 // The callback will receive the information once known.
63 // A false will get returned if the result cannot be determined in which case 58 // A false will get returned if the result cannot be determined in which case
64 // the callback will not be called. 59 // the callback will not be called.
65 bool CanHandleResolution(content::BrowserContext* context, 60 bool CanHandleResolution(content::BrowserContext* context,
66 const std::string& app_id, 61 const std::string& app_id,
67 const gfx::Rect& rect, 62 const gfx::Rect& rect,
68 const CanHandleResolutionCallback& callback); 63 const CanHandleResolutionCallback& callback);
69 64
70 // Uninstalls the package in ARC. 65 // Uninstalls the package in ARC.
71 void UninstallPackage(const std::string& package_name); 66 void UninstallPackage(const std::string& package_name);
72 67
73 // Removes cached app shortcut icon in ARC. 68 // Removes cached app shortcut icon in ARC.
74 void RemoveCachedIcon(const std::string& icon_resource_id); 69 void RemoveCachedIcon(const std::string& icon_resource_id);
75 70
76 // Show package info for ARC package. 71 // Show package info for ARC package.
77 // Deprecated. Use ShowPackageInfoOnPage. 72 // Deprecated. Use ShowPackageInfoOnPage.
78 bool ShowPackageInfo(const std::string& package_name); 73 bool ShowPackageInfo(const std::string& package_name);
79 74
80 // Show package info for ARC package at the specified page. 75 // Show package info for ARC package at the specified page.
81 bool ShowPackageInfoOnPage(const std::string& package_name, 76 bool ShowPackageInfoOnPage(const std::string& package_name,
82 mojom::ShowPackageInfoPage page); 77 mojom::ShowPackageInfoPage page);
83 78
84 } // namespace arc 79 } // namespace arc
85 80
86 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ 81 #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_unittest.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