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

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

Issue 2282023002: arc: Support window recreation. (Closed)
Patch Set: rebase + nits Created 4 years, 3 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 | « no previous file | chrome/browser/ui/app_list/arc/arc_app_utils.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 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 24 matching lines...) Expand all
35 // to place it. 35 // to place it.
36 bool LaunchApp(content::BrowserContext* context, 36 bool LaunchApp(content::BrowserContext* context,
37 const std::string& app_id, 37 const std::string& app_id,
38 bool landscape_layout); 38 bool landscape_layout);
39 39
40 // Launch an app and place it at the specified coordinates. 40 // Launch an app and place it at the specified coordinates.
41 bool LaunchAppWithRect(content::BrowserContext* context, 41 bool LaunchAppWithRect(content::BrowserContext* context,
42 const std::string& app_id, 42 const std::string& app_id,
43 const gfx::Rect& target_rect); 43 const gfx::Rect& target_rect);
44 44
45 // Sets task active.
46 void SetTaskActive(int task_id);
47
48 // Closes the task.
49 void CloseTask(int task_id);
50
45 // Open TalkBack settings window. 51 // Open TalkBack settings window.
46 void ShowTalkBackSettings(); 52 void ShowTalkBackSettings();
47 53
48 // Tests if the application can use the given target resolution. 54 // Tests if the application can use the given target resolution.
49 // The callback will receive the information once known. 55 // The callback will receive the information once known.
50 // A false will get returned if the result cannot be determined in which case 56 // A false will get returned if the result cannot be determined in which case
51 // the callback will not be called. 57 // the callback will not be called.
52 bool CanHandleResolution(content::BrowserContext* context, 58 bool CanHandleResolution(content::BrowserContext* context,
53 const std::string& app_id, 59 const std::string& app_id,
54 const gfx::Rect& rect, 60 const gfx::Rect& rect,
55 const CanHandleResolutionCallback& callback); 61 const CanHandleResolutionCallback& callback);
56 62
57 // Uninstalls the package in ARC. 63 // Uninstalls the package in ARC.
58 void UninstallPackage(const std::string& package_name); 64 void UninstallPackage(const std::string& package_name);
59 65
60 // Removes cached app shortcut icon in ARC. 66 // Removes cached app shortcut icon in ARC.
61 void RemoveCachedIcon(const std::string& icon_resource_id); 67 void RemoveCachedIcon(const std::string& icon_resource_id);
62 68
63 // Show package info for ARC package. 69 // Show package info for ARC package.
64 // Deprecated. Use ShowPackageInfoOnPage. 70 // Deprecated. Use ShowPackageInfoOnPage.
65 bool ShowPackageInfo(const std::string& package_name); 71 bool ShowPackageInfo(const std::string& package_name);
66 72
67 // Show package info for ARC package at the specified page. 73 // Show package info for ARC package at the specified page.
68 bool ShowPackageInfoOnPage(const std::string& package_name, 74 bool ShowPackageInfoOnPage(const std::string& package_name,
69 mojom::ShowPackageInfoPage page); 75 mojom::ShowPackageInfoPage page);
70 76
71 } // namespace arc 77 } // namespace arc
72 78
73 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ 79 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | 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