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

Side by Side Diff: ash/screen_ash.h

Issue 10979090: Simplify WorkAreaBounds access logic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/screen_ash.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
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);
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
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_
OLDNEW
« no previous file with comments | « no previous file | ash/screen_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698