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

Side by Side Diff: ui/aura_shell/root_window_layout_manager.cc

Issue 9035001: Move some more WM functionality down into ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 12 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura_shell/root_window_layout_manager.h ('k') | ui/aura_shell/shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/aura_shell/root_window_layout_manager.h"
6
7 #include "ui/aura/window.h"
8 #include "ui/views/widget/widget.h"
9
10 namespace aura_shell {
11 namespace internal {
12
13 ////////////////////////////////////////////////////////////////////////////////
14 // RootWindowLayoutManager, public:
15
16 RootWindowLayoutManager::RootWindowLayoutManager(aura::Window* owner)
17 : owner_(owner),
18 background_widget_(NULL) {
19 }
20
21 RootWindowLayoutManager::~RootWindowLayoutManager() {
22 }
23
24 ////////////////////////////////////////////////////////////////////////////////
25 // RootWindowLayoutManager, aura::LayoutManager implementation:
26
27 void RootWindowLayoutManager::OnWindowResized() {
28 gfx::Rect fullscreen_bounds =
29 gfx::Rect(owner_->bounds().width(), owner_->bounds().height());
30
31 aura::Window::Windows::const_iterator i;
32 for (i = owner_->children().begin(); i != owner_->children().end(); ++i)
33 (*i)->SetBounds(fullscreen_bounds);
34
35 if (background_widget_)
36 background_widget_->SetBounds(fullscreen_bounds);
37 }
38
39 void RootWindowLayoutManager::OnWindowAddedToLayout(aura::Window* child) {
40 }
41
42 void RootWindowLayoutManager::OnWillRemoveWindowFromLayout(
43 aura::Window* child) {
44 }
45
46 void RootWindowLayoutManager::OnChildWindowVisibilityChanged(
47 aura::Window* child,
48 bool visible) {
49 }
50
51 void RootWindowLayoutManager::SetChildBounds(
52 aura::Window* child,
53 const gfx::Rect& requested_bounds) {
54 SetChildBoundsDirect(child, requested_bounds);
55 }
56
57 } // namespace internal
58 } // namespace aura_shell
OLDNEW
« no previous file with comments | « ui/aura_shell/root_window_layout_manager.h ('k') | ui/aura_shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698