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

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

Issue 2220453002: Add a button to open TalkBack settings in chrome://settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review Created 4 years, 4 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"
(...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 // Open TalkBack settings window.
46 void ShowTalkBackSettings();
47
45 // Tests if the application can use the given target resolution. 48 // Tests if the application can use the given target resolution.
46 // The callback will receive the information once known. 49 // The callback will receive the information once known.
47 // A false will get returned if the result cannot be determined in which case 50 // A false will get returned if the result cannot be determined in which case
48 // the callback will not be called. 51 // the callback will not be called.
49 bool CanHandleResolution(content::BrowserContext* context, 52 bool CanHandleResolution(content::BrowserContext* context,
50 const std::string& app_id, 53 const std::string& app_id,
51 const gfx::Rect& rect, 54 const gfx::Rect& rect,
52 const CanHandleResolutionCallback& callback); 55 const CanHandleResolutionCallback& callback);
53 56
54 // Uninstalls the package in ARC. 57 // Uninstalls the package in ARC.
55 void UninstallPackage(const std::string& package_name); 58 void UninstallPackage(const std::string& package_name);
56 59
57 // Removes cached app shortcut icon in ARC. 60 // Removes cached app shortcut icon in ARC.
58 void RemoveCachedIcon(const std::string& icon_resource_id); 61 void RemoveCachedIcon(const std::string& icon_resource_id);
59 62
60 // Show package info for ARC package. 63 // Show package info for ARC package.
61 // Deprecated. Use ShowPackageInfoOnPage. 64 // Deprecated. Use ShowPackageInfoOnPage.
62 bool ShowPackageInfo(const std::string& package_name); 65 bool ShowPackageInfo(const std::string& package_name);
63 66
64 // Show package info for ARC package at the specified page. 67 // Show package info for ARC package at the specified page.
65 bool ShowPackageInfoOnPage(const std::string& package_name, 68 bool ShowPackageInfoOnPage(const std::string& package_name,
66 mojom::ShowPackageInfoPage page); 69 mojom::ShowPackageInfoPage page);
67 70
68 } // namespace arc 71 } // namespace arc
69 72
70 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ 73 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('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