Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(927)

Unified Diff: chrome/browser/ui/gtk/constrained_window_gtk.h

Issue 11111022: Remove TabContents from constrained windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unrelated gtk code Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/constrained_window_gtk.h
diff --git a/chrome/browser/ui/gtk/constrained_window_gtk.h b/chrome/browser/ui/gtk/constrained_window_gtk.h
index 2b2eb599abb13917455c1bf80cb1e5699bc525a2..8cfbd9beb23b333f89f055beaed4272bb59e410a 100644
--- a/chrome/browser/ui/gtk/constrained_window_gtk.h
+++ b/chrome/browser/ui/gtk/constrained_window_gtk.h
@@ -14,10 +14,13 @@
#include "ui/base/gtk/gtk_signal.h"
#include "ui/base/gtk/owned_widget_gtk.h"
-class TabContents;
typedef struct _GdkColor GdkColor;
class ChromeWebContentsViewDelegateGtk;
+namespace content {
+class WebContents;
+}
+
class ConstrainedWindowGtkDelegate {
public:
// Returns the widget that will be put in the constrained window's container.
@@ -46,7 +49,7 @@ class ConstrainedWindowGtk : public ConstrainedWindow {
public:
typedef ChromeWebContentsViewDelegateGtk TabContentsViewType;
- ConstrainedWindowGtk(TabContents* tab_contents,
+ ConstrainedWindowGtk(content::WebContents* web_contents,
ConstrainedWindowGtkDelegate* delegate);
virtual ~ConstrainedWindowGtk();
@@ -55,8 +58,8 @@ class ConstrainedWindowGtk : public ConstrainedWindow {
virtual void CloseConstrainedWindow() OVERRIDE;
virtual void FocusConstrainedWindow() OVERRIDE;
- // Returns the TabContents that constrains this Constrained Window.
- TabContents* owner() const { return tab_contents_; }
+ // Returns the WebContents that constrains this Constrained Window.
+ content::WebContents* owner() const { return web_contents_; }
// Returns the toplevel widget that displays this "window".
GtkWidget* widget() { return border_.get(); }
@@ -73,8 +76,8 @@ class ConstrainedWindowGtk : public ConstrainedWindow {
CHROMEGTK_CALLBACK_1(ConstrainedWindowGtk, void, OnHierarchyChanged,
GtkWidget*);
- // The TabContents that owns and constrains this ConstrainedWindow.
- TabContents* tab_contents_;
+ // The WebContents that owns and constrains this ConstrainedWindow.
+ content::WebContents* web_contents_;
// The top level widget container that exports to our WebContentsView.
ui::OwnedWidgetGtk border_;
« no previous file with comments | « chrome/browser/ui/gtk/constrained_web_dialog_delegate_gtk.cc ('k') | chrome/browser/ui/gtk/constrained_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698