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

Side by Side Diff: ash/wm/aura/wm_window_aura.h

Issue 1900443002: Removes aura dependencies from WindowPositioner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke GetWorkAreaForWindowInParent and fix windows 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
« no previous file with comments | « ash/wm/aura/wm_root_window_controller_aura.cc ('k') | ash/wm/aura/wm_window_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_WM_AURA_WM_WINDOW_AURA_H_ 5 #ifndef ASH_WM_AURA_WM_WINDOW_AURA_H_
6 #define ASH_WM_AURA_WM_WINDOW_AURA_H_ 6 #define ASH_WM_AURA_WM_WINDOW_AURA_H_
7 7
8 #include "ash/wm/common/wm_window.h" 8 #include "ash/wm/common/wm_window.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 18 matching lines...) Expand all
29 GetAuraWindow(const_cast<const WmWindow*>(wm_window))); 29 GetAuraWindow(const_cast<const WmWindow*>(wm_window)));
30 } 30 }
31 static const aura::Window* GetAuraWindow(const WmWindow* wm_window); 31 static const aura::Window* GetAuraWindow(const WmWindow* wm_window);
32 32
33 aura::Window* aura_window() { return window_; } 33 aura::Window* aura_window() { return window_; }
34 const aura::Window* aura_window() const { return window_; } 34 const aura::Window* aura_window() const { return window_; }
35 35
36 // WmWindow: 36 // WmWindow:
37 const WmWindow* GetRootWindow() const override; 37 const WmWindow* GetRootWindow() const override;
38 WmRootWindowController* GetRootWindowController() override; 38 WmRootWindowController* GetRootWindowController() override;
39 WmGlobals* GetGlobals() const override;
39 int GetShellWindowId() override; 40 int GetShellWindowId() override;
40 WmWindow* GetChildByShellWindowId(int id) override; 41 WmWindow* GetChildByShellWindowId(int id) override;
41 ui::wm::WindowType GetType() const override; 42 ui::wm::WindowType GetType() const override;
42 ui::Layer* GetLayer() override; 43 ui::Layer* GetLayer() override;
43 gfx::Display GetDisplayNearestWindow() override; 44 gfx::Display GetDisplayNearestWindow() override;
44 bool HasNonClientArea() override; 45 bool HasNonClientArea() override;
45 int GetNonClientComponent(const gfx::Point& location) override; 46 int GetNonClientComponent(const gfx::Point& location) override;
46 gfx::Point ConvertPointToTarget(const WmWindow* target, 47 gfx::Point ConvertPointToTarget(const WmWindow* target,
47 const gfx::Point& point) const override; 48 const gfx::Point& point) const override;
48 gfx::Point ConvertPointToScreen(const gfx::Point& point) const override; 49 gfx::Point ConvertPointToScreen(const gfx::Point& point) const override;
49 gfx::Point ConvertPointFromScreen(const gfx::Point& point) const override; 50 gfx::Point ConvertPointFromScreen(const gfx::Point& point) const override;
50 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override; 51 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override;
51 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const override; 52 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const override;
52 gfx::Size GetMinimumSize() override; 53 gfx::Size GetMinimumSize() override;
53 gfx::Size GetMaximumSize() override; 54 gfx::Size GetMaximumSize() override;
54 bool GetTargetVisibility() const override; 55 bool GetTargetVisibility() const override;
55 bool IsVisible() const override; 56 bool IsVisible() const override;
56 bool GetBoolProperty(WmWindowProperty key) override; 57 bool GetBoolProperty(WmWindowProperty key) override;
57 WindowState* GetWindowState() override; 58 const WindowState* GetWindowState() const override;
58 WmWindow* GetToplevelWindow() override; 59 WmWindow* GetToplevelWindow() override;
59 WmWindow* GetParent() override; 60 WmWindow* GetParent() override;
60 WmWindow* GetTransientParent() override; 61 WmWindow* GetTransientParent() override;
62 std::vector<WmWindow*> GetTransientChildren() override;
61 void SetBounds(const gfx::Rect& bounds) override; 63 void SetBounds(const gfx::Rect& bounds) override;
64 void SetBoundsWithTransitionDelay(const gfx::Rect& bounds,
65 base::TimeDelta delta) override;
62 void SetBoundsDirect(const gfx::Rect& bounds) override; 66 void SetBoundsDirect(const gfx::Rect& bounds) override;
63 void SetBoundsDirectAnimated(const gfx::Rect& bounds) override; 67 void SetBoundsDirectAnimated(const gfx::Rect& bounds) override;
64 void SetBoundsDirectCrossFade(const gfx::Rect& bounds) override; 68 void SetBoundsDirectCrossFade(const gfx::Rect& bounds) override;
65 void SetBoundsInScreen(const gfx::Rect& bounds_in_screen, 69 void SetBoundsInScreen(const gfx::Rect& bounds_in_screen,
66 const gfx::Display& dst_display) override; 70 const gfx::Display& dst_display) override;
67 gfx::Rect GetBoundsInScreen() const override; 71 gfx::Rect GetBoundsInScreen() const override;
68 const gfx::Rect& GetBounds() const override; 72 const gfx::Rect& GetBounds() const override;
69 gfx::Rect GetTargetBounds() override; 73 gfx::Rect GetTargetBounds() override;
70 void ClearRestoreBounds() override; 74 void ClearRestoreBounds() override;
71 void SetRestoreBoundsInScreen(const gfx::Rect& bounds) override; 75 void SetRestoreBoundsInScreen(const gfx::Rect& bounds) override;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 119
116 base::ObserverList<WmWindowObserver> observers_; 120 base::ObserverList<WmWindowObserver> observers_;
117 121
118 DISALLOW_COPY_AND_ASSIGN(WmWindowAura); 122 DISALLOW_COPY_AND_ASSIGN(WmWindowAura);
119 }; 123 };
120 124
121 } // namespace wm 125 } // namespace wm
122 } // namespace ash 126 } // namespace ash
123 127
124 #endif // ASH_WM_AURA_WM_WINDOW_AURA_H_ 128 #endif // ASH_WM_AURA_WM_WINDOW_AURA_H_
OLDNEW
« no previous file with comments | « ash/wm/aura/wm_root_window_controller_aura.cc ('k') | ash/wm/aura/wm_window_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698