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

Side by Side Diff: chrome/browser/ui/panels/panel_manager.h

Issue 8621002: Reduce minimum size of Panels to allow 1-text-line tight autosize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simplify test Created 9 years, 1 month 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698