OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_DOCK_INFO_H_ | 5 #ifndef CHROME_BROWSER_DOCK_INFO_H_ |
6 #define CHROME_BROWSER_DOCK_INFO_H_ | 6 #define CHROME_BROWSER_DOCK_INFO_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/gfx/native_widget_types.h" | 10 #include "app/gfx/native_widget_types.h" |
11 #include "base/gfx/point.h" | 11 #include "base/gfx/point.h" |
12 #include "base/gfx/rect.h" | 12 #include "base/gfx/rect.h" |
13 | 13 |
14 // DockInfo is used to do determine possible dock locations for a dragged | 14 // DockInfo is used to do determine possible dock locations for a dragged |
15 // tab. To use DockInfo invoke GetDockInfoAtPoint. This returns a new | 15 // tab. To use DockInfo invoke GetDockInfoAtPoint. This returns a new |
16 // DockInfo whose type indicates the type of dock that should occur based | 16 // DockInfo whose type indicates the type of dock that should occur based |
17 // on the screen location. As the user drags the mouse around invoke | 17 // on the screen location. As the user drags the mouse around invoke |
18 // IsValidForPoint, this returns true if the DockInfo is still valid for the | 18 // IsValidForPoint, this returns true if the DockInfo is still valid for the |
19 // new location. If the DockInfo is not valid, invoke GetDockInfoAtPoint to | 19 // new location. If the DockInfo is not valid, invoke GetDockInfoAtPoint to |
20 // get the new DockInfo. Use GetNewWindowBounds to get the position to place | 20 // get the new DockInfo. Use GetNewWindowBounds to get the position to place |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 gfx::Point hot_spot_; | 177 gfx::Point hot_spot_; |
178 gfx::Rect monitor_bounds_; | 178 gfx::Rect monitor_bounds_; |
179 bool in_enable_area_; | 179 bool in_enable_area_; |
180 | 180 |
181 // Factory that creates DockInfos. By default this is NULL, which gives the | 181 // Factory that creates DockInfos. By default this is NULL, which gives the |
182 // default behavior. | 182 // default behavior. |
183 static Factory* factory_; | 183 static Factory* factory_; |
184 }; | 184 }; |
185 | 185 |
186 #endif // CHROME_BROWSER_DOCK_INFO_H_ | 186 #endif // CHROME_BROWSER_DOCK_INFO_H_ |
OLD | NEW |