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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 GtkWidget* expanded_container() { return expanded_.get(); } 46 GtkWidget* expanded_container() { return expanded_.get(); }
47 WebContents* web_contents(); 47 WebContents* web_contents();
48 48
49 // Allows our embeder to intercept incoming drag messages. 49 // Allows our embeder to intercept incoming drag messages.
50 void SetDragDestDelegate(WebDragDestDelegate* delegate); 50 void SetDragDestDelegate(WebDragDestDelegate* delegate);
51 51
52 // WebContentsView implementation -------------------------------------------- 52 // WebContentsView implementation --------------------------------------------
53 53
54 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; 54 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE;
55 virtual content::RenderWidgetHostView* CreateViewForWidget( 55 virtual content::RenderWidgetHostView* CreateViewForWidget(
56 RenderWidgetHost* render_widget_host) OVERRIDE; 56 content::RenderWidgetHost* render_widget_host) OVERRIDE;
57 57
58 virtual gfx::NativeView GetNativeView() const OVERRIDE; 58 virtual gfx::NativeView GetNativeView() const OVERRIDE;
59 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; 59 virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
60 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; 60 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
61 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; 61 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE;
62 virtual void SetPageTitle(const string16& title) OVERRIDE; 62 virtual void SetPageTitle(const string16& title) OVERRIDE;
63 virtual void OnTabCrashed(base::TerminationStatus status, 63 virtual void OnTabCrashed(base::TerminationStatus status,
64 int error_code) OVERRIDE; 64 int error_code) OVERRIDE;
65 virtual void SizeContents(const gfx::Size& size) OVERRIDE; 65 virtual void SizeContents(const gfx::Size& size) OVERRIDE;
66 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 66 virtual void RenderViewCreated(content::RenderViewHost* host) OVERRIDE;
67 virtual void Focus() OVERRIDE; 67 virtual void Focus() OVERRIDE;
68 virtual void SetInitialFocus() OVERRIDE; 68 virtual void SetInitialFocus() OVERRIDE;
69 virtual void StoreFocus() OVERRIDE; 69 virtual void StoreFocus() OVERRIDE;
70 virtual void RestoreFocus() OVERRIDE; 70 virtual void RestoreFocus() OVERRIDE;
71 virtual bool IsDoingDrag() const OVERRIDE; 71 virtual bool IsDoingDrag() const OVERRIDE;
72 virtual void CancelDragAndCloseTab() OVERRIDE; 72 virtual void CancelDragAndCloseTab() OVERRIDE;
73 virtual bool IsEventTracking() const OVERRIDE; 73 virtual bool IsEventTracking() const OVERRIDE;
74 virtual void CloseTabAfterEventTracking() OVERRIDE; 74 virtual void CloseTabAfterEventTracking() OVERRIDE;
75 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; 75 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE;
76 76
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // The size we want the tab contents view to be. We keep this in a separate 152 // The size we want the tab contents view to be. We keep this in a separate
153 // variable because resizing in GTK+ is async. 153 // variable because resizing in GTK+ is async.
154 gfx::Size requested_size_; 154 gfx::Size requested_size_;
155 155
156 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); 156 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk);
157 }; 157 };
158 158
159 } // namespace content 159 } // namespace content
160 160
161 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 161 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents_unittest.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