OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_UI_APP_LIST_APP_LIST_POSITIONER_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_POSITIONER_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_POSITIONER_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_POSITIONER_H_ |
7 | 7 |
8 #include "ui/gfx/display.h" | 8 #include "ui/gfx/display.h" |
9 #include "ui/gfx/size.h" | 9 #include "ui/gfx/geometry/size.h" |
10 | 10 |
11 namespace gfx { | 11 namespace gfx { |
12 class Point; | 12 class Point; |
13 class Rect; | 13 class Rect; |
14 } | 14 } |
15 | 15 |
16 // Helps anchor the App List, onto the shelf (taskbar, dock or similar) or to | 16 // Helps anchor the App List, onto the shelf (taskbar, dock or similar) or to |
17 // the corner of a display. This class does not impose any particular policy for | 17 // the corner of a display. This class does not impose any particular policy for |
18 // when and how to anchor the window. The platform-specific code that uses this | 18 // when and how to anchor the window. The platform-specific code that uses this |
19 // class is free to decide, for example, when the window should be anchored to | 19 // class is free to decide, for example, when the window should be anchored to |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 // Size of the App List. | 108 // Size of the App List. |
109 gfx::Size window_size_; | 109 gfx::Size window_size_; |
110 | 110 |
111 // The minimum distance, in pixels, to position the app list from the shelf | 111 // The minimum distance, in pixels, to position the app list from the shelf |
112 // or edge of screen. | 112 // or edge of screen. |
113 int min_distance_from_edge_; | 113 int min_distance_from_edge_; |
114 }; | 114 }; |
115 | 115 |
116 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_POSITIONER_H_ | 116 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_POSITIONER_H_ |
OLD | NEW |