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 20 matching lines...) Expand all Loading... |
31 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 31 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
32 virtual TitleDecoration GetWindowTitle(std::string* title) const OVERRIDE; | 32 virtual TitleDecoration GetWindowTitle(std::string* title) const OVERRIDE; |
33 | 33 |
34 // Overrides BrowserWindowGtk::NotificationObserver::Observe | 34 // Overrides BrowserWindowGtk::NotificationObserver::Observe |
35 virtual void Observe(int type, | 35 virtual void Observe(int type, |
36 const content::NotificationSource& source, | 36 const content::NotificationSource& source, |
37 const content::NotificationDetails& details) OVERRIDE; | 37 const content::NotificationDetails& details) OVERRIDE; |
38 | 38 |
39 protected: | 39 protected: |
40 // BrowserWindowGtk overrides | 40 // BrowserWindowGtk overrides |
| 41 virtual BrowserTitlebar* CreateBrowserTitlebar() OVERRIDE; |
41 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge) OVERRIDE; | 42 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge) OVERRIDE; |
42 virtual bool HandleTitleBarLeftMousePress( | 43 virtual bool HandleTitleBarLeftMousePress( |
43 GdkEventButton* event, | 44 GdkEventButton* event, |
44 guint32 last_click_time, | 45 guint32 last_click_time, |
45 gfx::Point last_click_position) OVERRIDE; | 46 gfx::Point last_click_position) OVERRIDE; |
46 virtual bool HandleWindowEdgeLeftMousePress( | 47 virtual bool HandleWindowEdgeLeftMousePress( |
47 GtkWindow* window, | 48 GtkWindow* window, |
48 GdkWindowEdge edge, | 49 GdkWindowEdge edge, |
49 GdkEventButton* event) OVERRIDE; | 50 GdkEventButton* event) OVERRIDE; |
50 virtual void SaveWindowPosition() OVERRIDE; | 51 virtual void SaveWindowPosition() OVERRIDE; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // current one completes. In this case, we want to start the new animation | 156 // current one completes. In this case, we want to start the new animation |
156 // from where the last one left. | 157 // from where the last one left. |
157 gfx::Rect last_animation_progressed_bounds_; | 158 gfx::Rect last_animation_progressed_bounds_; |
158 | 159 |
159 content::NotificationRegistrar registrar_; | 160 content::NotificationRegistrar registrar_; |
160 | 161 |
161 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); | 162 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); |
162 }; | 163 }; |
163 | 164 |
164 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ | 165 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
OLD | NEW |