OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "chrome/browser/ui/gtk/browser_window_gtk.h" | 10 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 // BrowserWindow overrides | 35 // BrowserWindow overrides |
36 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 36 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
37 virtual void ShowSettingsMenu(GtkWidget* widget, | 37 virtual void ShowSettingsMenu(GtkWidget* widget, |
38 GdkEventButton* event) OVERRIDE; | 38 GdkEventButton* event) OVERRIDE; |
39 virtual TitleDecoration GetWindowTitle(std::string* title) const OVERRIDE; | 39 virtual TitleDecoration GetWindowTitle(std::string* title) const OVERRIDE; |
40 | 40 |
41 // ui::WorkAreaWatcherXObserver override | 41 // ui::WorkAreaWatcherXObserver override |
42 virtual void WorkAreaChanged() OVERRIDE; | 42 virtual void WorkAreaChanged() OVERRIDE; |
43 | 43 |
| 44 // Overrides BrowserWindowGtk::NotificationObserver::Observe |
| 45 virtual void Observe(int type, |
| 46 const content::NotificationSource& source, |
| 47 const content::NotificationDetails& details) OVERRIDE; |
| 48 |
44 protected: | 49 protected: |
45 // BrowserWindowGtk overrides | 50 // BrowserWindowGtk overrides |
46 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge) OVERRIDE; | 51 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge) OVERRIDE; |
47 virtual bool HandleTitleBarLeftMousePress( | 52 virtual bool HandleTitleBarLeftMousePress( |
48 GdkEventButton* event, | 53 GdkEventButton* event, |
49 guint32 last_click_time, | 54 guint32 last_click_time, |
50 gfx::Point last_click_position) OVERRIDE; | 55 gfx::Point last_click_position) OVERRIDE; |
51 virtual void SaveWindowPosition() OVERRIDE; | 56 virtual void SaveWindowPosition() OVERRIDE; |
52 virtual void SetGeometryHints() OVERRIDE; | 57 virtual void SetGeometryHints() OVERRIDE; |
53 virtual bool UseCustomFrame() OVERRIDE; | 58 virtual bool UseCustomFrame() OVERRIDE; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // Used to animate the bounds change. | 194 // Used to animate the bounds change. |
190 scoped_ptr<PanelBoundsAnimation> bounds_animator_; | 195 scoped_ptr<PanelBoundsAnimation> bounds_animator_; |
191 gfx::Rect animation_start_bounds_; | 196 gfx::Rect animation_start_bounds_; |
192 | 197 |
193 // This records the bounds set on the last animation progress notification. | 198 // This records the bounds set on the last animation progress notification. |
194 // We need this for the case where a new bounds animation starts before the | 199 // We need this for the case where a new bounds animation starts before the |
195 // current one completes. In this case, we want to start the new animation | 200 // current one completes. In this case, we want to start the new animation |
196 // from where the last one left. | 201 // from where the last one left. |
197 gfx::Rect last_animation_progressed_bounds_; | 202 gfx::Rect last_animation_progressed_bounds_; |
198 | 203 |
| 204 content::NotificationRegistrar registrar_; |
| 205 |
199 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); | 206 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); |
200 }; | 207 }; |
201 | 208 |
202 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ | 209 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
OLD | NEW |