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

Side by Side Diff: content/browser/tab_contents/tab_contents_view_gtk.h

Issue 9705053: Remove tab_contents_view_gtk.h include from chrome. I tried to find a way to not have to expose the… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 19 matching lines...) Expand all
30 // The corresponding TabContents is passed in the constructor, and manages 30 // The corresponding TabContents is passed in the constructor, and manages
31 // our lifetime. This doesn't need to be the case, but is this way currently 31 // our lifetime. This doesn't need to be the case, but is this way currently
32 // because that's what was easiest when they were split. We optionally take 32 // because that's what was easiest when they were split. We optionally take
33 // |wrapper| which creates an intermediary widget layer for features from the 33 // |wrapper| which creates an intermediary widget layer for features from the
34 // Embedding layer that lives with the WebContentsView. 34 // Embedding layer that lives with the WebContentsView.
35 // TODO(jam): make this take a WebContents once it's created from content. 35 // TODO(jam): make this take a WebContents once it's created from content.
36 TabContentsViewGtk(content::WebContents* web_contents, 36 TabContentsViewGtk(content::WebContents* web_contents,
37 WebContentsViewDelegate* delegate); 37 WebContentsViewDelegate* delegate);
38 virtual ~TabContentsViewGtk(); 38 virtual ~TabContentsViewGtk();
39 39
40 // Override the stored focus widget. This call only makes sense when the
41 // tab contents is not focused.
42 void SetFocusedWidget(GtkWidget* widget);
43
44 WebContentsViewDelegate* delegate() const { return delegate_.get(); } 40 WebContentsViewDelegate* delegate() const { return delegate_.get(); }
45 TabContents* tab_contents() { return tab_contents_; } 41 TabContents* tab_contents() { return tab_contents_; }
46 GtkWidget* expanded_container() { return expanded_.get(); }
47 WebContents* web_contents(); 42 WebContents* web_contents();
48 43
49 // WebContentsView implementation -------------------------------------------- 44 // WebContentsView implementation --------------------------------------------
50 45
51 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; 46 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE;
52 virtual content::RenderWidgetHostView* CreateViewForWidget( 47 virtual content::RenderWidgetHostView* CreateViewForWidget(
53 content::RenderWidgetHost* render_widget_host) OVERRIDE; 48 content::RenderWidgetHost* render_widget_host) OVERRIDE;
54 49
55 virtual gfx::NativeView GetNativeView() const OVERRIDE; 50 virtual gfx::NativeView GetNativeView() const OVERRIDE;
56 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; 51 virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // The size we want the tab contents view to be. We keep this in a separate 144 // The size we want the tab contents view to be. We keep this in a separate
150 // variable because resizing in GTK+ is async. 145 // variable because resizing in GTK+ is async.
151 gfx::Size requested_size_; 146 gfx::Size requested_size_;
152 147
153 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); 148 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk);
154 }; 149 };
155 150
156 } // namespace content 151 } // namespace content
157 152
158 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 153 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/sad_tab_helper.cc ('k') | content/browser/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698