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

Unified Diff: chrome/browser/resources/ntp4/new_tab.js

Issue 8110003: Show avatar menu from NTP4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 years, 2 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 | chrome/browser/ui/browser_window.h » ('j') | chrome/browser/ui/webui/ntp/ntp_login_handler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/new_tab.js
diff --git a/chrome/browser/resources/ntp4/new_tab.js b/chrome/browser/resources/ntp4/new_tab.js
index 00e92414bf80a3c127507657b145ce9f050d002f..52af07e066847f126b605963b113736fbea0138f 100644
--- a/chrome/browser/resources/ntp4/new_tab.js
+++ b/chrome/browser/resources/ntp4/new_tab.js
@@ -150,7 +150,9 @@ cr.define('ntp4', function() {
chrome.send('initializeLogin');
$('login-container').addEventListener('click', function() {
- chrome.send('loginContainerClicked');
+ var rect = $('login-container').getBoundingClientRect();
+ chrome.send('loginContainerClicked', [rect.left, rect.top, rect.width,
+ rect.height]);
});
// Prevent touch events from triggering any sort of native scrolling
« no previous file with comments | « no previous file | chrome/browser/ui/browser_window.h » ('j') | chrome/browser/ui/webui/ntp/ntp_login_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698