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 "base/gfx/rect.h" | 10 #include "base/gfx/rect.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 protected: | 112 protected: |
113 virtual void DestroyBrowser(); | 113 virtual void DestroyBrowser(); |
114 GtkWindow* window_; | 114 GtkWindow* window_; |
115 GtkWidget* window_vbox_; | 115 GtkWidget* window_vbox_; |
116 GtkWidget* content_vbox_; | 116 GtkWidget* content_vbox_; |
117 | 117 |
118 scoped_ptr<Browser> browser_; | 118 scoped_ptr<Browser> browser_; |
119 | 119 |
120 private: | 120 private: |
| 121 // Sets the default size for the window and the the way the user is allowed to |
| 122 // resize it. |
| 123 void SetGeometryHints(); |
| 124 |
121 // Connect accelerators that aren't connected to menu items (like ctrl-o, | 125 // Connect accelerators that aren't connected to menu items (like ctrl-o, |
122 // ctrl-l, etc.). | 126 // ctrl-l, etc.). |
123 void ConnectAccelerators(); | 127 void ConnectAccelerators(); |
124 | 128 |
125 // Change whether we're showing the custom blue frame. | 129 // Change whether we're showing the custom blue frame. |
126 // Must be called once at startup. | 130 // Must be called once at startup. |
127 // Triggers relayout of the content. | 131 // Triggers relayout of the content. |
128 void SetCustomFrame(bool custom_frame); | 132 void SetCustomFrame(bool custom_frame); |
129 | 133 |
130 // Callback for when the "content area" vbox needs to be redrawn. | 134 // Callback for when the "content area" vbox needs to be redrawn. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // Experiment with using views for gtk. | 186 // Experiment with using views for gtk. |
183 scoped_ptr<views::WidgetGtk> experimental_widget_; | 187 scoped_ptr<views::WidgetGtk> experimental_widget_; |
184 | 188 |
185 // The timer used to update frames for the Loading Animation. | 189 // The timer used to update frames for the Loading Animation. |
186 base::RepeatingTimer<BrowserWindowGtk> loading_animation_timer_; | 190 base::RepeatingTimer<BrowserWindowGtk> loading_animation_timer_; |
187 | 191 |
188 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 192 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
189 }; | 193 }; |
190 | 194 |
191 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ | 195 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
OLD | NEW |