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

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

Issue 572593002: Revert of Clean up GestureEventDetails constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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_popup_base_view.h" 5 #include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h"
6 6
7 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" 7 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 void ShowView() { 57 void ShowView() {
58 view_->DoShow(); 58 view_->DoShow();
59 } 59 }
60 60
61 ui::GestureEvent CreateGestureEvent(ui::EventType type, gfx::Point point) { 61 ui::GestureEvent CreateGestureEvent(ui::EventType type, gfx::Point point) {
62 return ui::GestureEvent(point.x(), 62 return ui::GestureEvent(point.x(),
63 point.y(), 63 point.y(),
64 0, 64 0,
65 ui::EventTimeForNow(), 65 ui::EventTimeForNow(),
66 ui::GestureEventDetails(type)); 66 ui::GestureEventDetails(type, 0, 0));
67 } 67 }
68 68
69 void SimulateGesture(ui::GestureEvent* event) { 69 void SimulateGesture(ui::GestureEvent* event) {
70 view_->OnGestureEvent(event); 70 view_->OnGestureEvent(event);
71 } 71 }
72 72
73 protected: 73 protected:
74 testing::NiceMock<MockAutofillPopupViewDelegate> mock_delegate_; 74 testing::NiceMock<MockAutofillPopupViewDelegate> mock_delegate_;
75 AutofillPopupBaseView* view_; 75 AutofillPopupBaseView* view_;
76 }; 76 };
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 ShowView(); 139 ShowView();
140 140
141 gfx::Point display_point = 141 gfx::Point display_point =
142 static_cast<views::View*>(view_)->GetBoundsInScreen().origin(); 142 static_cast<views::View*>(view_)->GetBoundsInScreen().origin();
143 gfx::Point expected_point = bounds.origin(); 143 gfx::Point expected_point = bounds.origin();
144 EXPECT_EQ(expected_point, display_point); 144 EXPECT_EQ(expected_point, display_point);
145 } 145 }
146 146
147 } // namespace autofill 147 } // namespace autofill
OLDNEW
« no previous file with comments | « ash/system/overview/overview_button_tray_unittest.cc ('k') | chrome/browser/ui/views/desktop_media_picker_views_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698