Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SCREEN_ASH_H_ | 5 #ifndef ASH_SCREEN_ASH_H_ |
| 6 #define ASH_SCREEN_ASH_H_ | 6 #define ASH_SCREEN_ASH_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/gfx/screen.h" | 10 #include "ui/gfx/screen.h" |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 ScreenAsh(); | 22 ScreenAsh(); |
| 23 virtual ~ScreenAsh(); | 23 virtual ~ScreenAsh(); |
| 24 | 24 |
| 25 // Finds the display that contains |point| in screeen coordinates. | 25 // Finds the display that contains |point| in screeen coordinates. |
| 26 // Returns invalid display if there is no display that can satisfy | 26 // Returns invalid display if there is no display that can satisfy |
| 27 // the condition. | 27 // the condition. |
| 28 static gfx::Display FindDisplayContainingPoint(const gfx::Point& point); | 28 static gfx::Display FindDisplayContainingPoint(const gfx::Point& point); |
| 29 | 29 |
| 30 // Returns the bounds for maximized windows in parent coordinates. | 30 // Returns the bounds for maximized windows in parent coordinates. |
| 31 // Maximized windows trigger auto-hiding the shelf. | 31 // Maximized windows trigger auto-hiding the shelf. |
| 32 static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window); | 32 static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window); |
|
sky
2012/10/17 13:39:01
Aren't you going to remove this too (at least your
| |
| 33 | 33 |
| 34 // Returns work area when a maximized window is not present in | |
| 35 // parent coordinates. | |
| 36 static gfx::Rect GetUnmaximizedWorkAreaBoundsInParent(aura::Window* window); | |
| 37 | |
| 38 // Returns the display bounds in parent coordinates. | 34 // Returns the display bounds in parent coordinates. |
| 39 static gfx::Rect GetDisplayBoundsInParent(aura::Window* window); | 35 static gfx::Rect GetDisplayBoundsInParent(aura::Window* window); |
| 40 | 36 |
| 41 // Returns the display's work area bounds in parent coordinates. | 37 // Returns the display's work area bounds in parent coordinates. |
| 42 static gfx::Rect GetDisplayWorkAreaBoundsInParent(aura::Window* window); | 38 static gfx::Rect GetDisplayWorkAreaBoundsInParent(aura::Window* window); |
| 43 | 39 |
| 44 // Converts |rect| from |window|'s coordinates to the virtual screen | 40 // Converts |rect| from |window|'s coordinates to the virtual screen |
| 45 // coordinates. | 41 // coordinates. |
| 46 static gfx::Rect ConvertRectToScreen(aura::Window* window, | 42 static gfx::Rect ConvertRectToScreen(aura::Window* window, |
| 47 const gfx::Rect& rect); | 43 const gfx::Rect& rect); |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 71 const gfx::Rect& match_rect) const OVERRIDE; | 67 const gfx::Rect& match_rect) const OVERRIDE; |
| 72 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; | 68 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; |
| 73 | 69 |
| 74 private: | 70 private: |
| 75 DISALLOW_COPY_AND_ASSIGN(ScreenAsh); | 71 DISALLOW_COPY_AND_ASSIGN(ScreenAsh); |
| 76 }; | 72 }; |
| 77 | 73 |
| 78 } // namespace ash | 74 } // namespace ash |
| 79 | 75 |
| 80 #endif // ASH_SCREEN_ASH_H_ | 76 #endif // ASH_SCREEN_ASH_H_ |
| OLD | NEW |