| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 goog.provide('__crWeb.dialogOverrides'); | 5 goog.provide('__crWeb.dialogOverrides'); |
| 6 | 6 |
| 7 goog.require('__crWeb.core'); | 7 goog.require('__crWeb.message'); |
| 8 | 8 |
| 9 __gCrWeb.dialogOverrides = {}; | 9 __gCrWeb.dialogOverrides = {}; |
| 10 | 10 |
| 11 (function() { | 11 (function() { |
| 12 /* | 12 /* |
| 13 * Installs a wrapper around geolocation functions displaying dialogs in order | 13 * Installs a wrapper around geolocation functions displaying dialogs in order |
| 14 * to control their suppression. | 14 * to control their suppression. |
| 15 * | 15 * |
| 16 * Since the Javascript on the page may cache the value of those functions | 16 * Since the Javascript on the page may cache the value of those functions |
| 17 * and invoke them later, we must only install the wrapper once and change | 17 * and invoke them later, we must only install the wrapper once and change |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 return function(setEnabled) { | 91 return function(setEnabled) { |
| 92 suppressGeolocationDialogs = setEnabled; | 92 suppressGeolocationDialogs = setEnabled; |
| 93 }; | 93 }; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 // Override geolocation methods that produce dialogs. | 96 // Override geolocation methods that produce dialogs. |
| 97 __gCrWeb['setSuppressGeolocationDialogs'] = | 97 __gCrWeb['setSuppressGeolocationDialogs'] = |
| 98 installGeolocationDialogOverridesMethods(); | 98 installGeolocationDialogOverridesMethods(); |
| 99 | 99 |
| 100 }()); // End of anonymous object | 100 }()); // End of anonymous object |
| OLD | NEW |