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

Issue 7646003: Support auto-hide taskbar for panels on Windows. (Closed)

Created:
9 years, 4 months ago by jianli
Modified:
9 years, 3 months ago
CC:
chromium-reviews, prasadt, jianli, dcheng, Paweł Hajdan Jr., dhollowa
Visibility:
Public.

Description

Support auto-hide taskbar for panels on Windows. BUG=none TEST=browser test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98898

Patch Set 1 : '' #

Total comments: 4

Patch Set 2 : '' #

Total comments: 28

Patch Set 3 : '' #

Total comments: 10

Patch Set 4 : '' #

Total comments: 12

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 50

Patch Set 7 : '' #

Total comments: 30

Patch Set 8 : '' #

Total comments: 7

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1330 lines, -309 lines) Patch
A chrome/browser/ui/panels/auto_hiding_desktop_bar.h View 1 2 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/auto_hiding_desktop_bar_chromeos.cc View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/auto_hiding_desktop_bar_cocoa.mm View 1 2 3 4 5 6 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/auto_hiding_desktop_bar_gtk.cc View 1 2 3 4 5 6 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/auto_hiding_desktop_bar_win.h View 1 2 3 4 5 6 7 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/auto_hiding_desktop_bar_win.cc View 1 2 3 4 5 6 7 1 chunk +194 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/auto_hiding_desktop_bar_win_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/base_panel_browser_test.h View 1 2 3 4 5 6 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/base_panel_browser_test.cc View 1 2 3 4 5 6 1 chunk +241 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view_browsertest.cc View 1 2 3 4 5 6 7 8 19 chunks +132 lines, -99 lines 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 2 3 4 5 6 7 8 12 chunks +21 lines, -94 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.h View 1 2 3 4 5 6 7 8 6 chunks +74 lines, -29 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.cc View 1 2 3 4 5 6 7 8 8 chunks +167 lines, -59 lines 0 comments Download
M chrome/browser/ui/panels/panel_mouse_watcher_win.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -8 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M views/widget/monitor_win.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M views/widget/monitor_win.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -1 line 0 comments Download
M views/widget/native_widget_win.cc View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -17 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
jianli
9 years, 4 months ago (2011-08-13 00:22:35 UTC) #1
Dmitry Titov
Initial feedback: General question: what about taskbar/Dock being on the left or on the right? ...
9 years, 4 months ago (2011-08-15 17:55:18 UTC) #2
jianli
On Mon, Aug 15, 2011 at 10:55 AM, <dimich@chromium.org> wrote: > Initial feedback: > > ...
9 years, 4 months ago (2011-08-15 18:06:57 UTC) #3
jianli
http://codereview.chromium.org/7646003/diff/5005/chrome/browser/ui/panels/bottom_bar.h File chrome/browser/ui/panels/bottom_bar.h (right): http://codereview.chromium.org/7646003/diff/5005/chrome/browser/ui/panels/bottom_bar.h#newcode14 chrome/browser/ui/panels/bottom_bar.h:14: int GetBottomBarHeight(); On 2011/08/15 17:55:18, Dmitry Titov wrote: > ...
9 years, 4 months ago (2011-08-15 18:32:56 UTC) #4
Dmitry Titov
The comments are below. Also, it seems linux_views trybot fails panel-related browser test. http://codereview.chromium.org/7646003/diff/39/chrome/browser/ui/panels/bottom_bar.h File ...
9 years, 4 months ago (2011-08-17 22:56:38 UTC) #5
jianli
Also refactored browser tests for Panel and PanelBrowserView to put common code into base class ...
9 years, 4 months ago (2011-08-22 20:44:42 UTC) #6
jennb
A few drive-by comments... http://codereview.chromium.org/7646003/diff/10001/chrome/browser/ui/panels/base_panel_browser_test.h File chrome/browser/ui/panels/base_panel_browser_test.h (right): http://codereview.chromium.org/7646003/diff/10001/chrome/browser/ui/panels/base_panel_browser_test.h#newcode60 chrome/browser/ui/panels/base_panel_browser_test.h:60: mock_auto_hide_bottom_bar_ = new MockAutoHideBottomBar(); Hmm...now ...
9 years, 4 months ago (2011-08-22 21:00:16 UTC) #7
Dmitry Titov
Awesome, thanks for major iteration. In addition to Jenn's comments, here are some new ones: ...
9 years, 4 months ago (2011-08-22 22:35:53 UTC) #8
jianli
http://codereview.chromium.org/7646003/diff/10001/chrome/browser/ui/panels/base_panel_browser_test.h File chrome/browser/ui/panels/base_panel_browser_test.h (right): http://codereview.chromium.org/7646003/diff/10001/chrome/browser/ui/panels/base_panel_browser_test.h#newcode60 chrome/browser/ui/panels/base_panel_browser_test.h:60: mock_auto_hide_bottom_bar_ = new MockAutoHideBottomBar(); On 2011/08/22 21:00:16, jennb wrote: ...
9 years, 4 months ago (2011-08-22 23:28:09 UTC) #9
Dmitry Titov
Thanks for explanations! LGTM from me, please get the Jenn's one as well.
9 years, 4 months ago (2011-08-23 01:12:42 UTC) #10
jennb
http://codereview.chromium.org/7646003/diff/18001/chrome/browser/ui/panels/auto_hide_bottom_bar.h File chrome/browser/ui/panels/auto_hide_bottom_bar.h (right): http://codereview.chromium.org/7646003/diff/18001/chrome/browser/ui/panels/auto_hide_bottom_bar.h#newcode16 chrome/browser/ui/panels/auto_hide_bottom_bar.h:16: // located at the bottom of the screen and ...
9 years, 4 months ago (2011-08-23 20:28:34 UTC) #11
Peter Kasting
Drive-by comments. I think if panels have any special behavior for auto-hide taskbars on screen ...
9 years, 4 months ago (2011-08-23 20:39:18 UTC) #12
jianli
On Tue, Aug 23, 2011 at 1:39 PM, <pkasting@chromium.org> wrote: > Drive-by comments. > > ...
9 years, 4 months ago (2011-08-23 23:24:53 UTC) #13
jianli
On Tue, Aug 23, 2011 at 4:24 PM, Jian Li <jianli@chromium.org> wrote: > > > ...
9 years, 4 months ago (2011-08-23 23:26:23 UTC) #14
Peter Kasting
On 2011/08/23 23:24:53, jianli wrote: > We do not shift panels upward when the bottom ...
9 years, 4 months ago (2011-08-23 23:30:03 UTC) #15
jianli
On Tue, Aug 23, 2011 at 4:30 PM, <pkasting@chromium.org> wrote: > On 2011/08/23 23:24:53, jianli ...
9 years, 4 months ago (2011-08-24 00:21:14 UTC) #16
Peter Kasting
On 2011/08/24 00:21:14, jianli wrote: > 1) If we have many panels, it will be ...
9 years, 4 months ago (2011-08-24 00:42:49 UTC) #17
Dmitry Titov
On 2011/08/24 00:42:49, Peter Kasting wrote: > At least some early mockups and implementations I ...
9 years, 4 months ago (2011-08-24 20:49:34 UTC) #18
Peter Kasting
I talked with Ken Moore and Glen at lunch today and they were both in ...
9 years, 4 months ago (2011-08-24 22:04:29 UTC) #19
jianli
Yes, I am making changes to do the same thing for left/right auto-hide taskbar. For ...
9 years, 4 months ago (2011-08-24 22:06:42 UTC) #20
jianli
http://codereview.chromium.org/7646003/diff/18001/chrome/browser/ui/panels/auto_hide_bottom_bar.h File chrome/browser/ui/panels/auto_hide_bottom_bar.h (right): http://codereview.chromium.org/7646003/diff/18001/chrome/browser/ui/panels/auto_hide_bottom_bar.h#newcode16 chrome/browser/ui/panels/auto_hide_bottom_bar.h:16: // located at the bottom of the screen and ...
9 years, 4 months ago (2011-08-26 00:18:16 UTC) #21
jennb
Looking much better. Mostly minor nits. http://codereview.chromium.org/7646003/diff/30001/chrome/browser/ui/panels/auto_hiding_desktop_bar.h File chrome/browser/ui/panels/auto_hiding_desktop_bar.h (right): http://codereview.chromium.org/7646003/diff/30001/chrome/browser/ui/panels/auto_hiding_desktop_bar.h#newcode36 chrome/browser/ui/panels/auto_hiding_desktop_bar.h:36: class Observer { ...
9 years, 4 months ago (2011-08-26 20:41:57 UTC) #22
jianli
http://codereview.chromium.org/7646003/diff/30001/chrome/browser/ui/panels/auto_hiding_desktop_bar.h File chrome/browser/ui/panels/auto_hiding_desktop_bar.h (right): http://codereview.chromium.org/7646003/diff/30001/chrome/browser/ui/panels/auto_hiding_desktop_bar.h#newcode36 chrome/browser/ui/panels/auto_hiding_desktop_bar.h:36: class Observer { On 2011/08/26 20:41:57, jennb wrote: > ...
9 years, 4 months ago (2011-08-26 22:18:51 UTC) #23
jennb
LGTM pending try jobs and dimich re-review. http://codereview.chromium.org/7646003/diff/38001/chrome/browser/ui/panels/auto_hiding_desktop_bar_win_unittest.cc File chrome/browser/ui/panels/auto_hiding_desktop_bar_win_unittest.cc (right): http://codereview.chromium.org/7646003/diff/38001/chrome/browser/ui/panels/auto_hiding_desktop_bar_win_unittest.cc#newcode28 chrome/browser/ui/panels/auto_hiding_desktop_bar_win_unittest.cc:28: AutoHidingDesktopBar::Visibility visivility; ...
9 years, 4 months ago (2011-08-26 22:28:14 UTC) #24
Dmitry Titov
LGTM
9 years, 3 months ago (2011-08-30 18:17:32 UTC) #25
Peter Kasting
native_widget_win.cc/monitor_win.* LGTM http://codereview.chromium.org/7646003/diff/38001/views/widget/monitor_win.cc File views/widget/monitor_win.cc (right): http://codereview.chromium.org/7646003/diff/38001/views/widget/monitor_win.cc#newcode28 views/widget/monitor_win.cc:28: if (monitor == NULL) Nit: I'd roll ...
9 years, 3 months ago (2011-08-30 18:31:32 UTC) #26
jianli
9 years, 3 months ago (2011-08-30 18:38:55 UTC) #27
http://codereview.chromium.org/7646003/diff/38001/views/widget/monitor_win.cc
File views/widget/monitor_win.cc (right):

http://codereview.chromium.org/7646003/diff/38001/views/widget/monitor_win.cc...
views/widget/monitor_win.cc:28: if (monitor == NULL)
On 2011/08/30 18:31:32, Peter Kasting wrote:
> Nit: I'd roll this into the conditional below like the old code did.

Done.

http://codereview.chromium.org/7646003/diff/38001/views/widget/monitor_win.cc...
views/widget/monitor_win.cc:30: APPBARDATA taskbar_data = { 0 };
On 2011/08/30 18:31:32, Peter Kasting wrote:
> Nit: Shorter:
> 
> APPBARDATA taskbar_data = { sizeof APPBARDATA, NULL, 0, edge };

Done.

http://codereview.chromium.org/7646003/diff/38001/views/widget/monitor_win.cc...
views/widget/monitor_win.cc:35: if (::IsWindow(taskbar) &&
On 2011/08/30 18:31:32, Peter Kasting wrote:
> Nit: Shorter:
> 
> return (...) ?
>     taskbar : NULL;

Done.

Powered by Google App Engine
This is Rietveld 408576698