OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H_ | 5 #ifndef CHROME_BROWSER_APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H_ |
6 #define CHROME_BROWSER_APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H_ | 6 #define CHROME_BROWSER_APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 | 10 |
12 class PrefRegistrySimple; | 11 class PrefRegistrySimple; |
13 class Profile; | 12 class Profile; |
14 | 13 |
15 namespace app_metro_launch { | 14 namespace app_metro_launch { |
16 | 15 |
17 // Handles launching apps on browser startup due to an attempt to launch an app | 16 // Handles launching apps on browser startup due to an attempt to launch an app |
18 // in Windows 8 Metro mode. | 17 // in Windows 8 Metro mode. |
19 void HandleAppLaunchForMetroRestart(Profile* profile); | 18 void HandleAppLaunchForMetroRestart(Profile* profile); |
20 | 19 |
21 // Set a local pref to launch an app before relaunching chrome in desktop mode. | 20 // Set a local pref to launch an app before relaunching chrome in desktop mode. |
22 void SetAppLaunchForMetroRestart(Profile* profile, | 21 void SetAppLaunchForMetroRestart(Profile* profile, |
23 const std::string& extension_id); | 22 const std::string& extension_id); |
24 | 23 |
25 // Register preferences to do with launching apps in Metro. | 24 // Register preferences to do with launching apps in Metro. |
26 void RegisterPrefs(PrefRegistrySimple* registry); | 25 void RegisterPrefs(PrefRegistrySimple* registry); |
27 | 26 |
28 } // namespace app_metro_launch | 27 } // namespace app_metro_launch |
29 | 28 |
30 #endif // CHROME_BROWSER_APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H_ | 29 #endif // CHROME_BROWSER_APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H_ |
OLD | NEW |