| 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 guint32 last_click_time_; | 369 guint32 last_click_time_; |
| 370 gfx::Point last_click_position_; | 370 gfx::Point last_click_position_; |
| 371 | 371 |
| 372 // If true, maximize the window after we call BrowserWindow::Show for the | 372 // If true, maximize the window after we call BrowserWindow::Show for the |
| 373 // first time. This is to work around a compiz bug. | 373 // first time. This is to work around a compiz bug. |
| 374 bool maximize_after_show_; | 374 bool maximize_after_show_; |
| 375 | 375 |
| 376 // The accelerator group used to handle accelerators, owned by this object. | 376 // The accelerator group used to handle accelerators, owned by this object. |
| 377 GtkAccelGroup* accel_group_; | 377 GtkAccelGroup* accel_group_; |
| 378 | 378 |
| 379 // Whether SetFullscreen(true) was called, indicating if we really want to be |
| 380 // in fullscreen mode. We should only be in fullscreen mode when both |
| 381 // |set_fullscreen_| and (|state_| & GDK_WWINDOW_STATE_FULLSCREEN) are true, |
| 382 // because following situations might occur: |
| 383 // 1. Window Manager doesn't support fullscreen mode, so that |
| 384 // (|state_| & GDK_WWINDOW_STATE_FULLSCREEN) will always be false. |
| 385 // 2. Window Manager may turn our window into fullscreen mode automatically, |
| 386 // when we do not really want. |
| 387 bool set_fullscreen_; |
| 388 |
| 389 // Indicates if we are really in fullscreen mode, that's both |
| 390 // |set_fullscreen_| and (|state_| & GDK_WWINDOW_STATE_FULLSCREEN) are true. |
| 391 // We track it instead of checking above two values every time to make sure we |
| 392 // only do interface adjustment when necessary. |
| 393 bool fullscreen_; |
| 394 |
| 379 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 395 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
| 380 }; | 396 }; |
| 381 | 397 |
| 382 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ | 398 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |