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

Side by Side Diff: chrome/browser/apps/app_launch_for_metro_restart_win.h

Issue 25034003: Moved apps metro code from apps to chrome/browser/apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and fix unit test Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « apps/prefs.cc ('k') | chrome/browser/apps/app_launch_for_metro_restart_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H 5 #ifndef CHROME_BROWSER_APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H_
6 #define 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" 10 #include "base/basictypes.h"
11 11
12 class PrefRegistrySimple;
12 class Profile; 13 class Profile;
13 14
14 namespace apps { 15 namespace app_metro_launch {
15 16
16 // Handles launching apps on browser startup due to an attempt to launch an app 17 // Handles launching apps on browser startup due to an attempt to launch an app
17 // in Windows 8 Metro mode. 18 // in Windows 8 Metro mode.
18 void HandleAppLaunchForMetroRestart(Profile* profile); 19 void HandleAppLaunchForMetroRestart(Profile* profile);
19 20
20 // Set a local pref to launch an app before relaunching chrome in desktop mode. 21 // Set a local pref to launch an app before relaunching chrome in desktop mode.
21 void SetAppLaunchForMetroRestart(Profile* profile, 22 void SetAppLaunchForMetroRestart(Profile* profile,
22 const std::string& extension_id); 23 const std::string& extension_id);
23 24
24 } // namespace apps 25 // Register preferences to do with launching apps in Metro.
26 void RegisterPrefs(PrefRegistrySimple* registry);
25 27
26 #endif // APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H 28 } // namespace app_metro_launch
29
30 #endif // CHROME_BROWSER_APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H_
OLDNEW
« no previous file with comments | « apps/prefs.cc ('k') | chrome/browser/apps/app_launch_for_metro_restart_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698