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

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

Issue 583583008: Rename AppsClient -> AppWindowClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac & test 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
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 #include "athena/extensions/shell/athena_shell_apps_client.h" 5 #include "athena/extensions/shell/athena_shell_app_window_client.h"
6 6
7 #include "athena/extensions/shell/athena_shell_app_delegate.h" 7 #include "athena/extensions/shell/athena_shell_app_delegate.h"
8 #include "extensions/browser/app_window/app_window.h" 8 #include "extensions/browser/app_window/app_window.h"
9 9
10 namespace athena { 10 namespace athena {
11 11
12 AthenaShellAppsClient::AthenaShellAppsClient(content::BrowserContext* context) 12 AthenaShellAppWindowClient::AthenaShellAppWindowClient(
13 content::BrowserContext* context)
13 : context_(context) { 14 : context_(context) {
14 DCHECK(context_); 15 DCHECK(context_);
15 } 16 }
16 17
17 AthenaShellAppsClient::~AthenaShellAppsClient() { 18 AthenaShellAppWindowClient::~AthenaShellAppWindowClient() {
18 } 19 }
19 20
20 std::vector<content::BrowserContext*> 21 std::vector<content::BrowserContext*>
21 AthenaShellAppsClient::GetLoadedBrowserContexts() { 22 AthenaShellAppWindowClient::GetLoadedBrowserContexts() {
22 std::vector<content::BrowserContext*> contexts(1, context_); 23 std::vector<content::BrowserContext*> contexts(1, context_);
23 return contexts; 24 return contexts;
24 } 25 }
25 26
26 extensions::AppWindow* AthenaShellAppsClient::CreateAppWindow( 27 extensions::AppWindow* AthenaShellAppWindowClient::CreateAppWindow(
27 content::BrowserContext* context, 28 content::BrowserContext* context,
28 const extensions::Extension* extension) { 29 const extensions::Extension* extension) {
29 return new extensions::AppWindow( 30 return new extensions::AppWindow(
30 context, new AthenaShellAppDelegate, extension); 31 context, new AthenaShellAppDelegate, extension);
31 } 32 }
32 33
33 void AthenaShellAppsClient::OpenDevToolsWindow( 34 void AthenaShellAppWindowClient::OpenDevToolsWindow(
34 content::WebContents* web_contents, 35 content::WebContents* web_contents,
35 const base::Closure& callback) { 36 const base::Closure& callback) {
36 // TODO(oshima): Figure out what to do. 37 // TODO(oshima): Figure out what to do.
37 } 38 }
38 39
39 bool AthenaShellAppsClient::IsCurrentChannelOlderThanDev() { 40 bool AthenaShellAppWindowClient::IsCurrentChannelOlderThanDev() {
40 return false; 41 return false;
41 } 42 }
42 43
43 } // namespace athena 44 } // namespace athena
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698