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

Unified Diff: ash/wm/aura/wm_window_aura.h

Issue 1907863002: Converts DockedWindowLayoutManager to common ash/wm types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: explicit shutdown 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/aura/wm_window_aura.h
diff --git a/ash/wm/aura/wm_window_aura.h b/ash/wm/aura/wm_window_aura.h
index 5ca3e68ac4b05c17c39bfbaf8bbc7a5595f7680e..c6f46d99eac6d65454d37d6170002fcd8bba204f 100644
--- a/ash/wm/aura/wm_window_aura.h
+++ b/ash/wm/aura/wm_window_aura.h
@@ -50,8 +50,8 @@ class ASH_EXPORT WmWindowAura : public WmWindow, public aura::WindowObserver {
gfx::Point ConvertPointFromScreen(const gfx::Point& point) const override;
gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override;
gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const override;
- gfx::Size GetMinimumSize() override;
- gfx::Size GetMaximumSize() override;
+ gfx::Size GetMinimumSize() const override;
+ gfx::Size GetMaximumSize() const override;
bool GetTargetVisibility() const override;
bool IsVisible() const override;
bool GetBoolProperty(WmWindowProperty key) override;
@@ -61,9 +61,13 @@ class ASH_EXPORT WmWindowAura : public WmWindow, public aura::WindowObserver {
const gfx::Rect& screen_bounds) override;
void AddChild(WmWindow* window) override;
WmWindow* GetParent() override;
- WmWindow* GetTransientParent() override;
+ const WmWindow* GetTransientParent() const override;
std::vector<WmWindow*> GetTransientChildren() override;
+ void SetLayoutManager(
+ std::unique_ptr<WmLayoutManager> layout_manager) override;
+ WmLayoutManager* GetLayoutManager() override;
void SetVisibilityAnimationType(int type) override;
+ void SetVisibilityAnimationDuration(base::TimeDelta delta) override;
void Animate(::wm::WindowAnimationType type) override;
void SetBounds(const gfx::Rect& bounds) override;
void SetBoundsWithTransitionDelay(const gfx::Rect& bounds,
@@ -93,12 +97,14 @@ class ASH_EXPORT WmWindowAura : public WmWindow, public aura::WindowObserver {
bool CanResize() const override;
bool CanActivate() const override;
void StackChildAtTop(WmWindow* child) override;
+ void StackChildAtBottom(WmWindow* child) override;
void StackChildAbove(WmWindow* child, WmWindow* target) override;
void StackChildBelow(WmWindow* child, WmWindow* target) override;
void SetAlwaysOnTop(bool value) override;
bool IsAlwaysOnTop() const override;
void Hide() override;
void Show() override;
+ bool IsFocused() const override;
bool IsActive() const override;
void Activate() override;
void Deactivate() override;
@@ -106,6 +112,7 @@ class ASH_EXPORT WmWindowAura : public WmWindow, public aura::WindowObserver {
void Minimize() override;
void Unminimize() override;
std::vector<WmWindow*> GetChildren() override;
+ void SnapToPixelBoundaryIfNecessary() override;
void AddObserver(WmWindowObserver* observer) override;
void RemoveObserver(WmWindowObserver* observer) override;
@@ -120,6 +127,7 @@ class ASH_EXPORT WmWindowAura : public WmWindow, public aura::WindowObserver {
const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) override;
void OnWindowDestroying(aura::Window* window) override;
+ void OnWindowVisibilityChanging(aura::Window* window, bool visible) override;
aura::Window* window_;

Powered by Google App Engine
This is Rietveld 408576698