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

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

Issue 9699036: Fix handling of minimized panel count (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: test changed Created 8 years, 9 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
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 CHROME_BROWSER_UI_PANELS_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 10
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 NativePanel* native_panel() { return native_panel_; } 219 NativePanel* native_panel() { return native_panel_; }
220 Browser* browser() const { return browser_; } 220 Browser* browser() const { return browser_; }
221 221
222 // May be NULL if panel is newly created and has not been positioned yet. 222 // May be NULL if panel is newly created and has not been positioned yet.
223 PanelStrip* panel_strip() const { return panel_strip_; } 223 PanelStrip* panel_strip() const { return panel_strip_; }
224 224
225 // Sets the current panel strip that contains this panel. 225 // Sets the current panel strip that contains this panel.
226 void SetPanelStrip(PanelStrip* new_strip); 226 void SetPanelStrip(PanelStrip* new_strip);
227 227
228 ExpansionState expansion_state() const { return expansion_state_; } 228 ExpansionState expansion_state() const { return expansion_state_; }
229 ExpansionState old_expansion_state() const { return old_expansion_state_; }
230 const gfx::Size& min_size() const { return min_size_; } 229 const gfx::Size& min_size() const { return min_size_; }
231 const gfx::Size& max_size() const { return max_size_; } 230 const gfx::Size& max_size() const { return max_size_; }
232 bool auto_resizable() const { return auto_resizable_; } 231 bool auto_resizable() const { return auto_resizable_; }
233 232
234 bool in_preview_mode() const { return in_preview_mode_; } 233 bool in_preview_mode() const { return in_preview_mode_; }
235 234
236 bool draggable() const; 235 bool draggable() const;
237 236
238 // The restored size is the size of the panel when it is expanded. 237 // The restored size is the size of the panel when it is expanded.
239 gfx::Size restored_size() const { return restored_size_; } 238 gfx::Size restored_size() const { return restored_size_; }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // should not be affected by layout refresh. This is currently used by drag 328 // should not be affected by layout refresh. This is currently used by drag
330 // controller to add a panel to the strip without causing its bounds to 329 // controller to add a panel to the strip without causing its bounds to
331 // change. 330 // change.
332 bool in_preview_mode_; 331 bool in_preview_mode_;
333 332
334 // Platform specifc implementation for panels. It'd be one of 333 // Platform specifc implementation for panels. It'd be one of
335 // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa. 334 // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa.
336 NativePanel* native_panel_; // Weak, owns us. 335 NativePanel* native_panel_; // Weak, owns us.
337 336
338 ExpansionState expansion_state_; 337 ExpansionState expansion_state_;
339 ExpansionState old_expansion_state_;
340 338
341 content::NotificationRegistrar registrar_; 339 content::NotificationRegistrar registrar_;
342 340
343 DISALLOW_COPY_AND_ASSIGN(Panel); 341 DISALLOW_COPY_AND_ASSIGN(Panel);
344 }; 342 };
345 343
346 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ 344 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698