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

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

Issue 11009013: NTP5: Starting implementation of a native menu for showing other device sessions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/ntp_search/new_tab.js
diff --git a/chrome/browser/resources/ntp_search/new_tab.js b/chrome/browser/resources/ntp_search/new_tab.js
index 423fdae3ab66e94cead4056022065a860f6a22b3..a8c48a3469b834216d9e8ec70fe93927e63a0066 100644
--- a/chrome/browser/resources/ntp_search/new_tab.js
+++ b/chrome/browser/resources/ntp_search/new_tab.js
@@ -702,6 +702,12 @@ cr.define('ntp', function() {
* Invoked at startup once the DOM is available to initialize the app.
*/
function onLoad() {
+
+ // TODO(jeremycho): Do not submit. Just for testing. Use
+ // http://codereview.chromium.org/10996064/ once it's submitted.
+ $('show-other-device').onclick = function(e) {
+ chrome.send('showOtherDevice', [e.screenX, e.screenY]);
+ };
// Load the current theme colors.
themeChanged();

Powered by Google App Engine
This is Rietveld 408576698