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

Unified Diff: third_party/polymer/v0_8/components-chromium/iron-icon/iron-icon-extracted.js

Issue 1155683008: Rename polymer and cr_elements v0_8 to v1_0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v1
Patch Set: fix a merge mistake Created 5 years, 7 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
Index: third_party/polymer/v0_8/components-chromium/iron-icon/iron-icon-extracted.js
diff --git a/third_party/polymer/v0_8/components-chromium/iron-icon/iron-icon-extracted.js b/third_party/polymer/v0_8/components-chromium/iron-icon/iron-icon-extracted.js
deleted file mode 100644
index 0f1add2736429dde45d555f770d1742aaa0d136e..0000000000000000000000000000000000000000
--- a/third_party/polymer/v0_8/components-chromium/iron-icon/iron-icon-extracted.js
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
- Polymer({
-
- is: 'iron-icon',
-
- properties: {
-
- /**
- * The name of the icon to use. The name should be of the form:
- * `iconset_name:icon_name`.
- */
- icon: {
- type: String,
- observer: '_iconChanged'
- },
-
- /**
- * The name of the theme to used, if one is specified by the
- * iconset.
- */
- theme: {
- type: String,
- observer: '_updateIcon'
- },
-
- /**
- * If using iron-icon without an iconset, you can set the src to be
- * the URL of an individual icon image file. Note that this will take
- * precedence over a given icon attribute.
- */
- src: {
- type: String,
- observer: '_srcChanged'
- }
- },
-
- _DEFAULT_ICONSET: 'icons',
-
- _iconChanged: function(icon) {
- var parts = (icon || '').split(':');
- this._iconName = parts.pop();
- this._iconsetName = parts.pop() || this._DEFAULT_ICONSET;
- this._updateIcon();
- },
-
- _srcChanged: function(src) {
- this._updateIcon();
- },
-
- _usesIconset: function() {
- return this.icon || !this.src;
- },
-
- _updateIcon: function() {
- if (this._usesIconset()) {
- if (this._iconsetName) {
- this._iconset = this.$.meta.byKey(this._iconsetName);
- if (this._iconset) {
- this._iconset.applyIcon(this, this._iconName, this.theme);
- } else {
- this._warn(this._logf('_updateIcon', 'could not find iconset `'
- + this._iconsetName + '`, did you import the iconset?'));
- }
- }
- } else {
- if (!this._img) {
- this._img = document.createElement('img');
- this._img.style.width = '100%';
- this._img.style.height = '100%';
- }
- this._img.src = this.src;
- Polymer.dom(this.root).appendChild(this._img);
- }
- }
-
- });
-
-

Powered by Google App Engine
This is Rietveld 408576698