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

Unified Diff: ui/aura_shell/default_container_layout_manager.h

Issue 9035001: Move some more WM functionality down into ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | « ui/aura_shell/default_container_event_filter.cc ('k') | ui/aura_shell/default_container_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/default_container_layout_manager.h
===================================================================
--- ui/aura_shell/default_container_layout_manager.h (revision 115655)
+++ ui/aura_shell/default_container_layout_manager.h (working copy)
@@ -1,77 +0,0 @@
-// Copyright (c) 2011 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 UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_
-#define UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "ui/aura/layout_manager.h"
-#include "ui/aura_shell/aura_shell_export.h"
-
-namespace aura {
-class MouseEvent;
-class Window;
-}
-
-namespace gfx {
-class Rect;
-}
-
-namespace aura_shell {
-namespace internal {
-
-class ShowStateController;
-class WorkspaceManager;
-
-// LayoutManager for the default window container.
-class AURA_SHELL_EXPORT DefaultContainerLayoutManager
- : public aura::LayoutManager {
- public:
- explicit DefaultContainerLayoutManager(WorkspaceManager* workspace_manager);
- virtual ~DefaultContainerLayoutManager();
-
- // Returns the workspace manager for this container.
- WorkspaceManager* workspace_manager() {
- return workspace_manager_;
- }
-
- // Invoked when a window receives drag event.
- void PrepareForMoveOrResize(aura::Window* drag, aura::MouseEvent* event);
-
- // Invoked when a drag event didn't start any drag operation.
- void CancelMoveOrResize(aura::Window* drag, aura::MouseEvent* event);
-
- // Invoked when a drag event moved the |window|.
- void ProcessMove(aura::Window* window, aura::MouseEvent* event);
-
- // Invoked when a user finished moving window.
- void EndMove(aura::Window* drag, aura::MouseEvent* evnet);
-
- // Invoked when a user finished resizing window.
- void EndResize(aura::Window* drag, aura::MouseEvent* evnet);
-
- // Overridden from aura::LayoutManager:
- virtual void OnWindowResized() OVERRIDE;
- virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
- virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE;
- virtual void OnChildWindowVisibilityChanged(aura::Window* child,
- bool visibile) OVERRIDE;
- virtual void SetChildBounds(aura::Window* child,
- const gfx::Rect& requested_bounds) OVERRIDE;
- private:
- // Owned by WorkspaceController.
- WorkspaceManager* workspace_manager_;
-
- scoped_ptr<ShowStateController> show_state_controller_;
-
- DISALLOW_COPY_AND_ASSIGN(DefaultContainerLayoutManager);
-};
-
-} // namespace internal
-} // namespace aura_shell
-
-#endif // UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_
« no previous file with comments | « ui/aura_shell/default_container_event_filter.cc ('k') | ui/aura_shell/default_container_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698