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

Issue 8595003: Have panels respond to changes in work area on Linux. (Closed)

Created:
9 years, 1 month ago by prasadt
Modified:
9 years, 1 month ago
Reviewers:
sadrul, Dmitry Titov, sky
CC:
chromium-reviews, jennb, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, jianli, prasadt, dcheng
Visibility:
Public.

Description

Have panels respond to changes in work area on Linux. This includes switching taskbar to/from auto-hide as well as changes to screen resolution. - Factored out the part of code that listens to X property changes from ActiveWindowWatcherX into a separate class. - Implemented a watcher for work area changes. - Add hook-up for PanelManager to respond to the changes. - This change also handles user switching between auto-hide vs non auto-hide mode of taskbar. TEST=Manual. Create panels. Switch to auto-hide and see them move them move. BUG=102719 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111171

Patch Set 1 #

Total comments: 32

Patch Set 2 : Code review feedback. #

Total comments: 4

Patch Set 3 : Move observers into their own header files. #

Total comments: 26

Patch Set 4 : Code review feedback. #

Patch Set 5 : Code review feedback. #

Patch Set 6 : Fix compile linux_view and chromeos. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -98 lines) Patch
M chrome/browser/extensions/extension_browser_event_router.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_browser_event_router.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_titlebar.h View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/browser_titlebar.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.h View 1 2 3 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.cc View 1 2 4 chunks +8 lines, -0 lines 0 comments Download
M ui/base/x/active_window_watcher_x.h View 1 2 3 2 chunks +19 lines, -24 lines 0 comments Download
M ui/base/x/active_window_watcher_x.cc View 1 2 3 4 chunks +25 lines, -42 lines 0 comments Download
A ui/base/x/active_window_watcher_x_observer.h View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
A ui/base/x/root_window_property_watcher_x.h View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
A ui/base/x/root_window_property_watcher_x.cc View 1 1 chunk +58 lines, -0 lines 0 comments Download
A ui/base/x/work_area_watcher_x.h View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A ui/base/x/work_area_watcher_x.cc View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
A ui/base/x/work_area_watcher_x_observer.h View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 2 chunks +9 lines, -9 lines 0 comments Download
M ui/ui.gyp View 1 2 3 3 chunks +13 lines, -6 lines 0 comments Download
M views/widget/native_widget_gtk.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M views/widget/native_widget_gtk.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
prasadt
dimich - Please do a overall review. sky - Please review change under ui/base/x. You're ...
9 years, 1 month ago (2011-11-18 04:21:49 UTC) #1
Dmitry Titov
Does it also help with screen resolution change? If Yes, please add to description. http://codereview.chromium.org/8595003/diff/1/chrome/browser/ui/panels/panel_browser_window_gtk.cc ...
9 years, 1 month ago (2011-11-18 04:56:37 UTC) #2
sky
http://codereview.chromium.org/8595003/diff/1/ui/base/x/active_window_watcher_x.cc File ui/base/x/active_window_watcher_x.cc (right): http://codereview.chromium.org/8595003/diff/1/ui/base/x/active_window_watcher_x.cc#newcode8 ui/base/x/active_window_watcher_x.cc:8: #include "ui/base/x/active_window_watcher_x.h" This include should be first, then system ...
9 years, 1 month ago (2011-11-18 17:54:22 UTC) #3
sadrul
drive-by http://codereview.chromium.org/8595003/diff/1/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): http://codereview.chromium.org/8595003/diff/1/ui/base/x/x11_util.cc#newcode814 ui/base/x/x11_util.cc:814: return gdk_x11_atom_to_xatom_for_display( Please use non-gtk functions (e.g. XInternAtom)
9 years, 1 month ago (2011-11-18 17:56:42 UTC) #4
prasadt
http://codereview.chromium.org/8595003/diff/1/chrome/browser/ui/panels/panel_browser_window_gtk.cc File chrome/browser/ui/panels/panel_browser_window_gtk.cc (right): http://codereview.chromium.org/8595003/diff/1/chrome/browser/ui/panels/panel_browser_window_gtk.cc#newcode97 chrome/browser/ui/panels/panel_browser_window_gtk.cc:97: // Strictly speaking we should have a single observer ...
9 years, 1 month ago (2011-11-18 22:31:42 UTC) #5
sky
http://codereview.chromium.org/8595003/diff/1/ui/base/x/active_window_watcher_x.h File ui/base/x/active_window_watcher_x.h (right): http://codereview.chromium.org/8595003/diff/1/ui/base/x/active_window_watcher_x.h#newcode39 ui/base/x/active_window_watcher_x.h:39: static void Notify(); On 2011/11/18 22:31:42, prasadt wrote: > ...
9 years, 1 month ago (2011-11-18 22:44:58 UTC) #6
sky
http://codereview.chromium.org/8595003/diff/1/ui/base/x/active_window_watcher_x.h File ui/base/x/active_window_watcher_x.h (right): http://codereview.chromium.org/8595003/diff/1/ui/base/x/active_window_watcher_x.h#newcode48 ui/base/x/active_window_watcher_x.h:48: ActiveWindowWatcherX() {} On 2011/11/18 22:44:58, sky wrote: > On ...
9 years, 1 month ago (2011-11-18 22:46:39 UTC) #7
dcheng
Drive by. http://codereview.chromium.org/8595003/diff/4004/ui/base/x/active_window_watcher_x.h File ui/base/x/active_window_watcher_x.h (left): http://codereview.chromium.org/8595003/diff/4004/ui/base/x/active_window_watcher_x.h#oldcode11 ui/base/x/active_window_watcher_x.h:11: #include "base/basictypes.h" This should remain for DISALLOW_COPY_AND_ASSIGN. ...
9 years, 1 month ago (2011-11-18 23:02:29 UTC) #8
prasadt
http://codereview.chromium.org/8595003/diff/1/ui/base/x/active_window_watcher_x.h File ui/base/x/active_window_watcher_x.h (right): http://codereview.chromium.org/8595003/diff/1/ui/base/x/active_window_watcher_x.h#newcode39 ui/base/x/active_window_watcher_x.h:39: static void Notify(); On 2011/11/18 22:44:58, sky wrote: > ...
9 years, 1 month ago (2011-11-21 23:36:49 UTC) #9
Dmitry Titov
lgtm for overall.
9 years, 1 month ago (2011-11-21 23:43:13 UTC) #10
sky
http://codereview.chromium.org/8595003/diff/11001/chrome/browser/ui/gtk/browser_titlebar.h File chrome/browser/ui/gtk/browser_titlebar.h (right): http://codereview.chromium.org/8595003/diff/11001/chrome/browser/ui/gtk/browser_titlebar.h#newcode180 chrome/browser/ui/gtk/browser_titlebar.h:180: virtual void ActiveWindowChanged(GdkWindow* active_window); OVERRIDE http://codereview.chromium.org/8595003/diff/11001/chrome/browser/ui/panels/panel_browser_window_gtk.h File chrome/browser/ui/panels/panel_browser_window_gtk.h (right): ...
9 years, 1 month ago (2011-11-21 23:50:32 UTC) #11
prasadt
http://codereview.chromium.org/8595003/diff/11001/chrome/browser/ui/gtk/browser_titlebar.h File chrome/browser/ui/gtk/browser_titlebar.h (right): http://codereview.chromium.org/8595003/diff/11001/chrome/browser/ui/gtk/browser_titlebar.h#newcode180 chrome/browser/ui/gtk/browser_titlebar.h:180: virtual void ActiveWindowChanged(GdkWindow* active_window); On 2011/11/21 23:50:32, sky wrote: ...
9 years, 1 month ago (2011-11-22 00:46:34 UTC) #12
sky
9 years, 1 month ago (2011-11-22 00:55:17 UTC) #13
LGTM

Powered by Google App Engine
This is Rietveld 408576698