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

Unified Diff: chrome/browser/ui/panels/panel_manager_win.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
Index: chrome/browser/ui/panels/panel_manager_win.h
===================================================================
--- chrome/browser/ui/panels/panel_manager_win.h (revision 0)
+++ chrome/browser/ui/panels/panel_manager_win.h (revision 0)
@@ -0,0 +1,45 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_WIN_H_
+#define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_WIN_H_
+#pragma once
+
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/ui/panels/panel_manager.h"
+
+class PanelManagerMouseWatcher;
+
+class PanelManagerWin : public PanelManager {
jennb 2011/06/27 23:18:02 Hmmm...can we get away without platform specific p
jianli 2011/06/29 01:28:12 Done.
+ public:
+ PanelManagerWin();
+ virtual ~PanelManagerWin();
+
+ virtual void Remove(Panel* panel) OVERRIDE;
+ virtual void Minimize(Panel* panel) OVERRIDE;
+ virtual void Restore(Panel* panel, bool titlebar_only) OVERRIDE;
+
+ private:
+ friend class PanelManagerMouseWatcher;
+
+ // Ensures that the global mouse watcher is started so that we can bring
+ // up or down the titlebar for those minimized panels.
+ void EnsureMouseWatchStarted(int height_to_watch_on_mouse_enter,
+ int height_to_watch_on_mouse_exit);
+
+ // Stops the global mouse watcher if it is not needed, when all panels are
+ // fully restored.
+ void StopMouseWatchIfNotNeeded();
+
+ // Brings up or down the titlebar for all minimized panels. This does not
+ // affect all other panels that are fully restored.
+ void BringUpTitleBarForAllMinimizedPanels();
+ void BringDownTitleBarForAllMinimizedPanels();
+
+ scoped_ptr<PanelManagerMouseWatcher> mouse_watcher_;
+
+ DISALLOW_COPY_AND_ASSIGN(PanelManagerWin);
+};
+
+#endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_WIN_H_
Property changes on: chrome\browser\ui\panels\panel_manager_win.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698