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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_view_tester_views.h" 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_view_tester_views.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" 8 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h"
9 #include "chrome/browser/ui/views/autofill/expanding_textfield.h" 9 #include "chrome/browser/ui/views/autofill/expanding_textfield.h"
10 #include "ui/base/models/combobox_model.h" 10 #include "ui/base/models/combobox_model.h"
11 #include "ui/views/controls/combobox/combobox.h" 11 #include "ui/views/controls/combobox/combobox.h"
12 #include "ui/views/controls/textfield/textfield.h" 12 #include "ui/views/controls/textfield/textfield.h"
13 #include "ui/views/controls/webview/webview.h" 13 #include "ui/views/controls/webview/webview.h"
14 #include "ui/views/widget/widget.h" 14 #include "ui/views/widget/widget.h"
15 #include "ui/views/window/dialog_client_view.h" 15 #include "ui/views/window/dialog_client_view.h"
16 16
17 namespace autofill { 17 namespace autofill {
18 18
19 scoped_ptr<AutofillDialogViewTester> AutofillDialogViewTester::For( 19 std::unique_ptr<AutofillDialogViewTester> AutofillDialogViewTester::For(
20 AutofillDialogView* view) { 20 AutofillDialogView* view) {
21 return scoped_ptr<AutofillDialogViewTester>(new 21 return std::unique_ptr<AutofillDialogViewTester>(
22 AutofillDialogViewTesterViews(static_cast<AutofillDialogViews*>(view))); 22 new AutofillDialogViewTesterViews(
23 static_cast<AutofillDialogViews*>(view)));
23 } 24 }
24 25
25 AutofillDialogViewTesterViews::AutofillDialogViewTesterViews( 26 AutofillDialogViewTesterViews::AutofillDialogViewTesterViews(
26 AutofillDialogViews* view) 27 AutofillDialogViews* view)
27 : view_(view) {} 28 : view_(view) {}
28 29
29 AutofillDialogViewTesterViews::~AutofillDialogViewTesterViews() {} 30 AutofillDialogViewTesterViews::~AutofillDialogViewTesterViews() {}
30 31
31 void AutofillDialogViewTesterViews::SubmitForTesting() { 32 void AutofillDialogViewTesterViews::SubmitForTesting() {
32 view_->Accept(); 33 view_->Accept();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return view_->GetWidget() ? view_->GetWidget()->GetRootView()->size() : 84 return view_->GetWidget() ? view_->GetWidget()->GetRootView()->size() :
84 gfx::Size(); 85 gfx::Size();
85 } 86 }
86 87
87 bool AutofillDialogViewTesterViews::IsShowingSection(DialogSection section) 88 bool AutofillDialogViewTesterViews::IsShowingSection(DialogSection section)
88 const { 89 const {
89 return view_->GroupForSection(section)->container->visible(); 90 return view_->GroupForSection(section)->container->visible();
90 } 91 }
91 92
92 } // namespace autofill 93 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ash/tab_scrubber_browsertest.cc ('k') | chrome/browser/ui/views/autofill/autofill_dialog_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698