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

Unified Diff: apps/shell/browser/default_shell_app_window_controller.cc

Issue 412713002: Move apps/shell to extensions/shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 40% Created 6 years, 5 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
Index: apps/shell/browser/default_shell_app_window_controller.cc
diff --git a/apps/shell/browser/default_shell_app_window_controller.cc b/apps/shell/browser/default_shell_app_window_controller.cc
deleted file mode 100644
index 3ec5b6bc848ee067ba4af2efb9f48196de34864b..0000000000000000000000000000000000000000
--- a/apps/shell/browser/default_shell_app_window_controller.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// 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 "apps/shell/browser/default_shell_app_window_controller.h"
-
-#include "apps/shell/browser/shell_app_window.h"
-#include "apps/shell/browser/shell_desktop_controller.h"
-#include "base/logging.h"
-#include "ui/aura/window.h"
-#include "ui/aura/window_tree_host.h"
-
-namespace apps {
-
-DefaultShellAppWindowController::DefaultShellAppWindowController(
- ShellDesktopController* shell_desktop_controller)
- : shell_desktop_controller_(shell_desktop_controller) {
- DCHECK(shell_desktop_controller_);
-}
-
-DefaultShellAppWindowController::~DefaultShellAppWindowController() {
- // The app window must be explicitly closed before desktop teardown.
- DCHECK(!app_window_);
-}
-
-ShellAppWindow* DefaultShellAppWindowController::CreateAppWindow(
- content::BrowserContext* context) {
- aura::Window* root_window = shell_desktop_controller_->host()->window();
-
- app_window_.reset(new ShellAppWindow);
- app_window_->Init(context, root_window->bounds().size());
-
- // Attach the web contents view to our window hierarchy.
- aura::Window* content = app_window_->GetNativeWindow();
- root_window->AddChild(content);
- content->Show();
-
- return app_window_.get();
-}
-
-void DefaultShellAppWindowController::CloseAppWindows() {
- app_window_.reset();
-}
-
-} // namespace apps
« no previous file with comments | « apps/shell/browser/default_shell_app_window_controller.h ('k') | apps/shell/browser/default_shell_browser_main_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698