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

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

Issue 2308643002: arc: Make Play Store item persistent in app list. (Closed)
Patch Set: fix unit_tests 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
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_LAUNCHER_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LAUNCHER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LAUNCHER_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 ArcAppLauncher(content::BrowserContext* context, 21 ArcAppLauncher(content::BrowserContext* context,
22 const std::string& app_id, 22 const std::string& app_id,
23 bool landscape_layout); 23 bool landscape_layout);
24 ~ArcAppLauncher() override; 24 ~ArcAppLauncher() override;
25 25
26 bool app_launched() const { return app_launched_; } 26 bool app_launched() const { return app_launched_; }
27 27
28 // ArcAppListPrefs::Observer: 28 // ArcAppListPrefs::Observer:
29 void OnAppRegistered(const std::string& app_id, 29 void OnAppRegistered(const std::string& app_id,
30 const ArcAppListPrefs::AppInfo& app_info) override; 30 const ArcAppListPrefs::AppInfo& app_info) override;
31 void OnAppReadyChanged(const std::string& app_id, bool ready) override;
31 32
32 private: 33 private:
33 void LaunchApp(); 34 void LaunchApp();
34 35
35 // Unowned pointer. 36 // Unowned pointer.
36 content::BrowserContext* context_; 37 content::BrowserContext* context_;
37 // Arc app id and requested layout. 38 // Arc app id and requested layout.
38 const std::string app_id_; 39 const std::string app_id_;
39 const bool landscape_layout_; 40 const bool landscape_layout_;
40 // Flag idicating that Arc app was launched. 41 // Flag idicating that Arc app was launched.
41 bool app_launched_ = false; 42 bool app_launched_ = false;
42 43
43 DISALLOW_COPY_AND_ASSIGN(ArcAppLauncher); 44 DISALLOW_COPY_AND_ASSIGN(ArcAppLauncher);
44 }; 45 };
45 46
46 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LAUNCHER_H_ 47 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LAUNCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_icon.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698