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

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

Issue 1900443002: Removes aura dependencies from WindowPositioner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke GetWorkAreaForWindowInParent and fix windows 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/default_state.cc » ('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 09bd1c00ffbb492c2f93bff8dbc623ff13feee91..e343e2c36ff95eabcd60453d66a9cf62b904387e 100644
--- a/ash/wm/common/wm_window.h
+++ b/ash/wm/common/wm_window.h
@@ -8,6 +8,7 @@
#include <vector>
#include "ash/ash_export.h"
+#include "base/time/time.h"
#include "ui/base/ui_base_types.h"
#include "ui/wm/public/window_types.h"
@@ -26,6 +27,7 @@ namespace ash {
namespace wm {
class WMEvent;
+class WmGlobals;
class WmRootWindowController;
class WmWindowObserver;
enum class WmWindowProperty;
@@ -43,6 +45,9 @@ class ASH_EXPORT WmWindow {
virtual const WmWindow* GetRootWindow() const = 0;
virtual WmRootWindowController* GetRootWindowController() = 0;
+ // TODO(sky): fix constness.
+ virtual WmGlobals* GetGlobals() const = 0;
+
virtual int GetShellWindowId() = 0;
virtual WmWindow* GetChildByShellWindowId(int id) = 0;
@@ -75,15 +80,22 @@ class ASH_EXPORT WmWindow {
virtual bool GetBoolProperty(WmWindowProperty key) = 0;
- virtual WindowState* GetWindowState() = 0;
+ WindowState* GetWindowState() {
+ return const_cast<WindowState*>(
+ const_cast<const WmWindow*>(this)->GetWindowState());
+ }
+ virtual const WindowState* GetWindowState() const = 0;
virtual WmWindow* GetToplevelWindow() = 0;
virtual WmWindow* GetParent() = 0;
virtual WmWindow* GetTransientParent() = 0;
+ virtual std::vector<WmWindow*> GetTransientChildren() = 0;
virtual void SetBounds(const gfx::Rect& bounds) = 0;
+ virtual void SetBoundsWithTransitionDelay(const gfx::Rect& bounds,
+ base::TimeDelta delta) = 0;
// Sets the bounds in such a way that LayoutManagers are circumvented.
virtual void SetBoundsDirect(const gfx::Rect& bounds) = 0;
virtual void SetBoundsDirectAnimated(const gfx::Rect& bounds) = 0;
« no previous file with comments | « ash/wm/common/wm_root_window_controller.h ('k') | ash/wm/default_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698