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

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: Move observers into their own header files. 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..ad4413759cd8a8505b2be9996c11643454d2b81f 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_observer.h"
class Panel;
class PanelSettingsMenuModel;
@@ -22,17 +23,18 @@ class SlideAnimation;
}
class PanelBrowserWindowGtk : public BrowserWindowGtk,
- public NativePanel,
public MenuGtk::Delegate,
public MessageLoopForUI::Observer,
- public ui::AnimationDelegate {
+ public NativePanel,
+ public ui::AnimationDelegate,
+ public ui::WorkAreaWatcherXObserver {
friend class NativePanelTestingGtk;
public:
PanelBrowserWindowGtk(Browser* browser, Panel* panel,
const gfx::Rect& bounds);
virtual ~PanelBrowserWindowGtk();
- // BrowserWindowGtk overrides
+ // BrowserWindowGtk override
virtual void Init() OVERRIDE;
// BrowserWindow overrides
@@ -41,6 +43,9 @@ class PanelBrowserWindowGtk : public BrowserWindowGtk,
GdkEventButton* event) OVERRIDE;
virtual TitleDecoration GetWindowTitle(std::string* title) const OVERRIDE;
+ // ui::WorkAreaWatcherX::Observer override
+ void WorkAreaChanged() OVERRIDE;
sky 2011/11/21 23:50:32 virtual
prasadt 2011/11/22 00:46:34 Done.
+
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