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

Unified Diff: chrome/browser/resources/chromeos/login/user_pod_row.js

Issue 13375014: [cros] Temporaly add logging to login screen for events dealing with action box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/user_pod_row.js
diff --git a/chrome/browser/resources/chromeos/login/user_pod_row.js b/chrome/browser/resources/chromeos/login/user_pod_row.js
index 93a7d4f91cc10d4a5ac4f06f99c79ee992583cfc..cb56d748eca4116b7a5fdfebebc38838e818c657 100644
--- a/chrome/browser/resources/chromeos/login/user_pod_row.js
+++ b/chrome/browser/resources/chromeos/login/user_pod_row.js
@@ -469,6 +469,8 @@ cr.define('login', function() {
handleActionAreaButtonClick_: function(e) {
if (this.parentNode.disabled)
return;
+ console.error('Action area clicked: ' + !this.isActionBoxMenuActive +
+ ' at ' + e.x + ', ' + e.y);
this.isActionBoxMenuActive = !this.isActionBoxMenuActive;
},
@@ -482,8 +484,11 @@ cr.define('login', function() {
switch (e.keyIdentifier) {
case 'Enter':
case 'U+0020': // Space
- if (this.parentNode.focusedPod_ && !this.isActionBoxMenuActive)
+ if (this.parentNode.focusedPod_ && !this.isActionBoxMenuActive) {
+ console.error('Action area keyed: ' + !this.isActionBoxMenuActive +
+ ' at ' + e.x + ', ' + e.y);
this.isActionBoxMenuActive = true;
+ }
e.stopPropagation();
break;
case 'Up':
@@ -1186,6 +1191,9 @@ cr.define('login', function() {
if (this.disabled)
return;
+ console.error('Document clicked at ' + e.x + ', ' + e.y +
+ ', pod: ' + findAncestorByClass(e.target, 'pod'));
+
// Clear all menus if the click is outside pod menu and its
// button area.
if (!findAncestorByClass(e.target, 'action-box-menu') &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698