| Index: chrome/browser/tab_contents/tab_contents_view_gtk.cc
|
| diff --git a/chrome/browser/tab_contents/tab_contents_view_gtk.cc b/chrome/browser/tab_contents/tab_contents_view_gtk.cc
|
| index 4563251dc0e8abee6e3d48421e13f3e013abf09d..e6564da71983412b7fc0025c53586a02ef3b0f1c 100644
|
| --- a/chrome/browser/tab_contents/tab_contents_view_gtk.cc
|
| +++ b/chrome/browser/tab_contents/tab_contents_view_gtk.cc
|
| @@ -253,6 +253,16 @@ void TabContentsViewGtk::RestoreFocus() {
|
| SetInitialFocus();
|
| }
|
|
|
| +void TabContentsViewGtk::GetViewBounds(gfx::Rect* out) const {
|
| + if (!floating_->window) {
|
| + out->SetRect(0, 0, requested_size_.width(), requested_size_.height());
|
| + return;
|
| + }
|
| + int x = 0, y = 0, w, h;
|
| + gdk_window_get_geometry(floating_->window, &x, &y, &w, &h, NULL);
|
| + out->SetRect(x, y, w, h);
|
| +}
|
| +
|
| void TabContentsViewGtk::SetFocusedWidget(GtkWidget* widget) {
|
| focus_store_.SetWidget(widget);
|
| }
|
|
|