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

Unified Diff: chrome/browser/pdf/pdf_extension_test.cc

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/pdf/pdf_extension_test.cc
diff --git a/chrome/browser/pdf/pdf_extension_test.cc b/chrome/browser/pdf/pdf_extension_test.cc
index 74d1061f5b7285bfabda0c91c72e34cc1a16e2b0..fdb9ccaef30f9d29f01775052a15e566bea809db 100644
--- a/chrome/browser/pdf/pdf_extension_test.cc
+++ b/chrome/browser/pdf/pdf_extension_test.cc
@@ -737,7 +737,7 @@ IN_PROC_BROWSER_TEST_F(PDFExtensionTest, LinkCtrlLeftClick) {
chrome::NOTIFICATION_TAB_ADDED,
content::NotificationService::AllSources());
content::SimulateMouseClickAt(web_contents, kDefaultKeyModifier,
- blink::WebMouseEvent::ButtonLeft, link_position);
+ blink::WebMouseEvent::Button::Left, link_position);
observer.Wait();
int tab_count = browser()->tab_strip_model()->count();
@@ -774,7 +774,7 @@ IN_PROC_BROWSER_TEST_F(PDFExtensionTest, LinkMiddleClick) {
chrome::NOTIFICATION_TAB_ADDED,
content::NotificationService::AllSources());
content::SimulateMouseClickAt(web_contents, 0,
- blink::WebMouseEvent::ButtonMiddle, link_position);
+ blink::WebMouseEvent::Button::Middle, link_position);
observer.Wait();
int tab_count = browser()->tab_strip_model()->count();
@@ -813,7 +813,7 @@ IN_PROC_BROWSER_TEST_F(PDFExtensionTest, LinkCtrlShiftLeftClick) {
chrome::NOTIFICATION_TAB_ADDED,
content::NotificationService::AllSources());
content::SimulateMouseClickAt(web_contents, modifiers,
- blink::WebMouseEvent::ButtonLeft, link_position);
+ blink::WebMouseEvent::Button::Left, link_position);
observer.Wait();
int tab_count = browser()->tab_strip_model()->count();
@@ -845,7 +845,7 @@ IN_PROC_BROWSER_TEST_F(PDFExtensionTest, LinkShiftMiddleClick) {
chrome::NOTIFICATION_TAB_ADDED,
content::NotificationService::AllSources());
content::SimulateMouseClickAt(web_contents, blink::WebInputEvent::ShiftKey,
- blink::WebMouseEvent::ButtonMiddle, link_position);
+ blink::WebMouseEvent::Button::Middle, link_position);
observer.Wait();
int tab_count = browser()->tab_strip_model()->count();

Powered by Google App Engine
This is Rietveld 408576698