Chromium Code Reviews| 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 |