OLD | NEW |
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/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/wm/common/wm_window.h" | 9 #include "ash/wm/common/wm_window.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 } | 38 } |
39 static const aura::Window* GetAuraWindow(const WmWindow* wm_window); | 39 static const aura::Window* GetAuraWindow(const WmWindow* wm_window); |
40 | 40 |
41 aura::Window* aura_window() { return window_; } | 41 aura::Window* aura_window() { return window_; } |
42 const aura::Window* aura_window() const { return window_; } | 42 const aura::Window* aura_window() const { return window_; } |
43 | 43 |
44 // WmWindow: | 44 // WmWindow: |
45 const WmWindow* GetRootWindow() const override; | 45 const WmWindow* GetRootWindow() const override; |
46 WmRootWindowController* GetRootWindowController() override; | 46 WmRootWindowController* GetRootWindowController() override; |
47 WmGlobals* GetGlobals() const override; | 47 WmGlobals* GetGlobals() const override; |
| 48 void SetName(const char* name) override; |
48 base::string16 GetTitle() const override; | 49 base::string16 GetTitle() const override; |
49 void SetShellWindowId(int id) override; | 50 void SetShellWindowId(int id) override; |
50 int GetShellWindowId() const override; | 51 int GetShellWindowId() const override; |
51 WmWindow* GetChildByShellWindowId(int id) override; | 52 WmWindow* GetChildByShellWindowId(int id) override; |
52 ui::wm::WindowType GetType() const override; | 53 ui::wm::WindowType GetType() const override; |
53 ui::Layer* GetLayer() override; | 54 ui::Layer* GetLayer() override; |
54 display::Display GetDisplayNearestWindow() override; | 55 display::Display GetDisplayNearestWindow() override; |
55 bool HasNonClientArea() override; | 56 bool HasNonClientArea() override; |
56 int GetNonClientComponent(const gfx::Point& location) override; | 57 int GetNonClientComponent(const gfx::Point& location) override; |
57 gfx::Point ConvertPointToTarget(const WmWindow* target, | 58 gfx::Point ConvertPointToTarget(const WmWindow* target, |
(...skipping 24 matching lines...) Expand all Loading... |
82 void SetLayoutManager( | 83 void SetLayoutManager( |
83 std::unique_ptr<WmLayoutManager> layout_manager) override; | 84 std::unique_ptr<WmLayoutManager> layout_manager) override; |
84 WmLayoutManager* GetLayoutManager() override; | 85 WmLayoutManager* GetLayoutManager() override; |
85 void SetVisibilityAnimationType(int type) override; | 86 void SetVisibilityAnimationType(int type) override; |
86 void SetVisibilityAnimationDuration(base::TimeDelta delta) override; | 87 void SetVisibilityAnimationDuration(base::TimeDelta delta) override; |
87 void SetVisibilityAnimationTransition( | 88 void SetVisibilityAnimationTransition( |
88 ::wm::WindowVisibilityAnimationTransition transition) override; | 89 ::wm::WindowVisibilityAnimationTransition transition) override; |
89 void Animate(::wm::WindowAnimationType type) override; | 90 void Animate(::wm::WindowAnimationType type) override; |
90 void StopAnimatingProperty( | 91 void StopAnimatingProperty( |
91 ui::LayerAnimationElement::AnimatableProperty property) override; | 92 ui::LayerAnimationElement::AnimatableProperty property) override; |
| 93 void SetChildWindowVisibilityChangesAnimated() override; |
| 94 void SetMasksToBounds(bool value) override; |
92 void SetBounds(const gfx::Rect& bounds) override; | 95 void SetBounds(const gfx::Rect& bounds) override; |
93 void SetBoundsWithTransitionDelay(const gfx::Rect& bounds, | 96 void SetBoundsWithTransitionDelay(const gfx::Rect& bounds, |
94 base::TimeDelta delta) override; | 97 base::TimeDelta delta) override; |
95 void SetBoundsDirect(const gfx::Rect& bounds) override; | 98 void SetBoundsDirect(const gfx::Rect& bounds) override; |
96 void SetBoundsDirectAnimated(const gfx::Rect& bounds) override; | 99 void SetBoundsDirectAnimated(const gfx::Rect& bounds) override; |
97 void SetBoundsDirectCrossFade(const gfx::Rect& bounds) override; | 100 void SetBoundsDirectCrossFade(const gfx::Rect& bounds) override; |
98 void SetBoundsInScreen(const gfx::Rect& bounds_in_screen, | 101 void SetBoundsInScreen(const gfx::Rect& bounds_in_screen, |
99 const display::Display& dst_display) override; | 102 const display::Display& dst_display) override; |
100 gfx::Rect GetBoundsInScreen() const override; | 103 gfx::Rect GetBoundsInScreen() const override; |
101 const gfx::Rect& GetBounds() const override; | 104 const gfx::Rect& GetBounds() const override; |
(...skipping 27 matching lines...) Expand all Loading... |
129 bool IsActive() const override; | 132 bool IsActive() const override; |
130 void Activate() override; | 133 void Activate() override; |
131 void Deactivate() override; | 134 void Deactivate() override; |
132 void SetFullscreen() override; | 135 void SetFullscreen() override; |
133 void Maximize() override; | 136 void Maximize() override; |
134 void Minimize() override; | 137 void Minimize() override; |
135 void Unminimize() override; | 138 void Unminimize() override; |
136 std::vector<WmWindow*> GetChildren() override; | 139 std::vector<WmWindow*> GetChildren() override; |
137 void ShowResizeShadow(int component) override; | 140 void ShowResizeShadow(int component) override; |
138 void HideResizeShadow() override; | 141 void HideResizeShadow() override; |
| 142 void SetBoundsInScreenBehaviorForChildren( |
| 143 BoundsInScreenBehavior behavior) override; |
| 144 void SetSnapsChildrenToPhysicalPixelBoundary() override; |
139 void SnapToPixelBoundaryIfNecessary() override; | 145 void SnapToPixelBoundaryIfNecessary() override; |
| 146 void SetChildrenUseExtendedHitRegion() override; |
| 147 void SetDescendantsStayInSameRootWindow(bool value) override; |
140 void AddObserver(WmWindowObserver* observer) override; | 148 void AddObserver(WmWindowObserver* observer) override; |
141 void RemoveObserver(WmWindowObserver* observer) override; | 149 void RemoveObserver(WmWindowObserver* observer) override; |
142 | 150 |
143 private: | 151 private: |
144 // aura::WindowObserver: | 152 // aura::WindowObserver: |
145 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override; | 153 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override; |
146 void OnWindowStackingChanged(aura::Window* window) override; | 154 void OnWindowStackingChanged(aura::Window* window) override; |
147 void OnWindowPropertyChanged(aura::Window* window, | 155 void OnWindowPropertyChanged(aura::Window* window, |
148 const void* key, | 156 const void* key, |
149 intptr_t old) override; | 157 intptr_t old) override; |
150 void OnWindowBoundsChanged(aura::Window* window, | 158 void OnWindowBoundsChanged(aura::Window* window, |
151 const gfx::Rect& old_bounds, | 159 const gfx::Rect& old_bounds, |
152 const gfx::Rect& new_bounds) override; | 160 const gfx::Rect& new_bounds) override; |
153 void OnWindowDestroying(aura::Window* window) override; | 161 void OnWindowDestroying(aura::Window* window) override; |
154 void OnWindowVisibilityChanging(aura::Window* window, bool visible) override; | 162 void OnWindowVisibilityChanging(aura::Window* window, bool visible) override; |
155 void OnWindowTitleChanged(aura::Window* window) override; | 163 void OnWindowTitleChanged(aura::Window* window) override; |
156 | 164 |
157 aura::Window* window_; | 165 aura::Window* window_; |
158 | 166 |
159 base::ObserverList<WmWindowObserver> observers_; | 167 base::ObserverList<WmWindowObserver> observers_; |
160 | 168 |
161 DISALLOW_COPY_AND_ASSIGN(WmWindowAura); | 169 DISALLOW_COPY_AND_ASSIGN(WmWindowAura); |
162 }; | 170 }; |
163 | 171 |
164 } // namespace wm | 172 } // namespace wm |
165 } // namespace ash | 173 } // namespace ash |
166 | 174 |
167 #endif // ASH_WM_AURA_WM_WINDOW_AURA_H_ | 175 #endif // ASH_WM_AURA_WM_WINDOW_AURA_H_ |
OLD | NEW |