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

Side by Side Diff: chrome/browser/ui/views/autofill/password_generation_popup_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/password_generation_popup_view_tester _views.h" 5 #include "chrome/browser/ui/views/autofill/password_generation_popup_view_tester _views.h"
6 6
7 #include "chrome/browser/ui/views/autofill/password_generation_popup_view_views. h" 7 #include "chrome/browser/ui/views/autofill/password_generation_popup_view_views. h"
8 #include "ui/events/event_utils.h" 8 #include "ui/events/event_utils.h"
9 9
10 namespace autofill { 10 namespace autofill {
11 11
12 scoped_ptr<PasswordGenerationPopupViewTester> 12 std::unique_ptr<PasswordGenerationPopupViewTester>
13 PasswordGenerationPopupViewTester::For(PasswordGenerationPopupView* view) { 13 PasswordGenerationPopupViewTester::For(PasswordGenerationPopupView* view) {
14 return scoped_ptr<PasswordGenerationPopupViewTester>( 14 return std::unique_ptr<PasswordGenerationPopupViewTester>(
15 new PasswordGenerationPopupViewTesterViews( 15 new PasswordGenerationPopupViewTesterViews(
16 static_cast<PasswordGenerationPopupViewViews*>(view))); 16 static_cast<PasswordGenerationPopupViewViews*>(view)));
17 } 17 }
18 18
19 PasswordGenerationPopupViewTesterViews::PasswordGenerationPopupViewTesterViews( 19 PasswordGenerationPopupViewTesterViews::PasswordGenerationPopupViewTesterViews(
20 PasswordGenerationPopupViewViews* popup_view) 20 PasswordGenerationPopupViewViews* popup_view)
21 : view_(popup_view) {} 21 : view_(popup_view) {}
22 22
23 PasswordGenerationPopupViewTesterViews:: 23 PasswordGenerationPopupViewTesterViews::
24 ~PasswordGenerationPopupViewTesterViews() {} 24 ~PasswordGenerationPopupViewTesterViews() {}
25 25
26 void PasswordGenerationPopupViewTesterViews::SimulateMouseMovementAt( 26 void PasswordGenerationPopupViewTesterViews::SimulateMouseMovementAt(
27 const gfx::Point& point) { 27 const gfx::Point& point) {
28 ui::MouseEvent mouse_down(ui::ET_MOUSE_MOVED, point, gfx::Point(0, 0), 28 ui::MouseEvent mouse_down(ui::ET_MOUSE_MOVED, point, gfx::Point(0, 0),
29 ui::EventTimeForNow(), 0, 0); 29 ui::EventTimeForNow(), 0, 0);
30 static_cast<views::View*>(view_)->OnMouseMoved(mouse_down); 30 static_cast<views::View*>(view_)->OnMouseMoved(mouse_down);
31 } 31 }
32 32
33 } // namespace autofill 33 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/info_bubble.cc ('k') | chrome/browser/ui/views/autofill/save_card_bubble_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698