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

Side by Side Diff: ios/web/web_state/js/resources/dialog_overrides.js

Issue 2817943002: Fully deprecate core.js. Moved last method to error.js. (Closed)
Patch Set: Tweak language Created 3 years, 8 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
« no previous file with comments | « ios/web/web_state/js/resources/core.js ('k') | ios/web/web_state/js/resources/error.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ios/web/web_state/js/resources/core.js ('k') | ios/web/web_state/js/resources/error.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698