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

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

Issue 165073002: Remove deprecated version of views::CreateDialogFrameView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore ConstrainedWebDialogDelegateViewViews::CreateNonClientFrameView. Created 6 years, 10 months 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 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 if (ValidateForm()) 1624 if (ValidateForm())
1625 return delegate_->OnAccept(); 1625 return delegate_->OnAccept();
1626 1626
1627 // |ValidateForm()| failed; there should be invalid views in |validity_map_|. 1627 // |ValidateForm()| failed; there should be invalid views in |validity_map_|.
1628 DCHECK(!validity_map_.empty()); 1628 DCHECK(!validity_map_.empty());
1629 FocusInitialView(); 1629 FocusInitialView();
1630 1630
1631 return false; 1631 return false;
1632 } 1632 }
1633 1633
1634 // TODO(wittman): Remove this override once we move to the new style frame view
1635 // on all dialogs.
1636 views::NonClientFrameView* AutofillDialogViews::CreateNonClientFrameView(
1637 views::Widget* widget) {
1638 return CreateConstrainedStyleNonClientFrameView(
1639 widget,
1640 delegate_->GetWebContents()->GetBrowserContext());
1641 }
1642
1643 void AutofillDialogViews::ContentsChanged(views::Textfield* sender, 1634 void AutofillDialogViews::ContentsChanged(views::Textfield* sender,
1644 const base::string16& new_contents) { 1635 const base::string16& new_contents) {
1645 InputEditedOrActivated(TypeForTextfield(sender), 1636 InputEditedOrActivated(TypeForTextfield(sender),
1646 sender->GetBoundsInScreen(), 1637 sender->GetBoundsInScreen(),
1647 true); 1638 true);
1648 } 1639 }
1649 1640
1650 bool AutofillDialogViews::HandleKeyEvent(views::Textfield* sender, 1641 bool AutofillDialogViews::HandleKeyEvent(views::Textfield* sender,
1651 const ui::KeyEvent& key_event) { 1642 const ui::KeyEvent& key_event) {
1652 ui::KeyEvent copy(key_event); 1643 ui::KeyEvent copy(key_event);
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
2451 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) 2442 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section)
2452 : section(section), 2443 : section(section),
2453 container(NULL), 2444 container(NULL),
2454 manual_input(NULL), 2445 manual_input(NULL),
2455 suggested_info(NULL), 2446 suggested_info(NULL),
2456 suggested_button(NULL) {} 2447 suggested_button(NULL) {}
2457 2448
2458 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 2449 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
2459 2450
2460 } // namespace autofill 2451 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.h ('k') | chrome/browser/ui/views/collected_cookies_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698