| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_GTK_BROWSER_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // Checks to see if the mouse pointer at |x|, |y| is over the border of the | 265 // Checks to see if the mouse pointer at |x|, |y| is over the border of the |
| 266 // custom frame (a spot that should trigger a window resize). Returns true if | 266 // custom frame (a spot that should trigger a window resize). Returns true if |
| 267 // it should and sets |edge|. | 267 // it should and sets |edge|. |
| 268 bool GetWindowEdge(int x, int y, GdkWindowEdge* edge); | 268 bool GetWindowEdge(int x, int y, GdkWindowEdge* edge); |
| 269 | 269 |
| 270 NotificationRegistrar registrar_; | 270 NotificationRegistrar registrar_; |
| 271 | 271 |
| 272 gfx::Rect bounds_; | 272 gfx::Rect bounds_; |
| 273 GdkWindowState state_; | 273 GdkWindowState state_; |
| 274 | 274 |
| 275 // Whether we are full screen. Since IsFullscreen() gets called before | |
| 276 // OnStateChanged(), we can't rely on |state_| & GDK_WINDOW_STATE_FULLSCREEN. | |
| 277 bool full_screen_; | |
| 278 | |
| 279 // The container for the titlebar + tab strip. | 275 // The container for the titlebar + tab strip. |
| 280 scoped_ptr<BrowserTitlebar> titlebar_; | 276 scoped_ptr<BrowserTitlebar> titlebar_; |
| 281 | 277 |
| 282 // The object that manages all of the widgets in the toolbar. | 278 // The object that manages all of the widgets in the toolbar. |
| 283 scoped_ptr<BrowserToolbarGtk> toolbar_; | 279 scoped_ptr<BrowserToolbarGtk> toolbar_; |
| 284 | 280 |
| 285 // The object that manages the bookmark bar. | 281 // The object that manages the bookmark bar. |
| 286 scoped_ptr<BookmarkBarGtk> bookmark_bar_; | 282 scoped_ptr<BookmarkBarGtk> bookmark_bar_; |
| 287 | 283 |
| 288 // The object that manages the extension shelf. | 284 // The object that manages the extension shelf. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 | 328 |
| 333 // True if the window manager thinks the window is active. Not all window | 329 // True if the window manager thinks the window is active. Not all window |
| 334 // managers keep track of this state (_NET_ACTIVE_WINDOW), in which case | 330 // managers keep track of this state (_NET_ACTIVE_WINDOW), in which case |
| 335 // this will always be true. | 331 // this will always be true. |
| 336 bool is_active_; | 332 bool is_active_; |
| 337 | 333 |
| 338 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 334 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
| 339 }; | 335 }; |
| 340 | 336 |
| 341 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ | 337 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |