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

Unified Diff: ash/wm/common/wm_window.h

Issue 1901773002: Removes most of aura dependencies from DefaultState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wm_window_positioner
Patch Set: nit and merge 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
« no previous file with comments | « ash/wm/common/wm_root_window_controller.h ('k') | ash/wm/common/workspace/workspace_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/wm_window.h
diff --git a/ash/wm/common/wm_window.h b/ash/wm/common/wm_window.h
index e343e2c36ff95eabcd60453d66a9cf62b904387e..c82940692366435dd8242b450f75ac211f39e9bc 100644
--- a/ash/wm/common/wm_window.h
+++ b/ash/wm/common/wm_window.h
@@ -10,6 +10,7 @@
#include "ash/ash_export.h"
#include "base/time/time.h"
#include "ui/base/ui_base_types.h"
+#include "ui/wm/core/window_animations.h"
#include "ui/wm/public/window_types.h"
namespace gfx {
@@ -88,11 +89,17 @@ class ASH_EXPORT WmWindow {
virtual WmWindow* GetToplevelWindow() = 0;
+ virtual void AddChild(WmWindow* window) = 0;
+
virtual WmWindow* GetParent() = 0;
virtual WmWindow* GetTransientParent() = 0;
virtual std::vector<WmWindow*> GetTransientChildren() = 0;
+ // |type| is WindowVisibilityAnimationType. Has to be an int to match aura.
+ virtual void SetVisibilityAnimationType(int type) = 0;
+ virtual void Animate(::wm::WindowAnimationType type) = 0;
+
virtual void SetBounds(const gfx::Rect& bounds) = 0;
virtual void SetBoundsWithTransitionDelay(const gfx::Rect& bounds,
base::TimeDelta delta) = 0;
@@ -117,6 +124,8 @@ class ASH_EXPORT WmWindow {
virtual void SetShowState(ui::WindowShowState show_state) = 0;
virtual ui::WindowShowState GetShowState() const = 0;
+ virtual void SetRestoreShowState(ui::WindowShowState show_state) = 0;
+
virtual void SetCapture() = 0;
virtual bool HasCapture() = 0;
virtual void ReleaseCapture() = 0;
« no previous file with comments | « ash/wm/common/wm_root_window_controller.h ('k') | ash/wm/common/workspace/workspace_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698