OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 /** | 5 /** |
6 * @fileoverview This file contains the main code for the CEEE Firefox | 6 * @fileoverview This file contains the main code for the CEEE Firefox |
7 * add-on. This add-on mostly implements the Google Chrome extension APIs in | 7 * add-on. This add-on mostly implements the Google Chrome extension APIs in |
8 * Firefox. | 8 * Firefox. |
9 * | 9 * |
10 * The CEEE extension is loaded into a ChromeFrame object (see the | 10 * The CEEE extension is loaded into a ChromeFrame object (see the |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 * Create the ChromeFrame element that goes into the toolstrip. | 290 * Create the ChromeFrame element that goes into the toolstrip. |
291 * @private | 291 * @private |
292 */ | 292 */ |
293 CEEE_Class.prototype.createChromeFrame_ = function() { | 293 CEEE_Class.prototype.createChromeFrame_ = function() { |
294 var impl = this; | 294 var impl = this; |
295 var onCfReady = function() {impl.onCfReady_();}; | 295 var onCfReady = function() {impl.onCfReady_();}; |
296 var onCfMessage = function(evt, target) {impl.onCfMessage_(evt, target);}; | 296 var onCfMessage = function(evt, target) {impl.onCfMessage_(evt, target);}; |
297 | 297 |
298 this.cfHelper_ = new CEEE_CfHelper(this); | 298 this.cfHelper_ = new CEEE_CfHelper(this); |
299 var parent = document.getElementById('ceee-browser-item'); | 299 var parent = document.getElementById('ceee-browser-item'); |
300 var cf = this.cfHelper_.create(parent, this.cfHelper_.CHROME_FRAME_ID, | 300 var cf = this.cfHelper_.create(parent, CEEE_globals.CHROME_FRAME_ID, |
301 onCfReady, onCfMessage); | 301 onCfReady, onCfMessage); |
302 }; | 302 }; |
303 | 303 |
304 /** Returns a helper object for working with ChromeFrame. */ | 304 /** Returns a helper object for working with ChromeFrame. */ |
305 CEEE_Class.prototype.getCfHelper = function() { | 305 CEEE_Class.prototype.getCfHelper = function() { |
306 return this.cfHelper_; | 306 return this.cfHelper_; |
307 }; | 307 }; |
308 | 308 |
309 /** Returns a helper object for working with windows. */ | 309 /** Returns a helper object for working with windows. */ |
310 CEEE_Class.prototype.getWindowModule = function() { | 310 CEEE_Class.prototype.getWindowModule = function() { |
311 return this.windowModule_; | 311 return this.windowModule_; |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 return instance; | 945 return instance; |
946 } | 946 } |
947 | 947 |
948 /** | 948 /** |
949 * Global reference to the CEEE instance. | 949 * Global reference to the CEEE instance. |
950 * @private | 950 * @private |
951 */ | 951 */ |
952 var CEEE_instance_ = CEEE_initialize(); | 952 var CEEE_instance_ = CEEE_initialize(); |
953 | 953 |
954 // })(); | 954 // })(); |
OLD | NEW |