From b6d78f039a327f70412ccdb2c03a341c7f1fc8af Mon Sep 17 00:00:00 2001 From: apacible Date: Fri, 25 Mar 2016 16:07:09 -0700 Subject: [Media Router WebUI] Switch on-click to on-tap for consistent event listening. Previously, we used on-click for user click events, which made touch screen interactions inconsistent. This change switches all on-click listeners to on-tap, which listens for a event that fires consistently on touch/click platforms. Tested with the --simulate-touch-screen-with-mouse and enabling touch events in Chrome DevTools. BUG=596844 Review URL: https://codereview.chromium.org/1839433002 Cr-Commit-Position: refs/heads/master@{#383395} --- .../media_router/elements/issue_banner/issue_banner.html | 4 ++-- .../media_router_container/media_router_container.html | 14 +++++++------- .../elements/media_router_header/media_router_header.html | 6 +++--- .../media_router/elements/route_details/route_details.html | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/chrome/browser/resources/media_router/elements/issue_banner/issue_banner.html b/chrome/browser/resources/media_router/elements/issue_banner/issue_banner.html index d5f02ad..3a29dbb 100644 --- a/chrome/browser/resources/media_router/elements/issue_banner/issue_banner.html +++ b/chrome/browser/resources/media_router/elements/issue_banner/issue_banner.html @@ -15,12 +15,12 @@
[[secondaryActionButtonText_]] + class="button action" on-tap="onClickDefaultAction_"> [[defaultActionButtonText_]]
diff --git a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html index 3f0b684..bcf1650 100644 --- a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html +++ b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html @@ -47,7 +47,7 @@
+ on-tap="acknowledgeFirstRunFlow_"> [[firstRunFlowButtonText_]]
@@ -65,7 +65,7 @@