| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 virtual void TabDetachedAt(TabContents* contents, int index); | 112 virtual void TabDetachedAt(TabContents* contents, int index); |
| 113 virtual void TabSelectedAt(TabContents* old_contents, | 113 virtual void TabSelectedAt(TabContents* old_contents, |
| 114 TabContents* new_contents, | 114 TabContents* new_contents, |
| 115 int index, | 115 int index, |
| 116 bool user_gesture); | 116 bool user_gesture); |
| 117 virtual void TabStripEmpty(); | 117 virtual void TabStripEmpty(); |
| 118 | 118 |
| 119 // Accessor for the tab strip. | 119 // Accessor for the tab strip. |
| 120 TabStripGtk* tabstrip() const { return tabstrip_.get(); } | 120 TabStripGtk* tabstrip() const { return tabstrip_.get(); } |
| 121 | 121 |
| 122 void UpdateDevToolsForContents(TabContents* contents); |
| 123 |
| 122 void UpdateUIForContents(TabContents* contents); | 124 void UpdateUIForContents(TabContents* contents); |
| 123 | 125 |
| 124 void OnBoundsChanged(const gfx::Rect& bounds); | 126 void OnBoundsChanged(const gfx::Rect& bounds); |
| 125 void OnStateChanged(GdkWindowState state); | 127 void OnStateChanged(GdkWindowState state); |
| 126 | 128 |
| 127 // Returns false if we're not ready to close yet. E.g., a tab may have an | 129 // Returns false if we're not ready to close yet. E.g., a tab may have an |
| 128 // onbeforeunload handler that prevents us from closing. | 130 // onbeforeunload handler that prevents us from closing. |
| 129 bool CanClose() const; | 131 bool CanClose() const; |
| 130 | 132 |
| 131 bool ShouldShowWindowIcon() const; | 133 bool ShouldShowWindowIcon() const; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 scoped_ptr<BookmarkBarGtk> bookmark_bar_; | 279 scoped_ptr<BookmarkBarGtk> bookmark_bar_; |
| 278 | 280 |
| 279 // The status bubble manager. Always non-NULL. | 281 // The status bubble manager. Always non-NULL. |
| 280 scoped_ptr<StatusBubbleGtk> status_bubble_; | 282 scoped_ptr<StatusBubbleGtk> status_bubble_; |
| 281 | 283 |
| 282 // A container that manages the GtkWidget*s that are the webpage display | 284 // A container that manages the GtkWidget*s that are the webpage display |
| 283 // (along with associated infobars, shelves, and other things that are part | 285 // (along with associated infobars, shelves, and other things that are part |
| 284 // of the content area). | 286 // of the content area). |
| 285 scoped_ptr<TabContentsContainerGtk> contents_container_; | 287 scoped_ptr<TabContentsContainerGtk> contents_container_; |
| 286 | 288 |
| 289 // A container that manages the GtkWidget*s of developer tools for the |
| 290 // selected tab contents. |
| 291 scoped_ptr<TabContentsContainerGtk> devtools_container_; |
| 292 |
| 293 // Split pane containing the contents_container_ and the devtools_container_. |
| 294 GtkWidget* contents_split_; |
| 295 |
| 287 // The tab strip. Always non-NULL. | 296 // The tab strip. Always non-NULL. |
| 288 scoped_ptr<TabStripGtk> tabstrip_; | 297 scoped_ptr<TabStripGtk> tabstrip_; |
| 289 | 298 |
| 290 // The container for info bars. Always non-NULL. | 299 // The container for info bars. Always non-NULL. |
| 291 scoped_ptr<InfoBarContainerGtk> infobar_container_; | 300 scoped_ptr<InfoBarContainerGtk> infobar_container_; |
| 292 | 301 |
| 293 // The timer used to update frames for the Loading Animation. | 302 // The timer used to update frames for the Loading Animation. |
| 294 base::RepeatingTimer<BrowserWindowGtk> loading_animation_timer_; | 303 base::RepeatingTimer<BrowserWindowGtk> loading_animation_timer_; |
| 295 | 304 |
| 296 // Whether we're showing the custom chrome frame or the window manager | 305 // Whether we're showing the custom chrome frame or the window manager |
| (...skipping 16 matching lines...) Expand all Loading... |
| 313 | 322 |
| 314 // True if the window manager thinks the window is active. Not all window | 323 // True if the window manager thinks the window is active. Not all window |
| 315 // managers keep track of this state (_NET_ACTIVE_WINDOW), in which case | 324 // managers keep track of this state (_NET_ACTIVE_WINDOW), in which case |
| 316 // this will always be true. | 325 // this will always be true. |
| 317 bool is_active_; | 326 bool is_active_; |
| 318 | 327 |
| 319 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 328 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
| 320 }; | 329 }; |
| 321 | 330 |
| 322 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ | 331 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |