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

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

Issue 1894593002: Adds WmLayoutManager and the aura wrapper AuraLayoutManagerAdapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 8 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_WM_COMMON_WM_LAYOUT_MANAGER_H_
6 #define ASH_WM_COMMON_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 class ASH_EXPORT WmLayoutManager {
James Cook 2016/04/15 17:44:35 nit: Class comment. What does this do and why must
sky 2016/04/15 19:26:36 Ya, sorry. This is mostly transitional and I figur
20 public:
21 virtual ~WmLayoutManager() {}
22
23 // Invoked when the window is resized.
24 virtual void OnWindowResized() = 0;
25
26 // Invoked when the window |child| has been added.
27 virtual void OnWindowAddedToLayout(WmWindow* child) = 0;
28
29 // Invoked prior to removing |window|.
30 virtual void OnWillRemoveWindowFromLayout(WmWindow* child) = 0;
31
32 // Invoked after removing |window|.
33 virtual void OnWindowRemovedFromLayout(WmWindow* child) = 0;
34
35 // Invoked when the |SetVisible()| is invoked on the window |child|.
James Cook 2016/04/15 17:44:35 nit: "when the |SetVisible()|" -> "when |SetVisibl
sky 2016/04/15 19:26:36 Sorry, I copied this from aura. I've cleaned it al
36 // |visible| is the value supplied to |SetVisible()|. If |visible| is true,
37 // window->IsVisible() may still return false. See description in
James Cook 2016/04/15 17:44:35 nit: Did you mean child->IsVisible()?
38 // Window::IsVisible() for details.
James Cook 2016/04/15 17:44:35 nit: Which "Window" do you mean here? aura::Window
39 virtual void OnChildWindowVisibilityChanged(WmWindow* child,
40 bool visibile) = 0;
41
42 // Invoked when |WmWindow::SetBounds| is called on |child|.
43 // Implementation must call |SetChildBoundsDirect| to change the
44 // |child|'s bounds. LayoutManager may modify |requested_bounds|
45 // before applying, or ignore the request.
46 virtual void SetChildBounds(WmWindow* child,
47 const gfx::Rect& requested_bounds) = 0;
48 };
49
50 } // namespace wm
51 } // namespace ash
52
53 #endif // ASH_WM_COMMON_WM_LAYOUT_MANAGER_H_
OLDNEW
« ash/wm/aura/aura_layout_manager_adapter.h ('K') | « ash/wm/aura/aura_layout_manager_adapter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698