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

Unified Diff: chrome/browser/ui/panels/panel_browser_window_gtk.h

Issue 8595003: Have panels respond to changes in work area on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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_browser_window_gtk.h
diff --git a/chrome/browser/ui/panels/panel_browser_window_gtk.h b/chrome/browser/ui/panels/panel_browser_window_gtk.h
index 8f6c447e1cdeeef5827014078f86d23e1bf8f831..9c1c4c0d5ae1b9d9111ab595b96e86b103b9037f 100644
--- a/chrome/browser/ui/panels/panel_browser_window_gtk.h
+++ b/chrome/browser/ui/panels/panel_browser_window_gtk.h
@@ -10,6 +10,7 @@
#include "chrome/browser/ui/gtk/menu_gtk.h"
#include "chrome/browser/ui/panels/native_panel.h"
#include "ui/base/animation/animation_delegate.h"
+#include "ui/base/x/work_area_watcher_x.h"
class Panel;
class PanelSettingsMenuModel;
@@ -25,6 +26,7 @@ class PanelBrowserWindowGtk : public BrowserWindowGtk,
public NativePanel,
public MenuGtk::Delegate,
public MessageLoopForUI::Observer,
+ public ui::WorkAreaWatcherX::Observer,
Dmitry Titov 2011/11/18 04:56:37 If these are in alphabetic order, then last two sh
prasadt 2011/11/18 22:31:42 Moved things around to keep them in order. I was
public ui::AnimationDelegate {
friend class NativePanelTestingGtk;
public:
@@ -41,6 +43,9 @@ class PanelBrowserWindowGtk : public BrowserWindowGtk,
GdkEventButton* event) OVERRIDE;
virtual TitleDecoration GetWindowTitle(std::string* title) const OVERRIDE;
+ // ui::WorkAreaWatcherX::Observer overrides
Dmitry Titov 2011/11/18 04:56:37 overrides -> override?
prasadt 2011/11/18 22:31:42 Done.
+ void WorkAreaChanged() OVERRIDE;
+
protected:
// BrowserWindowGtk overrides
virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge) OVERRIDE;
@@ -59,7 +64,6 @@ class PanelBrowserWindowGtk : public BrowserWindowGtk,
virtual void HandleFocusIn(GtkWidget* widget,
GdkEventFocus* event) OVERRIDE;
-
// Overridden from NativePanel:
virtual void ShowPanel() OVERRIDE;
virtual void ShowPanelInactive() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698