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

Side by Side Diff: apps/shell/browser/shell_apps_client.cc

Issue 171523005: BACKUP: NativeAppWindowView - before splitting CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/shell/browser/shell_apps_client.h ('k') | apps/shell/browser/shell_browser_main_parts.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "apps/shell/browser/shell_apps_client.h"
6
7 #include "apps/app_window.h"
8 #include "apps/shell/browser/shell_shell_window_delegate.h"
9
10 using content::BrowserContext;
11
12 namespace apps {
13
14 ShellAppsClient::ShellAppsClient(BrowserContext* browser_context)
15 : browser_context_(browser_context) {}
16
17 ShellAppsClient::~ShellAppsClient() {}
18
19 std::vector<BrowserContext*> ShellAppsClient::GetLoadedBrowserContexts() {
20 std::vector<BrowserContext*> browser_contexts;
21 browser_contexts.push_back(browser_context_);
22 return browser_contexts;
23 }
24
25 bool ShellAppsClient::CheckAppLaunch(BrowserContext* context,
26 const extensions::Extension* extension) {
27 return true;
28 }
29
30 AppWindow* ShellAppsClient::CreateAppWindow(
31 BrowserContext* context,
32 const extensions::Extension* extension) {
33 return new AppWindow(context, new ShellShellWindowDelegate, extension);
34 }
35
36 void ShellAppsClient::StartKeepAlive() {}
37
38 void ShellAppsClient::EndKeepAlive() {}
39
40 } // namespace apps
OLDNEW
« no previous file with comments | « apps/shell/browser/shell_apps_client.h ('k') | apps/shell/browser/shell_browser_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698