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

Side by Side Diff: apps/shell/browser/shell_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
« no previous file with comments | « apps/launcher.cc ('k') | apps/shell/browser/shell_apps_client.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SHELL_BROWSER_SHELL_APPS_CLIENT_H_ 5 #ifndef APPS_SHELL_BROWSER_SHELL_APPS_CLIENT_H_
6 #define APPS_SHELL_BROWSER_SHELL_APPS_CLIENT_H_ 6 #define APPS_SHELL_BROWSER_SHELL_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 namespace content { 12 namespace content {
13 class BrowserContext; 13 class BrowserContext;
14 } 14 }
15 15
16 namespace apps { 16 namespace apps {
17 17
18 // The implementation of AppsClient for app_shell. 18 // The implementation of AppsClient for app_shell.
19 class ShellAppsClient : public AppsClient { 19 class ShellAppsClient : public AppsClient {
20 public: 20 public:
21 // For app_shell only a single browser context is supported. 21 // For app_shell only a single browser context is supported.
22 explicit ShellAppsClient(content::BrowserContext* browser_context); 22 explicit ShellAppsClient(content::BrowserContext* browser_context);
23 virtual ~ShellAppsClient(); 23 virtual ~ShellAppsClient();
24 24
25 private: 25 private:
26 // apps::AppsClient implementation: 26 // apps::AppsClient implementation:
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 AppWindow* CreateAppWindow(content::BrowserContext* context, 29 virtual AppWindow* CreateAppWindow(content::BrowserContext* context,
32 const extensions::Extension* extension) 30 const extensions::Extension* extension)
33 OVERRIDE; 31 OVERRIDE;
34 virtual void IncrementKeepAliveCount() OVERRIDE; 32 virtual void IncrementKeepAliveCount() OVERRIDE;
35 virtual void DecrementKeepAliveCount() OVERRIDE; 33 virtual void DecrementKeepAliveCount() OVERRIDE;
36 34
37 content::BrowserContext* browser_context_; 35 content::BrowserContext* browser_context_;
38 36
39 DISALLOW_COPY_AND_ASSIGN(ShellAppsClient); 37 DISALLOW_COPY_AND_ASSIGN(ShellAppsClient);
40 }; 38 };
41 39
42 } // namespace apps 40 } // namespace apps
43 41
44 #endif // APPS_SHELL_BROWSER_SHELL_APPS_CLIENT_H_ 42 #endif // APPS_SHELL_BROWSER_SHELL_APPS_CLIENT_H_
OLDNEW
« no previous file with comments | « apps/launcher.cc ('k') | apps/shell/browser/shell_apps_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698