summaryrefslogtreecommitdiffstats
path: root/ui/aura/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura/window.h')
-rw-r--r--ui/aura/window.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/ui/aura/window.h b/ui/aura/window.h
index c1f98bc..d9bc9b1 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -131,12 +131,14 @@ class AURA_EXPORT Window : public ui::LayerDelegate,
// whether Show() without a Hide() has been invoked.
bool TargetVisibility() const { return visible_; }
- // Returns the window's bounds in screen coordinates. In ash, this is
- // effectively screen bounds.
- //
- // TODO(oshima): Fix this to return screen's coordinate for multi-display
- // support.
- gfx::Rect GetBoundsInRootWindow() const;
+ // Returns the window's bounds in root window's coordinates.
+ gfx::Rect GetRootWindowBounds() const;
+
+ // Returns the window's bounds in screen coordinates.
+ // How the root window's coordinates is mapped to screen's coordinates
+ // is platform dependent and defined in the implementation of the
+ // |aura::client::ScreenPositionClient| interface.
+ gfx::Rect GetScreenBounds() const;
virtual void SetTransform(const ui::Transform& transform);
@@ -149,6 +151,10 @@ class AURA_EXPORT Window : public ui::LayerDelegate,
// LayoutManager may adjust the bounds.
void SetBounds(const gfx::Rect& new_bounds);
+ // Changes the bounds of the window in the screen coordintates.
+ // If present, the window's parent's LayoutManager may adjust the bounds.
+ void SetScreenBounds(const gfx::Rect& new_bounds_in_screen_coords);
+
// Returns the target bounds of the window. If the window's layer is
// not animating, it simply returns the current bounds.
gfx::Rect GetTargetBounds() const;