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

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

Issue 2035543004: Shuffles and renames ash/common/wm classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: random changes for chrome tests Created 4 years, 6 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
OLDNEW
(Empty)
1 // Copyright 2016 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_WM_LAYOUT_MANAGER_H_
6 #define ASH_COMMON_WM_WM_LAYOUT_MANAGER_H_
7
8 #include "ash/ash_export.h"
9
10 namespace gfx {
11 class Rect;
12 }
13
14 namespace ash {
15 namespace wm {
16
17 class WmWindow;
18
19 // Used to position the child WmWindows of a WmWindow. WmLayoutManager is called
20 // at key points in a WmWindows life cycle thats allow sthe WmLayoutManager to
21 // position or change child WmWindows.
22 class ASH_EXPORT WmLayoutManager {
23 public:
24 virtual ~WmLayoutManager() {}
25
26 // Invoked when the window the WmLayoutManager is associated with is resized.
27 virtual void OnWindowResized() = 0;
28
29 // Invoked when a window is added to the window the WmLayoutManager is
30 // associated with.
31 virtual void OnWindowAddedToLayout(WmWindow* child) = 0;
32
33 // Invoked prior to removing |child|.
34 virtual void OnWillRemoveWindowFromLayout(WmWindow* child) = 0;
35
36 // Invoked after removing |child|.
37 virtual void OnWindowRemovedFromLayout(WmWindow* child) = 0;
38
39 // Invoked when SetVisible() is invoked on |child|. |visible| is the value
40 // supplied to SetVisible(). If |visible| is true, child->IsVisible() may
41 // still return false. See description in aura::Window::IsVisible() for
42 // details.
43 virtual void OnChildWindowVisibilityChanged(WmWindow* child,
44 bool visibile) = 0;
45
46 // Invoked when WmWindow::SetBounds() is called on |child|. This allows the
47 // WmLayoutManager to modify the bounds as appropriate before processing the
48 // request, including ignoring the request. Implementation must call
49 // SetChildBoundsDirect() so that an infinite loop does not result.
50 virtual void SetChildBounds(WmWindow* child,
51 const gfx::Rect& requested_bounds) = 0;
52 };
53
54 } // namespace wm
55 } // namespace ash
56
57 #endif // ASH_COMMON_WM_WM_LAYOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698