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

Unified Diff: ui/aura_shell/default_container_layout_manager.h

Issue 8400067: Fixes bug where windows weren't being moved and resized if the desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge and incorporate feedback Created 9 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 | « ui/aura_shell/aura_shell.gyp ('k') | ui/aura_shell/default_container_layout_manager_unittest.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
diff --git a/ui/aura_shell/default_container_layout_manager.h b/ui/aura_shell/default_container_layout_manager.h
index 53cd0d146cb7dd9941adcceb0d388084fa1f15d0..cf2fe9dbe1c6db20073cdf8eb7a9f92e01507176 100644
--- a/ui/aura_shell/default_container_layout_manager.h
+++ b/ui/aura_shell/default_container_layout_manager.h
@@ -21,16 +21,16 @@ class Rect;
}
namespace aura_shell {
-class WorkspaceManager;
-
namespace internal {
+class WorkspaceManager;
+
// LayoutManager for the default window container.
class AURA_SHELL_EXPORT DefaultContainerLayoutManager
: public aura::LayoutManager {
public:
- DefaultContainerLayoutManager(
- aura::Window* owner, WorkspaceManager* workspace_manager);
+ DefaultContainerLayoutManager(aura::Window* owner,
+ WorkspaceManager* workspace_manager);
virtual ~DefaultContainerLayoutManager();
// Invoked when a window receives drag event.
@@ -48,6 +48,12 @@ class AURA_SHELL_EXPORT DefaultContainerLayoutManager
// Invoked when a user finished resizing window.
void EndResize(aura::Window* drag, aura::MouseEvent* evnet);
+ // If true, |CalculateBoundsForChild| does nothing. Use in situations where
+ // you want to circumvent what CalculateBoundsForChild() would normally do.
+ void set_ignore_calculate_bounds(bool value) {
+ ignore_calculate_bounds_ = value;
+ }
+
// Overridden from aura::LayoutManager:
virtual void OnWindowResized() OVERRIDE;
virtual void OnWindowAdded(aura::Window* child) OVERRIDE;
« no previous file with comments | « ui/aura_shell/aura_shell.gyp ('k') | ui/aura_shell/default_container_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698