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

Unified Diff: ash/wm/workspace/maximized_workspace.cc

Issue 11201002: Removes worskpace 1 code. Will rename next. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove constants and add back kDisableLoginAnimations Created 8 years, 2 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 | « ash/wm/workspace/maximized_workspace.h ('k') | ash/wm/workspace/multi_window_resize_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/maximized_workspace.cc
diff --git a/ash/wm/workspace/maximized_workspace.cc b/ash/wm/workspace/maximized_workspace.cc
deleted file mode 100644
index d741e8e51399fa2a94914f43fc88414baa33eb68..0000000000000000000000000000000000000000
--- a/ash/wm/workspace/maximized_workspace.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012 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 "ash/wm/workspace/maximized_workspace.h"
-
-#include "ash/screen_ash.h"
-#include "ash/wm/property_util.h"
-#include "ash/wm/window_util.h"
-#include "ash/wm/workspace/workspace_manager.h"
-#include "base/logging.h"
-#include "ui/aura/client/aura_constants.h"
-#include "ui/aura/root_window.h"
-#include "ui/aura/window.h"
-#include "ui/base/ui_base_types.h"
-#include "ui/gfx/screen.h"
-
-namespace ash {
-namespace internal {
-
-MaximizedWorkspace::MaximizedWorkspace(WorkspaceManager* manager)
- : Workspace(manager, TYPE_MAXIMIZED) {
-}
-
-MaximizedWorkspace::~MaximizedWorkspace() {
-}
-
-bool MaximizedWorkspace::CanAdd(aura::Window* window) const {
- return is_empty() && (wm::IsWindowFullscreen(window) ||
- wm::IsWindowMaximized(window));
-}
-
-void MaximizedWorkspace::OnWindowAddedAfter(aura::Window* window,
- aura::Window* after) {
- ResetWindowBounds(window);
-}
-
-void MaximizedWorkspace::OnWindowRemoved(aura::Window* window) {
-}
-
-void MaximizedWorkspace::ResetWindowBounds(aura::Window* window) {
- if (wm::IsWindowFullscreen(window)) {
- SetWindowBounds(window,
- ScreenAsh::GetDisplayBoundsInParent(window));
- } else {
- SetWindowBounds(window,
- ScreenAsh::GetMaximizedWindowBoundsInParent(window));
- }
-}
-
-} // namespace internal
-} // namespace ash
« no previous file with comments | « ash/wm/workspace/maximized_workspace.h ('k') | ash/wm/workspace/multi_window_resize_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698