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

Unified 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: Add missing virtual 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/shell/browser/shell_apps_client.h ('k') | extensions/shell/browser/shell_browser_main_parts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_apps_client.cc
diff --git a/extensions/shell/browser/shell_apps_client.cc b/extensions/shell/browser/shell_apps_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..94a525b1c4210ad29972e4c8ce9c46b257ad8156
--- /dev/null
+++ b/extensions/shell/browser/shell_apps_client.cc
@@ -0,0 +1,58 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "extensions/shell/browser/shell_apps_client.h"
+
+#include "extensions/browser/app_window/app_window.h"
+#include "extensions/shell/browser/desktop_controller.h"
+#include "extensions/shell/browser/shell_app_delegate.h"
+#include "extensions/shell/browser/shell_native_app_window.h"
+
+namespace extensions {
+
+ShellAppsClient::ShellAppsClient() {
+}
+
+ShellAppsClient::~ShellAppsClient() {
+}
+
+std::vector<content::BrowserContext*>
+ShellAppsClient::GetLoadedBrowserContexts() {
+ NOTIMPLEMENTED();
+ return std::vector<content::BrowserContext*>();
+}
+
+AppWindow* ShellAppsClient::CreateAppWindow(content::BrowserContext* context,
+ const Extension* extension) {
+ return new AppWindow(context, new ShellAppDelegate, extension);
+}
+
+NativeAppWindow* ShellAppsClient::CreateNativeAppWindow(
+ AppWindow* window,
+ const AppWindow::CreateParams& params) {
+ ShellNativeAppWindow* native_app_window =
+ new ShellNativeAppWindow(window, params);
+ DesktopController::instance()->AddAppWindow(
+ native_app_window->GetNativeWindow());
+ return native_app_window;
+}
+
+void ShellAppsClient::IncrementKeepAliveCount() {
+ NOTIMPLEMENTED();
+}
+
+void ShellAppsClient::DecrementKeepAliveCount() {
+ NOTIMPLEMENTED();
+}
+
+void ShellAppsClient::OpenDevToolsWindow(content::WebContents* web_contents,
+ const base::Closure& callback) {
+ NOTIMPLEMENTED();
+}
+
+bool ShellAppsClient::IsCurrentChannelOlderThanDev() {
+ return false;
+}
+
+} // namespace extensions
« no previous file with comments | « extensions/shell/browser/shell_apps_client.h ('k') | extensions/shell/browser/shell_browser_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698