Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LAUNCHER_CONTROLLER_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_CONTROLLER_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_CONTROLLER_HELPER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_CONTROLLER_HELPER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 // Returns the app id of the specified tab, or an empty string if there is | 35 // Returns the app id of the specified tab, or an empty string if there is |
| 36 // no app. All known profiles will be queried for this. | 36 // no app. All known profiles will be queried for this. |
| 37 virtual std::string GetAppID(content::WebContents* tab); | 37 virtual std::string GetAppID(content::WebContents* tab); |
| 38 | 38 |
| 39 // Returns true if |id| is valid for the currently active profile. | 39 // Returns true if |id| is valid for the currently active profile. |
| 40 // Used during restore to ignore no longer valid extensions. | 40 // Used during restore to ignore no longer valid extensions. |
| 41 // Note that already running applications are ignored by the restore process. | 41 // Note that already running applications are ignored by the restore process. |
| 42 virtual bool IsValidIDForCurrentUser(const std::string& id) const; | 42 virtual bool IsValidIDForCurrentUser(const std::string& id) const; |
| 43 | 43 |
| 44 void LaunchApp(const std::string& app_id, | 44 void LaunchApp(const std::string& app_id, |
| 45 const std::string& launch_id, | |
|
James Cook
2017/02/08 17:37:00
ditto
msw
2017/02/09 00:42:00
Done.
| |
| 45 ash::LaunchSource source, | 46 ash::LaunchSource source, |
| 46 int event_flags); | 47 int event_flags); |
| 47 | 48 |
| 48 void LaunchAppWithLaunchId(const std::string& app_id, | |
| 49 const std::string& launch_id, | |
| 50 ash::LaunchSource source, | |
| 51 int event_flags); | |
| 52 | |
| 53 virtual ArcAppListPrefs* GetArcAppListPrefs() const; | 49 virtual ArcAppListPrefs* GetArcAppListPrefs() const; |
| 54 | 50 |
| 55 Profile* profile() { return profile_; } | 51 Profile* profile() { return profile_; } |
| 56 const Profile* profile() const { return profile_; } | 52 const Profile* profile() const { return profile_; } |
| 57 void set_profile(Profile* profile) { profile_ = profile; } | 53 void set_profile(Profile* profile) { profile_ = profile; } |
| 58 | 54 |
| 59 private: | 55 private: |
| 60 // ExtensionEnableFlowDelegate: | 56 // ExtensionEnableFlowDelegate: |
| 61 void ExtensionEnableFlowFinished() override; | 57 void ExtensionEnableFlowFinished() override; |
| 62 void ExtensionEnableFlowAborted(bool user_initiated) override; | 58 void ExtensionEnableFlowAborted(bool user_initiated) override; |
| 63 | 59 |
| 64 // The currently active profile for the usage of |GetAppID|. | 60 // The currently active profile for the usage of |GetAppID|. |
| 65 Profile* profile_; | 61 Profile* profile_; |
| 66 std::unique_ptr<ExtensionEnableFlow> extension_enable_flow_; | 62 std::unique_ptr<ExtensionEnableFlow> extension_enable_flow_; |
| 67 | 63 |
| 68 DISALLOW_COPY_AND_ASSIGN(LauncherControllerHelper); | 64 DISALLOW_COPY_AND_ASSIGN(LauncherControllerHelper); |
| 69 }; | 65 }; |
| 70 | 66 |
| 71 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_CONTROLLER_HELPER_H_ | 67 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_CONTROLLER_HELPER_H_ |
| OLD | NEW |