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

Side by Side Diff: ash/common/wm/root_window_layout_manager.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 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
« no previous file with comments | « ash/common/wm/root_window_finder.cc ('k') | ash/common/wm/root_window_layout_manager.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) 2012 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 #ifndef ASH_COMMON_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_
6 #define ASH_COMMON_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_
7
8 #include "ash/common/wm_layout_manager.h"
9 #include "base/macros.h"
10
11 namespace ash {
12 namespace wm {
13
14 // A layout manager for the root window.
15 // Resizes all of its immediate children and their descendants to fill the
16 // bounds of the associated window.
17 class RootWindowLayoutManager : public WmLayoutManager {
18 public:
19 explicit RootWindowLayoutManager(WmWindow* owner);
20 ~RootWindowLayoutManager() override;
21
22 // Overridden from aura::LayoutManager:
23 void OnWindowResized() override;
24 void OnWindowAddedToLayout(WmWindow* child) override;
25 void OnWillRemoveWindowFromLayout(WmWindow* child) override;
26 void OnWindowRemovedFromLayout(WmWindow* child) override;
27 void OnChildWindowVisibilityChanged(WmWindow* child, bool visible) override;
28 void SetChildBounds(WmWindow* child,
29 const gfx::Rect& requested_bounds) override;
30
31 private:
32 WmWindow* owner_;
33
34 DISALLOW_COPY_AND_ASSIGN(RootWindowLayoutManager);
35 };
36
37 } // namespace wm
38 } // namespace ash
39
40 #endif // ASH_COMMON_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/common/wm/root_window_finder.cc ('k') | ash/common/wm/root_window_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698