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

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

Issue 226283003: Remove single-window-metro-mode code paths for the app launcher and apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thought I deleted this already Created 6 years, 8 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 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_CHROME_APPS_CLIENT_H_ 5 #ifndef CHROME_BROWSER_APPS_CHROME_APPS_CLIENT_H_
6 #define CHROME_BROWSER_APPS_CHROME_APPS_CLIENT_H_ 6 #define CHROME_BROWSER_APPS_CHROME_APPS_CLIENT_H_
7 7
8 #include "apps/apps_client.h" 8 #include "apps/apps_client.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 11
12 template<typename T> struct DefaultSingletonTraits; 12 template<typename T> struct DefaultSingletonTraits;
13 13
14 // The implementation of AppsClient for Chrome. 14 // The implementation of AppsClient for Chrome.
15 class ChromeAppsClient : public apps::AppsClient { 15 class ChromeAppsClient : public apps::AppsClient {
16 public: 16 public:
17 ChromeAppsClient(); 17 ChromeAppsClient();
18 virtual ~ChromeAppsClient(); 18 virtual ~ChromeAppsClient();
19 19
20 // Get the LazyInstance for ChromeAppsClient. 20 // Get the LazyInstance for ChromeAppsClient.
21 static ChromeAppsClient* GetInstance(); 21 static ChromeAppsClient* GetInstance();
22 22
23 private: 23 private:
24 friend struct DefaultSingletonTraits<ChromeAppsClient>; 24 friend struct DefaultSingletonTraits<ChromeAppsClient>;
25 25
26 // apps::AppsClient 26 // apps::AppsClient
27 virtual std::vector<content::BrowserContext*> GetLoadedBrowserContexts() 27 virtual std::vector<content::BrowserContext*> GetLoadedBrowserContexts()
28 OVERRIDE; 28 OVERRIDE;
29 virtual bool CheckAppLaunch(content::BrowserContext* context,
30 const extensions::Extension* extension) OVERRIDE;
31 virtual apps::AppWindow* CreateAppWindow( 29 virtual apps::AppWindow* CreateAppWindow(
32 content::BrowserContext* context, 30 content::BrowserContext* context,
33 const extensions::Extension* extension) OVERRIDE; 31 const extensions::Extension* extension) OVERRIDE;
34 virtual void IncrementKeepAliveCount() OVERRIDE; 32 virtual void IncrementKeepAliveCount() OVERRIDE;
35 virtual void DecrementKeepAliveCount() OVERRIDE; 33 virtual void DecrementKeepAliveCount() OVERRIDE;
36 34
37 DISALLOW_COPY_AND_ASSIGN(ChromeAppsClient); 35 DISALLOW_COPY_AND_ASSIGN(ChromeAppsClient);
38 }; 36 };
39 37
40 #endif // CHROME_BROWSER_APPS_CHROME_APPS_CLIENT_H_ 38 #endif // CHROME_BROWSER_APPS_CHROME_APPS_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/apps/app_launch_for_metro_restart_win.cc ('k') | chrome/browser/apps/chrome_apps_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698