| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TAB_CONTENTS_CONTAINER_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_TAB_CONTENTS_CONTAINER_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_TAB_CONTENTS_CONTAINER_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_TAB_CONTENTS_CONTAINER_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 bool HasPreview() const { return preview_ != NULL; } | 40 bool HasPreview() const { return preview_ != NULL; } |
| 41 | 41 |
| 42 void SetPreview(TabContentsWrapper* preview); | 42 void SetPreview(TabContentsWrapper* preview); |
| 43 void PopPreview(); | 43 void PopPreview(); |
| 44 | 44 |
| 45 // Remove the tab from the hierarchy. | 45 // Remove the tab from the hierarchy. |
| 46 void DetachTab(TabContentsWrapper* tab); | 46 void DetachTab(TabContentsWrapper* tab); |
| 47 | 47 |
| 48 // NotificationObserver implementation. | 48 // NotificationObserver implementation. |
| 49 virtual void Observe(NotificationType type, | 49 virtual void Observe(int type, |
| 50 const NotificationSource& source, | 50 const NotificationSource& source, |
| 51 const NotificationDetails& details); | 51 const NotificationDetails& details); |
| 52 | 52 |
| 53 GtkWidget* widget() { return floating_.get(); } | 53 GtkWidget* widget() { return floating_.get(); } |
| 54 | 54 |
| 55 // ViewIDUtil::Delegate implementation --------------------------------------- | 55 // ViewIDUtil::Delegate implementation --------------------------------------- |
| 56 virtual GtkWidget* GetWidgetForViewID(ViewID id); | 56 virtual GtkWidget* GetWidgetForViewID(ViewID id); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 // Called when a TabContents is destroyed. This gives us a chance to clean | 59 // Called when a TabContents is destroyed. This gives us a chance to clean |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // We insert and remove TabContents GtkWidgets into this expanded_. This | 103 // We insert and remove TabContents GtkWidgets into this expanded_. This |
| 104 // should not be a GtkVBox since there were errors with timing where the vbox | 104 // should not be a GtkVBox since there were errors with timing where the vbox |
| 105 // was horizontally split with the top half displaying the current TabContents | 105 // was horizontally split with the top half displaying the current TabContents |
| 106 // and bottom half displaying the loading page. | 106 // and bottom half displaying the loading page. |
| 107 GtkWidget* expanded_; | 107 GtkWidget* expanded_; |
| 108 | 108 |
| 109 DISALLOW_COPY_AND_ASSIGN(TabContentsContainerGtk); | 109 DISALLOW_COPY_AND_ASSIGN(TabContentsContainerGtk); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 #endif // CHROME_BROWSER_UI_GTK_TAB_CONTENTS_CONTAINER_GTK_H_ | 112 #endif // CHROME_BROWSER_UI_GTK_TAB_CONTENTS_CONTAINER_GTK_H_ |
| OLD | NEW |