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

Side by Side Diff: extensions/shell/browser/shell_app_window_client.cc

Issue 586613002: Remove AppsClient::GetLoadedBrowserContexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move to chrome/browser/apps 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 "extensions/shell/browser/shell_app_window_client.h" 5 #include "extensions/shell/browser/shell_app_window_client.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "extensions/browser/app_window/app_window.h" 9 #include "extensions/browser/app_window/app_window.h"
10 #include "extensions/shell/browser/desktop_controller.h" 10 #include "extensions/shell/browser/desktop_controller.h"
11 #include "extensions/shell/browser/shell_native_app_window.h" 11 #include "extensions/shell/browser/shell_native_app_window.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 ShellAppWindowClient::ShellAppWindowClient() { 15 ShellAppWindowClient::ShellAppWindowClient() {
16 } 16 }
17 17
18 ShellAppWindowClient::~ShellAppWindowClient() { 18 ShellAppWindowClient::~ShellAppWindowClient() {
19 } 19 }
20 20
21 std::vector<content::BrowserContext*>
22 ShellAppWindowClient::GetLoadedBrowserContexts() {
23 NOTIMPLEMENTED();
24 return std::vector<content::BrowserContext*>();
25 }
26
27 AppWindow* ShellAppWindowClient::CreateAppWindow( 21 AppWindow* ShellAppWindowClient::CreateAppWindow(
28 content::BrowserContext* context, 22 content::BrowserContext* context,
29 const Extension* extension) { 23 const Extension* extension) {
30 return DesktopController::instance()->CreateAppWindow(context, extension); 24 return DesktopController::instance()->CreateAppWindow(context, extension);
31 } 25 }
32 26
33 NativeAppWindow* ShellAppWindowClient::CreateNativeAppWindow( 27 NativeAppWindow* ShellAppWindowClient::CreateNativeAppWindow(
34 AppWindow* window, 28 AppWindow* window,
35 const AppWindow::CreateParams& params) { 29 const AppWindow::CreateParams& params) {
36 ShellNativeAppWindow* native_app_window = 30 ShellNativeAppWindow* native_app_window =
37 new ShellNativeAppWindow(window, params); 31 new ShellNativeAppWindow(window, params);
38 DesktopController::instance()->AddAppWindow( 32 DesktopController::instance()->AddAppWindow(
39 native_app_window->GetNativeWindow()); 33 native_app_window->GetNativeWindow());
40 return native_app_window; 34 return native_app_window;
41 } 35 }
42 36
43 void ShellAppWindowClient::OpenDevToolsWindow( 37 void ShellAppWindowClient::OpenDevToolsWindow(
44 content::WebContents* web_contents, 38 content::WebContents* web_contents,
45 const base::Closure& callback) { 39 const base::Closure& callback) {
46 NOTIMPLEMENTED(); 40 NOTIMPLEMENTED();
47 } 41 }
48 42
49 bool ShellAppWindowClient::IsCurrentChannelOlderThanDev() { 43 bool ShellAppWindowClient::IsCurrentChannelOlderThanDev() {
50 return false; 44 return false;
51 } 45 }
52 46
53 } // namespace extensions 47 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698