| 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 // A helper class that contains the gtk widgets that make up the titlebar. The | 5 // A helper class that contains the gtk widgets that make up the titlebar. The |
| 6 // titlebar consists of the tabstrip and if the custom chrome frame is turned | 6 // titlebar consists of the tabstrip and if the custom chrome frame is turned |
| 7 // on, it includes the taller titlebar and minimize, restore, maximize, and | 7 // on, it includes the taller titlebar and minimize, restore, maximize, and |
| 8 // close buttons. | 8 // close buttons. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_ | 10 #ifndef CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_ |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Box that holds the min/max/close buttons if the user turns off window | 78 // Box that holds the min/max/close buttons if the user turns off window |
| 79 // manager decorations. | 79 // manager decorations. |
| 80 GtkWidget* titlebar_buttons_box_; | 80 GtkWidget* titlebar_buttons_box_; |
| 81 // Gtk alignment that contains the tab strip. If the user turns off window | 81 // Gtk alignment that contains the tab strip. If the user turns off window |
| 82 // manager decorations, we draw this taller. | 82 // manager decorations, we draw this taller. |
| 83 GtkWidget* titlebar_alignment_; | 83 GtkWidget* titlebar_alignment_; |
| 84 | 84 |
| 85 // Whether we are using a custom frame. | 85 // Whether we are using a custom frame. |
| 86 bool using_custom_frame_; | 86 bool using_custom_frame_; |
| 87 | 87 |
| 88 // The normal width of the close button (the width it appears to the user) |
| 89 // which is determined by the width of the bitmap we use to paint it. Its |
| 90 // actual clickable width may differ if we are showing a custom frame and the |
| 91 // window is maximized. |
| 92 int close_button_default_width_; |
| 93 |
| 88 // Maximize and restore widgets in the titlebar. | 94 // Maximize and restore widgets in the titlebar. |
| 89 scoped_ptr<CustomDrawButton> minimize_button_; | 95 scoped_ptr<CustomDrawButton> minimize_button_; |
| 90 scoped_ptr<CustomDrawButton> maximize_button_; | 96 scoped_ptr<CustomDrawButton> maximize_button_; |
| 91 scoped_ptr<CustomDrawButton> restore_button_; | 97 scoped_ptr<CustomDrawButton> restore_button_; |
| 92 scoped_ptr<CustomDrawButton> close_button_; | 98 scoped_ptr<CustomDrawButton> close_button_; |
| 93 | 99 |
| 94 // The context menu. | 100 // The context menu. |
| 95 scoped_ptr<MenuGtk> context_menu_; | 101 scoped_ptr<MenuGtk> context_menu_; |
| 96 }; | 102 }; |
| 97 | 103 |
| 98 #endif // CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_ | 104 #endif // CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_ |
| OLD | NEW |