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

Unified Diff: chrome/browser/ui/panels/panel_manager.h

Issue 7242017: Support minimizing the panel into 3-pixel line on Windows. Also support bringing up/down the titl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_gtk.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_manager.h
===================================================================
--- chrome/browser/ui/panels/panel_manager.h (revision 90982)
+++ chrome/browser/ui/panels/panel_manager.h (working copy)
@@ -10,6 +10,7 @@
#include <vector>
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/ui/panels/panel.h"
#include "ui/gfx/rect.h"
class Browser;
@@ -31,18 +32,10 @@
Panel* CreatePanel(Browser* browser);
// Removes the given panel. Both active and pending panel lists are checked.
- // If an active panel is removed, pending panels could put on display if we
- // have spaces.
+ // If an active panel is removed, pending panels could be displayed if space
+ // allows.
void Remove(Panel* panel);
- // Minimizes all panels. This only applies to active panels since only them
- // are visible.
- void MinimizeAll();
-
- // Restores all panels. This only applies to active panels since only them
- // are visible.
- void RestoreAll();
-
// Removes all active panels. Pending panels will be processed for display.
void RemoveAllActive();
@@ -51,6 +44,13 @@
void Drag(int delta_x);
void EndDragging(bool cancelled);
+ // Should we bring up the titlebar, given the current mouse point?
+ bool ShouldBringUpTitleBarForAllMinimizedPanels(int mouse_x,
+ int mouse_y) const;
+
+ // Brings up or down the title-bar for all minimized panels.
+ void BringUpOrDownTitleBarForAllMinimizedPanels(bool bring_up);
+
// Returns the number of active panels.
int active_count() const { return active_panels_.size(); }
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_gtk.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698