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 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" | 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1263 delegate_->GetWebContents()); | 1263 delegate_->GetWebContents()); |
1264 WebContentsModalDialogManagerDelegate* modal_delegate = | 1264 WebContentsModalDialogManagerDelegate* modal_delegate = |
1265 web_contents_modal_dialog_manager->delegate(); | 1265 web_contents_modal_dialog_manager->delegate(); |
1266 DCHECK(modal_delegate); | 1266 DCHECK(modal_delegate); |
1267 | 1267 |
1268 window_ = views::Widget::CreateWindowAsFramelessChild( | 1268 window_ = views::Widget::CreateWindowAsFramelessChild( |
1269 this, | 1269 this, |
1270 delegate_->GetWebContents()->GetView()->GetNativeView(), | 1270 delegate_->GetWebContents()->GetView()->GetNativeView(), |
1271 modal_delegate->GetWebContentsModalDialogHost()->GetHostView()); | 1271 modal_delegate->GetWebContentsModalDialogHost()->GetHostView()); |
1272 web_contents_modal_dialog_manager->ShowDialog(window_->GetNativeView()); | 1272 web_contents_modal_dialog_manager->ShowDialog(window_->GetNativeView()); |
| 1273 web_contents_modal_dialog_manager->SetCloseOnInterstitialWebUI( |
| 1274 window_->GetNativeView(), true); |
1273 focus_manager_ = window_->GetFocusManager(); | 1275 focus_manager_ = window_->GetFocusManager(); |
1274 focus_manager_->AddFocusChangeListener(this); | 1276 focus_manager_->AddFocusChangeListener(this); |
1275 | 1277 |
1276 // Listen for size changes on the browser. | 1278 // Listen for size changes on the browser. |
1277 views::Widget* browser_widget = | 1279 views::Widget* browser_widget = |
1278 views::Widget::GetTopLevelWidgetForNativeView( | 1280 views::Widget::GetTopLevelWidgetForNativeView( |
1279 delegate_->GetWebContents()->GetView()->GetNativeView()); | 1281 delegate_->GetWebContents()->GetView()->GetNativeView()); |
1280 observer_.Add(browser_widget); | 1282 observer_.Add(browser_widget); |
1281 | 1283 |
1282 gfx::Image splash_image = delegate_->SplashPageImage(); | 1284 gfx::Image splash_image = delegate_->SplashPageImage(); |
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2356 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 2358 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
2357 : section(section), | 2359 : section(section), |
2358 container(NULL), | 2360 container(NULL), |
2359 manual_input(NULL), | 2361 manual_input(NULL), |
2360 suggested_info(NULL), | 2362 suggested_info(NULL), |
2361 suggested_button(NULL) {} | 2363 suggested_button(NULL) {} |
2362 | 2364 |
2363 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 2365 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
2364 | 2366 |
2365 } // namespace autofill | 2367 } // namespace autofill |
OLD | NEW |