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

Side by Side Diff: athena/extensions/shell/athena_shell_apps_client.cc

Issue 563083003: V2 app support step3: Athena's NativeAppWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
(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 "athena/extensions/shell/athena_shell_apps_client.h"
6
7 #include "athena/extensions/shell/athena_shell_app_delegate.h"
8 #include "extensions/browser/app_window/app_window.h"
9
10 namespace athena {
11
12 AthenaShellAppsClient::AthenaShellAppsClient(content::BrowserContext* context)
13 : context_(context) {
14 DCHECK(context_);
15 }
16
17 AthenaShellAppsClient::~AthenaShellAppsClient() {
18 }
19
20 std::vector<content::BrowserContext*>
21 AthenaShellAppsClient::GetLoadedBrowserContexts() {
22 std::vector<content::BrowserContext*> contexts(1, context_);
23 return contexts;
24 }
25
26 extensions::AppWindow* AthenaShellAppsClient::CreateAppWindow(
27 content::BrowserContext* context,
28 const extensions::Extension* extension) {
29 return new extensions::AppWindow(
30 context, new AthenaShellAppDelegate, extension);
31 }
32
33 void AthenaShellAppsClient::OpenDevToolsWindow(
34 content::WebContents* web_contents,
35 const base::Closure& callback) {
36 // TODO(oshima): Figure out what to do.
37 }
38
39 bool AthenaShellAppsClient::IsCurrentChannelOlderThanDev() {
40 return false;
41 }
42
43 } // namespace athena
OLDNEW
« no previous file with comments | « athena/extensions/shell/athena_shell_apps_client.h ('k') | athena/extensions/shell/extensions_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698