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

Unified Diff: chrome_frame/cfinstall/src/stub/frame.js

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/cfinstall/src/stub/chromeframe.js ('k') | chrome_frame/cfinstall/src/stub/inlinedelegate.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/cfinstall/src/stub/frame.js
diff --git a/chrome_frame/cfinstall/src/stub/frame.js b/chrome_frame/cfinstall/src/stub/frame.js
deleted file mode 100644
index 6d239846f50e0a8f3b5fb1f5f1c74f538991062c..0000000000000000000000000000000000000000
--- a/chrome_frame/cfinstall/src/stub/frame.js
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @fileoverview Implements some utilities for the legacy 'inline' and 'overlay'
- * UI modes.
- **/
-
-goog.provide('google.cf.installer.frame');
-
-/**
- * Plucks properties from the passed arguments and sets them on the passed
- * DOM node
- * @param {Node} node The node to set properties on
- * @param {Object} args A map of user-specified properties to set
- */
-google.cf.installer.frame.setProperties = function(node, args) {
- var cssText = args['cssText'] || '';
- node.style.cssText = ' ' + cssText;
-
- var classText = args['className'] || '';
- node.className = classText;
-
- var srcNode = args['node'];
- if (typeof srcNode == 'string')
- srcNode = document.getElementById(srcNode);
- return args['id'] || (srcNode ? srcNode['id'] || '' : '');
-};
-
-/**
- * Determines the parent node to create the IFrame in, based on the provided
- * arguments. Note that this should only be called once.
- * @param {Object} args A map of user-specified properties.
- */
-google.cf.installer.frame.getParentNode = function(args) {
- var srcNode = args['node'];
- if (typeof srcNode == 'string')
- srcNode = document.getElementById(srcNode);
- if (srcNode) {
- var parentNode = srcNode.parentNode;
- parentNode.removeChild(srcNode);
- return parentNode;
- }
- return document.body;
-};
« no previous file with comments | « chrome_frame/cfinstall/src/stub/chromeframe.js ('k') | chrome_frame/cfinstall/src/stub/inlinedelegate.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698