| 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_GTK_BROWSER_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 | 455 |
| 456 // Hides UI elements for unsupported window features. | 456 // Hides UI elements for unsupported window features. |
| 457 void HideUnsupportedWindowFeatures(); | 457 void HideUnsupportedWindowFeatures(); |
| 458 | 458 |
| 459 // Helper functions that query |browser_| concerning support for UI features | 459 // Helper functions that query |browser_| concerning support for UI features |
| 460 // in this window. (For example, a popup window might not support a tabstrip). | 460 // in this window. (For example, a popup window might not support a tabstrip). |
| 461 bool IsTabStripSupported() const; | 461 bool IsTabStripSupported() const; |
| 462 bool IsToolbarSupported() const; | 462 bool IsToolbarSupported() const; |
| 463 bool IsBookmarkBarSupported() const; | 463 bool IsBookmarkBarSupported() const; |
| 464 | 464 |
| 465 // Returns |true| if the window bounds match the monitor size. | |
| 466 bool BoundsMatchMonitorSize(); | |
| 467 | |
| 468 // Put the bookmark bar where it belongs. | 465 // Put the bookmark bar where it belongs. |
| 469 void PlaceBookmarkBar(bool is_floating); | 466 void PlaceBookmarkBar(bool is_floating); |
| 470 | 467 |
| 471 // Determine whether we use should default to native decorations or the custom | 468 // Determine whether we use should default to native decorations or the custom |
| 472 // frame based on the currently-running window manager. | 469 // frame based on the currently-running window manager. |
| 473 static bool GetCustomFramePrefDefault(); | 470 static bool GetCustomFramePrefDefault(); |
| 474 | 471 |
| 475 // The position and size of the current window. | 472 // The position and size of the current window. |
| 476 gfx::Rect bounds_; | 473 gfx::Rect bounds_; |
| 477 | 474 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; | 569 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; |
| 573 | 570 |
| 574 FullscreenExitBubbleType fullscreen_exit_bubble_type_; | 571 FullscreenExitBubbleType fullscreen_exit_bubble_type_; |
| 575 | 572 |
| 576 content::NotificationRegistrar registrar_; | 573 content::NotificationRegistrar registrar_; |
| 577 | 574 |
| 578 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 575 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
| 579 }; | 576 }; |
| 580 | 577 |
| 581 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 578 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |