OLD | NEW |
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_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 30 matching lines...) Expand all Loading... |
41 virtual ~WebContentsViewGtk(); | 41 virtual ~WebContentsViewGtk(); |
42 | 42 |
43 WebContentsViewDelegate* delegate() const { return delegate_.get(); } | 43 WebContentsViewDelegate* delegate() const { return delegate_.get(); } |
44 WebContents* web_contents(); | 44 WebContents* web_contents(); |
45 | 45 |
46 // WebContentsView implementation -------------------------------------------- | 46 // WebContentsView implementation -------------------------------------------- |
47 | 47 |
48 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; | 48 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; |
49 virtual RenderWidgetHostView* CreateViewForWidget( | 49 virtual RenderWidgetHostView* CreateViewForWidget( |
50 RenderWidgetHost* render_widget_host) OVERRIDE; | 50 RenderWidgetHost* render_widget_host) OVERRIDE; |
| 51 virtual void SetView(RenderWidgetHostView* view) OVERRIDE; |
51 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 52 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
52 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 53 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
53 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 54 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
54 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; | 55 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; |
55 virtual void SetPageTitle(const string16& title) OVERRIDE; | 56 virtual void SetPageTitle(const string16& title) OVERRIDE; |
56 virtual void OnTabCrashed(base::TerminationStatus status, | 57 virtual void OnTabCrashed(base::TerminationStatus status, |
57 int error_code) OVERRIDE; | 58 int error_code) OVERRIDE; |
58 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 59 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
59 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 60 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
60 virtual void Focus() OVERRIDE; | 61 virtual void Focus() OVERRIDE; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // The size we want the view to be. We keep this in a separate variable | 132 // The size we want the view to be. We keep this in a separate variable |
132 // because resizing in GTK+ is async. | 133 // because resizing in GTK+ is async. |
133 gfx::Size requested_size_; | 134 gfx::Size requested_size_; |
134 | 135 |
135 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); | 136 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); |
136 }; | 137 }; |
137 | 138 |
138 } // namespace content | 139 } // namespace content |
139 | 140 |
140 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ | 141 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |