OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 6 #define CHROME_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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 virtual void CancelDragAndCloseTab() OVERRIDE; | 70 virtual void CancelDragAndCloseTab() OVERRIDE; |
71 virtual bool IsEventTracking() const OVERRIDE; | 71 virtual bool IsEventTracking() const OVERRIDE; |
72 virtual void CloseTabAfterEventTracking() OVERRIDE; | 72 virtual void CloseTabAfterEventTracking() OVERRIDE; |
73 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; | 73 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; |
74 virtual void InstallOverlayView(gfx::NativeView view) OVERRIDE; | 74 virtual void InstallOverlayView(gfx::NativeView view) OVERRIDE; |
75 virtual void RemoveOverlayView() OVERRIDE; | 75 virtual void RemoveOverlayView() OVERRIDE; |
76 | 76 |
77 // Backend implementation of RenderViewHostDelegate::View. | 77 // Backend implementation of RenderViewHostDelegate::View. |
78 virtual void CreateNewWindow( | 78 virtual void CreateNewWindow( |
79 int route_id, | 79 int route_id, |
80 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; | 80 const ViewHostMsg_CreateWindow_Params& params, |
| 81 content::ContentFrame* opener) OVERRIDE; |
81 virtual void CreateNewWidget(int route_id, | 82 virtual void CreateNewWidget(int route_id, |
82 WebKit::WebPopupType popup_type) OVERRIDE; | 83 WebKit::WebPopupType popup_type) OVERRIDE; |
83 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; | 84 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; |
84 virtual void ShowCreatedWindow(int route_id, | 85 virtual void ShowCreatedWindow(int route_id, |
85 WindowOpenDisposition disposition, | 86 WindowOpenDisposition disposition, |
86 const gfx::Rect& initial_pos, | 87 const gfx::Rect& initial_pos, |
87 bool user_gesture) OVERRIDE; | 88 bool user_gesture) OVERRIDE; |
88 virtual void ShowCreatedWidget(int route_id, | 89 virtual void ShowCreatedWidget(int route_id, |
89 const gfx::Rect& initial_pos) OVERRIDE; | 90 const gfx::Rect& initial_pos) OVERRIDE; |
90 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; | 91 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 gfx::Size requested_size_; | 154 gfx::Size requested_size_; |
154 | 155 |
155 // The overlaid view. Owned by the caller of |InstallOverlayView|; this is a | 156 // The overlaid view. Owned by the caller of |InstallOverlayView|; this is a |
156 // weak reference. | 157 // weak reference. |
157 GtkWidget* overlaid_view_; | 158 GtkWidget* overlaid_view_; |
158 | 159 |
159 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 160 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
160 }; | 161 }; |
161 | 162 |
162 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 163 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |