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

Side by Side Diff: chrome/browser/resources/about_welcome_android/about_welcome_android.js

Issue 10828140: Upstream about:welcome page for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // File Description:
6 // Contains all the necessary functions for rendering the Welcome page on
7 // Android.
8
9 cr.define('about_welcome_android', function() {
10 'use strict';
11
12 /**
13 * Disable context menus.
14 */
15 function initialize() {
16 document.body.oncontextmenu = function(e) {
17 e.preventDefault();
18 }
19 }
20
21 // Return an object with all of the exports.
22 return {
23 initialize: initialize,
24 };
25 });
26
27 document.addEventListener('DOMContentLoaded', about_welcome_android.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698