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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 // WebContentsViewPort implementation ---------------------------------------- | 62 // WebContentsViewPort implementation ---------------------------------------- |
63 virtual void CreateView( | 63 virtual void CreateView( |
64 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; | 64 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; |
65 virtual RenderWidgetHostView* CreateViewForWidget( | 65 virtual RenderWidgetHostView* CreateViewForWidget( |
66 RenderWidgetHost* render_widget_host) OVERRIDE; | 66 RenderWidgetHost* render_widget_host) OVERRIDE; |
67 virtual RenderWidgetHostView* CreateViewForPopupWidget( | 67 virtual RenderWidgetHostView* CreateViewForPopupWidget( |
68 RenderWidgetHost* render_widget_host) OVERRIDE; | 68 RenderWidgetHost* render_widget_host) OVERRIDE; |
69 virtual void SetPageTitle(const string16& title) OVERRIDE; | 69 virtual void SetPageTitle(const string16& title) OVERRIDE; |
70 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 70 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
71 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; | 71 virtual void RenderViewSwappedIn(RenderViewHost* new_host, |
| 72 RenderViewHost* old_host) OVERRIDE; |
72 | 73 |
73 // Backend implementation of RenderViewHostDelegateView. | 74 // Backend implementation of RenderViewHostDelegateView. |
74 virtual void ShowContextMenu( | 75 virtual void ShowContextMenu( |
75 const ContextMenuParams& params, | 76 const ContextMenuParams& params, |
76 ContextMenuSourceType type) OVERRIDE; | 77 ContextMenuSourceType type) OVERRIDE; |
77 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 78 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
78 int item_height, | 79 int item_height, |
79 double item_font_size, | 80 double item_font_size, |
80 int selected_item, | 81 int selected_item, |
81 const std::vector<WebMenuItem>& items, | 82 const std::vector<WebMenuItem>& items, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // The size we want the view to be. We keep this in a separate variable | 136 // The size we want the view to be. We keep this in a separate variable |
136 // because resizing in GTK+ is async. | 137 // because resizing in GTK+ is async. |
137 gfx::Size requested_size_; | 138 gfx::Size requested_size_; |
138 | 139 |
139 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); | 140 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); |
140 }; | 141 }; |
141 | 142 |
142 } // namespace content | 143 } // namespace content |
143 | 144 |
144 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ | 145 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |