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

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

Issue 2751913004: arc: Fix race conditon when Play Store is started too early. (Closed)
Patch Set: adressed Hidehiko's comments Created 3 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"
(...skipping 25 matching lines...) Expand all
36 36
37 // Launch Android Settings app. 37 // Launch Android Settings app.
38 bool LaunchAndroidSettingsApp(content::BrowserContext* context, 38 bool LaunchAndroidSettingsApp(content::BrowserContext* context,
39 int event_flags); 39 int event_flags);
40 40
41 // Launch Play Store app. 41 // Launch Play Store app.
42 bool LaunchPlayStoreWithUrl(const std::string& url); 42 bool LaunchPlayStoreWithUrl(const std::string& url);
43 43
44 // Launch an app with given layout and let the system decides how big and where 44 // Launch an app with given layout and let the system decides how big and where
45 // to place it. 45 // to place it.
46 // TODO (khmel) Rename this method to reduce the chance of using another
hidehiko 2017/03/16 16:23:19 Nice comment! Or, maybe replacing "bool" for layo
khmel 2017/03/16 16:38:47 Nice alternative
47 // LaunchApp with different signature mistakenly.
46 bool LaunchApp(content::BrowserContext* context, 48 bool LaunchApp(content::BrowserContext* context,
47 const std::string& app_id, 49 const std::string& app_id,
48 bool landscape_layout, 50 bool landscape_layout,
49 int event_flags); 51 int event_flags);
50 52
51 // Launch an app and place it at the specified coordinates. 53 // Launch an app and place it at the specified coordinates.
52 bool LaunchAppWithRect(content::BrowserContext* context, 54 bool LaunchAppWithRect(content::BrowserContext* context,
53 const std::string& app_id, 55 const std::string& app_id,
54 const gfx::Rect& target_rect, 56 const gfx::Rect& target_rect,
55 int event_flags); 57 int event_flags);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // Shows package info for ARC package at the specified page. 90 // Shows package info for ARC package at the specified page.
89 bool ShowPackageInfoOnPage(const std::string& package_name, 91 bool ShowPackageInfoOnPage(const std::string& package_name,
90 mojom::ShowPackageInfoPage page); 92 mojom::ShowPackageInfoPage page);
91 93
92 // Returns true if |id| represents either ARC app or ARC shelf group. 94 // Returns true if |id| represents either ARC app or ARC shelf group.
93 bool IsArcItem(content::BrowserContext* context, const std::string& id); 95 bool IsArcItem(content::BrowserContext* context, const std::string& id);
94 96
95 } // namespace arc 97 } // namespace arc
96 98
97 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ 99 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698