| 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_AURA_WM_WINDOW_AURA_H_ | 5 #ifndef ASH_AURA_WM_WINDOW_AURA_H_ |
| 6 #define ASH_AURA_WM_WINDOW_AURA_H_ | 6 #define ASH_AURA_WM_WINDOW_AURA_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/common/wm_window.h" | 9 #include "ash/common/wm_window.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 static aura::Window* GetAuraWindow(WmWindow* wm_window) { | 39 static aura::Window* GetAuraWindow(WmWindow* wm_window) { |
| 40 return const_cast<aura::Window*>( | 40 return const_cast<aura::Window*>( |
| 41 GetAuraWindow(const_cast<const WmWindow*>(wm_window))); | 41 GetAuraWindow(const_cast<const WmWindow*>(wm_window))); |
| 42 } | 42 } |
| 43 static const aura::Window* GetAuraWindow(const WmWindow* wm_window); | 43 static const aura::Window* GetAuraWindow(const WmWindow* wm_window); |
| 44 | 44 |
| 45 aura::Window* aura_window() { return window_; } | 45 aura::Window* aura_window() { return window_; } |
| 46 const aura::Window* aura_window() const { return window_; } | 46 const aura::Window* aura_window() const { return window_; } |
| 47 | 47 |
| 48 // WmWindow: | 48 // WmWindow: |
| 49 void Destroy() override; |
| 49 const WmWindow* GetRootWindow() const override; | 50 const WmWindow* GetRootWindow() const override; |
| 50 WmRootWindowController* GetRootWindowController() override; | 51 WmRootWindowController* GetRootWindowController() override; |
| 51 WmShell* GetShell() const override; | 52 WmShell* GetShell() const override; |
| 52 void SetName(const char* name) override; | 53 void SetName(const char* name) override; |
| 53 std::string GetName() const override; | 54 std::string GetName() const override; |
| 54 base::string16 GetTitle() const override; | 55 base::string16 GetTitle() const override; |
| 55 void SetShellWindowId(int id) override; | 56 void SetShellWindowId(int id) override; |
| 56 int GetShellWindowId() const override; | 57 int GetShellWindowId() const override; |
| 57 WmWindow* GetChildByShellWindowId(int id) override; | 58 WmWindow* GetChildByShellWindowId(int id) override; |
| 58 ui::wm::WindowType GetType() const override; | 59 ui::wm::WindowType GetType() const override; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 87 WmWindow* GetToplevelWindowForFocus() override; | 88 WmWindow* GetToplevelWindowForFocus() override; |
| 88 void SetParentUsingContext(WmWindow* context, | 89 void SetParentUsingContext(WmWindow* context, |
| 89 const gfx::Rect& screen_bounds) override; | 90 const gfx::Rect& screen_bounds) override; |
| 90 void AddChild(WmWindow* window) override; | 91 void AddChild(WmWindow* window) override; |
| 91 WmWindow* GetParent() override; | 92 WmWindow* GetParent() override; |
| 92 const WmWindow* GetTransientParent() const override; | 93 const WmWindow* GetTransientParent() const override; |
| 93 std::vector<WmWindow*> GetTransientChildren() override; | 94 std::vector<WmWindow*> GetTransientChildren() override; |
| 94 void SetLayoutManager( | 95 void SetLayoutManager( |
| 95 std::unique_ptr<WmLayoutManager> layout_manager) override; | 96 std::unique_ptr<WmLayoutManager> layout_manager) override; |
| 96 WmLayoutManager* GetLayoutManager() override; | 97 WmLayoutManager* GetLayoutManager() override; |
| 98 void SetVisibilityChangesAnimated() override; |
| 97 void SetVisibilityAnimationType(int type) override; | 99 void SetVisibilityAnimationType(int type) override; |
| 98 void SetVisibilityAnimationDuration(base::TimeDelta delta) override; | 100 void SetVisibilityAnimationDuration(base::TimeDelta delta) override; |
| 99 void SetVisibilityAnimationTransition( | 101 void SetVisibilityAnimationTransition( |
| 100 ::wm::WindowVisibilityAnimationTransition transition) override; | 102 ::wm::WindowVisibilityAnimationTransition transition) override; |
| 101 void Animate(::wm::WindowAnimationType type) override; | 103 void Animate(::wm::WindowAnimationType type) override; |
| 102 void StopAnimatingProperty( | 104 void StopAnimatingProperty( |
| 103 ui::LayerAnimationElement::AnimatableProperty property) override; | 105 ui::LayerAnimationElement::AnimatableProperty property) override; |
| 104 void SetChildWindowVisibilityChangesAnimated() override; | 106 void SetChildWindowVisibilityChangesAnimated() override; |
| 105 void SetMasksToBounds(bool value) override; | 107 void SetMasksToBounds(bool value) override; |
| 106 void SetBounds(const gfx::Rect& bounds) override; | 108 void SetBounds(const gfx::Rect& bounds) override; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 203 |
| 202 bool added_transient_observer_ = false; | 204 bool added_transient_observer_ = false; |
| 203 base::ObserverList<WmTransientWindowObserver> transient_observers_; | 205 base::ObserverList<WmTransientWindowObserver> transient_observers_; |
| 204 | 206 |
| 205 DISALLOW_COPY_AND_ASSIGN(WmWindowAura); | 207 DISALLOW_COPY_AND_ASSIGN(WmWindowAura); |
| 206 }; | 208 }; |
| 207 | 209 |
| 208 } // namespace ash | 210 } // namespace ash |
| 209 | 211 |
| 210 #endif // ASH_AURA_WM_WINDOW_AURA_H_ | 212 #endif // ASH_AURA_WM_WINDOW_AURA_H_ |
| OLD | NEW |