summaryrefslogtreecommitdiffstats
path: root/ui/aura/layout_manager.cc
diff options
context:
space:
mode:
authoroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-21 19:36:45 +0000
committeroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-21 19:36:45 +0000
commit3f02dc593923bfb7897b2efe764151bd7a469e1a (patch)
treed094ffc1693d9899488bd8adeaecae31d7fe514f /ui/aura/layout_manager.cc
parent0dc567495088bae351da07b5d2eaf7e201c50168 (diff)
downloadchromium_src-3f02dc593923bfb7897b2efe764151bd7a469e1a.zip
chromium_src-3f02dc593923bfb7897b2efe764151bd7a469e1a.tar.gz
chromium_src-3f02dc593923bfb7897b2efe764151bd7a469e1a.tar.bz2
LayoutManager controls child bounds. Added SetChildBounds and several listener methods to LayoutManager class. They will be used to implement more sophisticated behavior.
Implemented DefaultContainerLayoutManager. Added test_support_aura component so that it can be shared between aura and aura_shell. Fixed component build for aura_shell_unittests BUG=none TEST=default_container_layout_manager_unittests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106508 Review URL: http://codereview.chromium.org/8296002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/layout_manager.cc')
-rw-r--r--ui/aura/layout_manager.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/ui/aura/layout_manager.cc b/ui/aura/layout_manager.cc
new file mode 100644
index 0000000..4780ae0
--- /dev/null
+++ b/ui/aura/layout_manager.cc
@@ -0,0 +1,22 @@
+// 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.
+
+#include "ui/aura/layout_manager.h"
+
+#include "ui/aura/window.h"
+
+namespace aura {
+
+LayoutManager::LayoutManager() {
+}
+
+LayoutManager::~LayoutManager() {
+}
+
+void LayoutManager::SetChildBounds(aura::Window* child,
+ const gfx::Rect& bounds) {
+ child->SetBoundsInternal(bounds);
+}
+
+} // namespace aura