| 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/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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 gfx::Point ConvertPointFromScreen(const gfx::Point& point) const override; | 50 gfx::Point ConvertPointFromScreen(const gfx::Point& point) const override; |
| 51 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override; | 51 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override; |
| 52 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const override; | 52 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const override; |
| 53 gfx::Size GetMinimumSize() override; | 53 gfx::Size GetMinimumSize() override; |
| 54 gfx::Size GetMaximumSize() override; | 54 gfx::Size GetMaximumSize() override; |
| 55 bool GetTargetVisibility() const override; | 55 bool GetTargetVisibility() const override; |
| 56 bool IsVisible() const override; | 56 bool IsVisible() const override; |
| 57 bool GetBoolProperty(WmWindowProperty key) override; | 57 bool GetBoolProperty(WmWindowProperty key) override; |
| 58 const WindowState* GetWindowState() const override; | 58 const WindowState* GetWindowState() const override; |
| 59 WmWindow* GetToplevelWindow() override; | 59 WmWindow* GetToplevelWindow() override; |
| 60 void AddChild(WmWindow* window) override; |
| 60 WmWindow* GetParent() override; | 61 WmWindow* GetParent() override; |
| 61 WmWindow* GetTransientParent() override; | 62 WmWindow* GetTransientParent() override; |
| 62 std::vector<WmWindow*> GetTransientChildren() override; | 63 std::vector<WmWindow*> GetTransientChildren() override; |
| 64 void SetVisibilityAnimationType(int type) override; |
| 65 void Animate(::wm::WindowAnimationType type) override; |
| 63 void SetBounds(const gfx::Rect& bounds) override; | 66 void SetBounds(const gfx::Rect& bounds) override; |
| 64 void SetBoundsWithTransitionDelay(const gfx::Rect& bounds, | 67 void SetBoundsWithTransitionDelay(const gfx::Rect& bounds, |
| 65 base::TimeDelta delta) override; | 68 base::TimeDelta delta) override; |
| 66 void SetBoundsDirect(const gfx::Rect& bounds) override; | 69 void SetBoundsDirect(const gfx::Rect& bounds) override; |
| 67 void SetBoundsDirectAnimated(const gfx::Rect& bounds) override; | 70 void SetBoundsDirectAnimated(const gfx::Rect& bounds) override; |
| 68 void SetBoundsDirectCrossFade(const gfx::Rect& bounds) override; | 71 void SetBoundsDirectCrossFade(const gfx::Rect& bounds) override; |
| 69 void SetBoundsInScreen(const gfx::Rect& bounds_in_screen, | 72 void SetBoundsInScreen(const gfx::Rect& bounds_in_screen, |
| 70 const gfx::Display& dst_display) override; | 73 const gfx::Display& dst_display) override; |
| 71 gfx::Rect GetBoundsInScreen() const override; | 74 gfx::Rect GetBoundsInScreen() const override; |
| 72 const gfx::Rect& GetBounds() const override; | 75 const gfx::Rect& GetBounds() const override; |
| 73 gfx::Rect GetTargetBounds() override; | 76 gfx::Rect GetTargetBounds() override; |
| 74 void ClearRestoreBounds() override; | 77 void ClearRestoreBounds() override; |
| 75 void SetRestoreBoundsInScreen(const gfx::Rect& bounds) override; | 78 void SetRestoreBoundsInScreen(const gfx::Rect& bounds) override; |
| 76 gfx::Rect GetRestoreBoundsInScreen() const override; | 79 gfx::Rect GetRestoreBoundsInScreen() const override; |
| 77 void OnWMEvent(const wm::WMEvent* event) override; | 80 void OnWMEvent(const wm::WMEvent* event) override; |
| 78 bool Contains(const WmWindow* other) const override; | 81 bool Contains(const WmWindow* other) const override; |
| 79 void SetShowState(ui::WindowShowState show_state) override; | 82 void SetShowState(ui::WindowShowState show_state) override; |
| 80 ui::WindowShowState GetShowState() const override; | 83 ui::WindowShowState GetShowState() const override; |
| 84 void SetRestoreShowState(ui::WindowShowState show_state) override; |
| 81 void SetCapture() override; | 85 void SetCapture() override; |
| 82 bool HasCapture() override; | 86 bool HasCapture() override; |
| 83 void ReleaseCapture() override; | 87 void ReleaseCapture() override; |
| 84 bool HasRestoreBounds() const override; | 88 bool HasRestoreBounds() const override; |
| 85 bool CanMaximize() const override; | 89 bool CanMaximize() const override; |
| 86 bool CanMinimize() const override; | 90 bool CanMinimize() const override; |
| 87 bool CanResize() const override; | 91 bool CanResize() const override; |
| 88 bool CanActivate() const override; | 92 bool CanActivate() const override; |
| 89 void StackChildAtTop(WmWindow* child) override; | 93 void StackChildAtTop(WmWindow* child) override; |
| 90 void StackChildAbove(WmWindow* child, WmWindow* target) override; | 94 void StackChildAbove(WmWindow* child, WmWindow* target) override; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 119 | 123 |
| 120 base::ObserverList<WmWindowObserver> observers_; | 124 base::ObserverList<WmWindowObserver> observers_; |
| 121 | 125 |
| 122 DISALLOW_COPY_AND_ASSIGN(WmWindowAura); | 126 DISALLOW_COPY_AND_ASSIGN(WmWindowAura); |
| 123 }; | 127 }; |
| 124 | 128 |
| 125 } // namespace wm | 129 } // namespace wm |
| 126 } // namespace ash | 130 } // namespace ash |
| 127 | 131 |
| 128 #endif // ASH_WM_AURA_WM_WINDOW_AURA_H_ | 132 #endif // ASH_WM_AURA_WM_WINDOW_AURA_H_ |
| OLD | NEW |