Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(647)

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 63343004: Remove DialogDelegate::UseNewStyle and unused code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Additional cleanup; sync and rebase. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 UpdateNotificationArea(); 1188 UpdateNotificationArea();
1189 UpdateButtonStripExtraView(); 1189 UpdateButtonStripExtraView();
1190 1190
1191 // Ownership of |contents_| is handed off by this call. The widget will take 1191 // Ownership of |contents_| is handed off by this call. The widget will take
1192 // care of deleting itself after calling DeleteDelegate(). 1192 // care of deleting itself after calling DeleteDelegate().
1193 WebContentsModalDialogManager* web_contents_modal_dialog_manager = 1193 WebContentsModalDialogManager* web_contents_modal_dialog_manager =
1194 WebContentsModalDialogManager::FromWebContents( 1194 WebContentsModalDialogManager::FromWebContents(
1195 delegate_->GetWebContents()); 1195 delegate_->GetWebContents());
1196 WebContentsModalDialogManagerDelegate* modal_delegate = 1196 WebContentsModalDialogManagerDelegate* modal_delegate =
1197 web_contents_modal_dialog_manager->delegate(); 1197 web_contents_modal_dialog_manager->delegate();
1198 DCHECK(modal_delegate);
sky 2013/11/16 03:03:16 How come you removed this?
msw 2013/11/16 04:15:44 I removed all these DCHECKs because I thought we t
sky 2013/11/18 17:03:10 I like DCHECKs like this as a way to document moda
1199
1200 window_ = views::Widget::CreateWindowAsFramelessChild( 1198 window_ = views::Widget::CreateWindowAsFramelessChild(
1201 this, 1199 this, modal_delegate->GetWebContentsModalDialogHost()->GetHostView());
1202 delegate_->GetWebContents()->GetView()->GetNativeView(),
1203 modal_delegate->GetWebContentsModalDialogHost()->GetHostView());
1204 web_contents_modal_dialog_manager->ShowDialog(window_->GetNativeView()); 1200 web_contents_modal_dialog_manager->ShowDialog(window_->GetNativeView());
1205 focus_manager_ = window_->GetFocusManager(); 1201 focus_manager_ = window_->GetFocusManager();
1206 focus_manager_->AddFocusChangeListener(this); 1202 focus_manager_->AddFocusChangeListener(this);
1207 1203
1208 ShowDialogInMode(DETAIL_INPUT); 1204 ShowDialogInMode(DETAIL_INPUT);
1209 1205
1210 // Listen for size changes on the browser. 1206 // Listen for size changes on the browser.
1211 views::Widget* browser_widget = 1207 views::Widget* browser_widget =
1212 views::Widget::GetTopLevelWidgetForNativeView( 1208 views::Widget::GetTopLevelWidgetForNativeView(
1213 delegate_->GetWebContents()->GetView()->GetNativeView()); 1209 delegate_->GetWebContents()->GetView()->GetNativeView());
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
2446 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) 2442 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section)
2447 : section(section), 2443 : section(section),
2448 container(NULL), 2444 container(NULL),
2449 manual_input(NULL), 2445 manual_input(NULL),
2450 suggested_info(NULL), 2446 suggested_info(NULL),
2451 suggested_button(NULL) {} 2447 suggested_button(NULL) {}
2452 2448
2453 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 2449 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
2454 2450
2455 } // namespace autofill 2451 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698