| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 scoped_ptr<DownloadShelfGtk> download_shelf_; | 176 scoped_ptr<DownloadShelfGtk> download_shelf_; |
| 177 | 177 |
| 178 private: | 178 private: |
| 179 // Show or hide the bookmark bar. | 179 // Show or hide the bookmark bar. |
| 180 void MaybeShowBookmarkBar(TabContents* contents, bool animate); | 180 void MaybeShowBookmarkBar(TabContents* contents, bool animate); |
| 181 | 181 |
| 182 // Sets the default size for the window and the the way the user is allowed to | 182 // Sets the default size for the window and the the way the user is allowed to |
| 183 // resize it. | 183 // resize it. |
| 184 void SetGeometryHints(); | 184 void SetGeometryHints(); |
| 185 | 185 |
| 186 // Set up the window icon (potentially used in window border or alt-tab list). | |
| 187 void SetWindowIcon(); | |
| 188 | |
| 189 // Connect to signals on |window_|. | 186 // Connect to signals on |window_|. |
| 190 void ConnectHandlersToSignals(); | 187 void ConnectHandlersToSignals(); |
| 191 | 188 |
| 192 // Create the various UI components. | 189 // Create the various UI components. |
| 193 void InitWidgets(); | 190 void InitWidgets(); |
| 194 | 191 |
| 195 // Set up background color of the window (depends on if we're incognito or | 192 // Set up background color of the window (depends on if we're incognito or |
| 196 // not). | 193 // not). |
| 197 void SetBackgroundColor(); | 194 void SetBackgroundColor(); |
| 198 | 195 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 | 319 |
| 323 // True if the window manager thinks the window is active. Not all window | 320 // True if the window manager thinks the window is active. Not all window |
| 324 // managers keep track of this state (_NET_ACTIVE_WINDOW), in which case | 321 // managers keep track of this state (_NET_ACTIVE_WINDOW), in which case |
| 325 // this will always be true. | 322 // this will always be true. |
| 326 bool is_active_; | 323 bool is_active_; |
| 327 | 324 |
| 328 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 325 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
| 329 }; | 326 }; |
| 330 | 327 |
| 331 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ | 328 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |