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

Unified Diff: chrome/browser/ui/panels/panel_mouse_watcher_win.cc

Issue 7646003: Support auto-hide taskbar for panels on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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_manager.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_mouse_watcher_win.cc
===================================================================
--- chrome/browser/ui/panels/panel_mouse_watcher_win.cc (revision 98834)
+++ chrome/browser/ui/panels/panel_mouse_watcher_win.cc (working copy)
@@ -36,7 +36,7 @@
void OnMouseAction(int mouse_x, int mouse_y);
HHOOK mouse_hook_;
- bool bring_up_titlebar_;
+ bool bring_up_titlebars_;
DISALLOW_COPY_AND_ASSIGN(PanelMouseWatcherWin);
};
@@ -45,7 +45,7 @@
PanelMouseWatcherWin::PanelMouseWatcherWin()
: mouse_hook_(NULL),
- bring_up_titlebar_(false) {
+ bring_up_titlebars_(false) {
mouse_hook_ = ::SetWindowsHookEx(
WH_MOUSE_LL, MouseHookProc, GetCurrentModuleHandle(), 0);
DCHECK(mouse_hook_);
@@ -69,14 +69,13 @@
void PanelMouseWatcherWin::OnMouseAction(int mouse_x, int mouse_y) {
PanelManager* panel_manager = PanelManager::GetInstance();
- bool bring_up_titlebar =
- panel_manager->ShouldBringUpTitlebarForAllMinimizedPanels(
- mouse_x, mouse_y);
- if (bring_up_titlebar == bring_up_titlebar_)
+ bool bring_up_titlebars = panel_manager->ShouldBringUpTitlebars(
+ mouse_x, mouse_y);
+ if (bring_up_titlebars == bring_up_titlebars_)
return;
- bring_up_titlebar_ = bring_up_titlebar;
+ bring_up_titlebars_ = bring_up_titlebars;
- panel_manager->BringUpOrDownTitlebarForAllMinimizedPanels(bring_up_titlebar);
+ panel_manager->BringUpOrDownTitlebars(bring_up_titlebars);
}
} // namespace
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698