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

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

Issue 547593002: Add ShellAppsClient, ShellAppDelegate, ShellNativeAppWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@apifeatures
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 "extensions/shell/browser/shell_apps_client.h"
6
7 #include "extensions/browser/app_window/app_window.h"
8 #include "extensions/shell/browser/desktop_controller.h"
9 #include "extensions/shell/browser/shell_app_delegate.h"
10 #include "extensions/shell/browser/shell_native_app_window.h"
11 #include "ui/aura/window.h"
12 #include "ui/aura/window_tree_host.h"
13
14 namespace extensions {
15
16 ShellAppsClient::ShellAppsClient() {
17 }
18
19 ShellAppsClient::~ShellAppsClient() {
20 }
21
22 std::vector<content::BrowserContext*>
23 ShellAppsClient::GetLoadedBrowserContexts() {
24 NOTIMPLEMENTED();
25 return std::vector<content::BrowserContext*>();
26 }
27
28 AppWindow* ShellAppsClient::CreateAppWindow(content::BrowserContext* context,
29 const Extension* extension) {
30 return new AppWindow(context, new ShellAppDelegate, extension);
31 }
32
33 NativeAppWindow* ShellAppsClient::CreateNativeAppWindow(
34 AppWindow* window,
35 const AppWindow::CreateParams& params) {
36 ShellNativeAppWindow* native_app_window =
37 new ShellNativeAppWindow(window, params);
38 DesktopController::instance()->GetHost()->window()->AddChild(
39 native_app_window->GetNativeWindow());
James Cook 2014/09/05 16:26:42 Do you need to call Show() on the Aura window? Th
hashimoto 2014/09/05 17:37:17 API implementation (extensions/browser/api/app_win
James Cook 2014/09/05 17:41:51 OK, that makes sense.
40 return native_app_window;
41 }
42
43 void ShellAppsClient::IncrementKeepAliveCount() {
44 NOTIMPLEMENTED();
45 }
46
47 void ShellAppsClient::DecrementKeepAliveCount() {
48 NOTIMPLEMENTED();
49 }
50
51 void ShellAppsClient::OpenDevToolsWindow(content::WebContents* web_contents,
52 const base::Closure& callback) {
53 NOTIMPLEMENTED();
54 }
55
56 bool ShellAppsClient::IsCurrentChannelOlderThanDev() {
57 return false;
58 }
59
60 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698