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

Unified Diff: ash/common/wm/workspace/phantom_window_controller.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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: ash/common/wm/workspace/phantom_window_controller.h
diff --git a/ash/common/wm/workspace/phantom_window_controller.h b/ash/common/wm/workspace/phantom_window_controller.h
deleted file mode 100644
index 6ac7da2bcc98bccf6b7803471cd6117617940998..0000000000000000000000000000000000000000
--- a/ash/common/wm/workspace/phantom_window_controller.h
+++ /dev/null
@@ -1,57 +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.
-
-#ifndef ASH_COMMON_WM_WORKSPACE_PHANTOM_WINDOW_CONTROLLER_H_
-#define ASH_COMMON_WM_WORKSPACE_PHANTOM_WINDOW_CONTROLLER_H_
-
-#include <memory>
-
-#include "ash/ash_export.h"
-#include "base/macros.h"
-#include "ui/gfx/geometry/rect.h"
-
-namespace views {
-class Widget;
-}
-
-namespace ash {
-
-class WmWindow;
-
-// PhantomWindowController is responsible for showing a phantom representation
-// of a window. It's used to show a preview of how snapping or docking a window
-// will affect the window's bounds.
-class ASH_EXPORT PhantomWindowController {
- public:
- explicit PhantomWindowController(WmWindow* window);
-
- // Hides the phantom window without any animation.
- ~PhantomWindowController();
-
- // Shows the phantom window and animates shrinking it to |bounds_in_screen|.
- void Show(const gfx::Rect& bounds_in_screen);
-
- private:
- // Creates, shows and returns a phantom widget at |bounds|
- // with kShellWindowId_ShelfContainer in |root_window| as a parent.
- std::unique_ptr<views::Widget> CreatePhantomWidget(
- WmWindow* root_window,
- const gfx::Rect& bounds_in_screen);
-
- // Window that the phantom window is stacked above.
- WmWindow* window_;
-
- // Target bounds (including the shadows if any) of the animation in screen
- // coordinates.
- gfx::Rect target_bounds_in_screen_;
-
- // Phantom representation of the window.
- std::unique_ptr<views::Widget> phantom_widget_;
-
- DISALLOW_COPY_AND_ASSIGN(PhantomWindowController);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_WM_WORKSPACE_PHANTOM_WINDOW_CONTROLLER_H_
« no previous file with comments | « ash/common/wm/workspace/multi_window_resize_controller.cc ('k') | ash/common/wm/workspace/phantom_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698