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

Side by Side Diff: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h

Issue 2496903003: arc: Add Arc Kiosk app service and ability to launch kiosk apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@policy_comp_parse
Patch Set: rebase Created 4 years, 1 month 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_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 ArcAppWindowLauncherController(ChromeLauncherController* owner, 43 ArcAppWindowLauncherController(ChromeLauncherController* owner,
44 ash::ShelfDelegate* shelf_delegate); 44 ash::ShelfDelegate* shelf_delegate);
45 ~ArcAppWindowLauncherController() override; 45 ~ArcAppWindowLauncherController() override;
46 46
47 // Returns shelf app id. Play Store app is mapped to Arc platform host app. 47 // Returns shelf app id. Play Store app is mapped to Arc platform host app.
48 static std::string GetShelfAppIdFromArcAppId(const std::string& arc_app_id); 48 static std::string GetShelfAppIdFromArcAppId(const std::string& arc_app_id);
49 49
50 // Returns Arc app id. Arc platform host app is mapped to Play Store app. 50 // Returns Arc app id. Arc platform host app is mapped to Play Store app.
51 static std::string GetArcAppIdFromShelfAppId(const std::string& shelf_app_id); 51 static std::string GetArcAppIdFromShelfAppId(const std::string& shelf_app_id);
52 52
53 // Returns Arc task id for the window.
54 static int GetWindowTaskId(aura::Window* window);
55
53 // AppWindowLauncherController: 56 // AppWindowLauncherController:
54 void ActiveUserChanged(const std::string& user_email) override; 57 void ActiveUserChanged(const std::string& user_email) override;
55 void AdditionalUserAddedToSession(Profile* profile) override; 58 void AdditionalUserAddedToSession(Profile* profile) override;
56 59
57 // aura::EnvObserver: 60 // aura::EnvObserver:
58 void OnWindowInitialized(aura::Window* window) override; 61 void OnWindowInitialized(aura::Window* window) override;
59 62
60 // aura::WindowObserver: 63 // aura::WindowObserver:
61 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; 64 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override;
62 void OnWindowDestroying(aura::Window* window) override; 65 void OnWindowDestroying(aura::Window* window) override;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 TaskIdToAppWindowInfo task_id_to_app_window_info_; 121 TaskIdToAppWindowInfo task_id_to_app_window_info_;
119 ShelfAppIdToAppControllerMap app_controller_map_; 122 ShelfAppIdToAppControllerMap app_controller_map_;
120 std::vector<aura::Window*> observed_windows_; 123 std::vector<aura::Window*> observed_windows_;
121 Profile* observed_profile_ = nullptr; 124 Profile* observed_profile_ = nullptr;
122 bool observing_shell_ = false; 125 bool observing_shell_ = false;
123 126
124 DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherController); 127 DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherController);
125 }; 128 };
126 129
127 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ 130 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698