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

Side by Side Diff: chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.h

Issue 2758593002: Enable screen capture for ARC++ Kiosk (Closed)
Patch Set: 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_CHROMEOS_APP_MODE_ARC_ARC_KIOSK_APP_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_ARC_ARC_KIOSK_APP_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_ARC_ARC_KIOSK_APP_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_ARC_ARC_KIOSK_APP_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const AccountId& GetAutoLaunchAccountId() const; 74 const AccountId& GetAutoLaunchAccountId() const;
75 75
76 // Returns app that should be started for given account id. 76 // Returns app that should be started for given account id.
77 const ArcKioskApp* GetAppByAccountId(const AccountId& account_id); 77 const ArcKioskApp* GetAppByAccountId(const AccountId& account_id);
78 78
79 const ArcKioskApps& GetAllApps() const { return apps_; } 79 const ArcKioskApps& GetAllApps() const { return apps_; }
80 80
81 void AddObserver(ArcKioskAppManagerObserver* observer); 81 void AddObserver(ArcKioskAppManagerObserver* observer);
82 void RemoveObserver(ArcKioskAppManagerObserver* observer); 82 void RemoveObserver(ArcKioskAppManagerObserver* observer);
83 83
84 void SetWasAutoLaunchedWithZeroDelay(const AccountId& account_id);
85 const AccountId& GetWasAutoLaunchedWithZeroDelay() const;
86
84 private: 87 private:
85 // Updates apps_ based on CrosSettings. 88 // Updates apps_ based on CrosSettings.
86 void UpdateApps(); 89 void UpdateApps();
87 90
88 // Removes cryptohomes of the removed apps. Terminates the session if 91 // Removes cryptohomes of the removed apps. Terminates the session if
89 // a removed app is running. 92 // a removed app is running.
90 void ClearRemovedApps(const ArcKioskApps& old_apps); 93 void ClearRemovedApps(const ArcKioskApps& old_apps);
91 94
92 ArcKioskApps apps_; 95 ArcKioskApps apps_;
93 AccountId auto_launch_account_id_; 96 AccountId auto_launch_account_id_;
Ivan Šandrk 2017/03/16 18:30:43 Here's the auto_launch_account_id_
97 AccountId currently_auto_launched_with_zero_delay_account_id_;
94 base::ObserverList<ArcKioskAppManagerObserver, true> observers_; 98 base::ObserverList<ArcKioskAppManagerObserver, true> observers_;
95 99
96 std::unique_ptr<CrosSettings::ObserverSubscription> 100 std::unique_ptr<CrosSettings::ObserverSubscription>
97 local_accounts_subscription_; 101 local_accounts_subscription_;
98 std::unique_ptr<CrosSettings::ObserverSubscription> 102 std::unique_ptr<CrosSettings::ObserverSubscription>
99 local_account_auto_login_id_subscription_; 103 local_account_auto_login_id_subscription_;
100 104
101 DISALLOW_COPY_AND_ASSIGN(ArcKioskAppManager); 105 DISALLOW_COPY_AND_ASSIGN(ArcKioskAppManager);
102 }; 106 };
103 107
104 } // namespace chromeos 108 } // namespace chromeos
105 109
106 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_ARC_ARC_KIOSK_APP_MANAGER_H_ 110 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_ARC_ARC_KIOSK_APP_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698