OLD | NEW |
(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); |
OLD | NEW |