| 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 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" | 5 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "chrome/browser/ui/constrained_window.h" | 10 #include "chrome/browser/ui/constrained_window.h" |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 focus_manager->AdvanceFocus(reverse); | 290 focus_manager->AdvanceFocus(reverse); |
| 291 } | 291 } |
| 292 } | 292 } |
| 293 | 293 |
| 294 void TabContentsViewViews::CloseTab() { | 294 void TabContentsViewViews::CloseTab() { |
| 295 tab_contents_->Close(tab_contents_->render_view_host()); | 295 tab_contents_->Close(tab_contents_->render_view_host()); |
| 296 } | 296 } |
| 297 | 297 |
| 298 void TabContentsViewViews::CreateNewWindow( | 298 void TabContentsViewViews::CreateNewWindow( |
| 299 int route_id, | 299 int route_id, |
| 300 const ViewHostMsg_CreateWindow_Params& params) { | 300 const ViewHostMsg_CreateWindow_Params& params, |
| 301 ContentFrame* opener) { |
| 301 delegate_view_helper_.CreateNewWindowFromTabContents( | 302 delegate_view_helper_.CreateNewWindowFromTabContents( |
| 302 tab_contents_, route_id, params); | 303 opener, route_id, params); |
| 303 } | 304 } |
| 304 | 305 |
| 305 void TabContentsViewViews::CreateNewWidget( | 306 void TabContentsViewViews::CreateNewWidget( |
| 306 int route_id, WebKit::WebPopupType popup_type) { | 307 int route_id, WebKit::WebPopupType popup_type) { |
| 307 delegate_view_helper_.CreateNewWidget(route_id, popup_type, | 308 delegate_view_helper_.CreateNewWidget(route_id, popup_type, |
| 308 tab_contents_->render_view_host()->process()); | 309 tab_contents_->render_view_host()->process()); |
| 309 } | 310 } |
| 310 | 311 |
| 311 void TabContentsViewViews::CreateNewFullscreenWidget(int route_id) { | 312 void TabContentsViewViews::CreateNewFullscreenWidget(int route_id) { |
| 312 delegate_view_helper_.CreateNewFullscreenWidget( | 313 delegate_view_helper_.CreateNewFullscreenWidget( |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 tab_contents_->HideContents(); | 459 tab_contents_->HideContents(); |
| 459 } | 460 } |
| 460 } | 461 } |
| 461 | 462 |
| 462 void TabContentsViewViews::OnNativeWidgetSizeChanged( | 463 void TabContentsViewViews::OnNativeWidgetSizeChanged( |
| 463 const gfx::Size& new_size) { | 464 const gfx::Size& new_size) { |
| 464 if (overlaid_view_) | 465 if (overlaid_view_) |
| 465 overlaid_view_->SetBounds(gfx::Rect(new_size)); | 466 overlaid_view_->SetBounds(gfx::Rect(new_size)); |
| 466 views::Widget::OnNativeWidgetSizeChanged(new_size); | 467 views::Widget::OnNativeWidgetSizeChanged(new_size); |
| 467 } | 468 } |
| OLD | NEW |