| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PANELS_PANEL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 // Whether or not bounds will be updated when the preferred content size is | 215 // Whether or not bounds will be updated when the preferred content size is |
| 216 // changed. The testing code could set this flag to false so that other tests | 216 // changed. The testing code could set this flag to false so that other tests |
| 217 // will not be affected. | 217 // will not be affected. |
| 218 bool auto_sizing_enabled_; | 218 bool auto_sizing_enabled_; |
| 219 | 219 |
| 220 bool mouse_watching_disabled_; // For tests to simulate mouse movements. | 220 bool mouse_watching_disabled_; // For tests to simulate mouse movements. |
| 221 | 221 |
| 222 static const int kPanelsHorizontalSpacing = 4; | 222 static const int kPanelsHorizontalSpacing = 4; |
| 223 | 223 |
| 224 // Minimum width and height of a panel. | |
| 225 // Note: The minimum size of a widget (see widget.cc) is fixed to 100x100. | |
| 226 // TODO(jianli): Need to fix this to support smaller panel. | |
| 227 // http://crbug.com/102708 | |
| 228 static const int kPanelMinWidth = 100; | |
| 229 static const int kPanelMinHeight = 100; | |
| 230 | |
| 231 DISALLOW_COPY_AND_ASSIGN(PanelManager); | 224 DISALLOW_COPY_AND_ASSIGN(PanelManager); |
| 232 }; | 225 }; |
| 233 | 226 |
| 234 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 227 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
| OLD | NEW |