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

Unified Diff: third_party/polymer/components-chromium/core-selection/core-selection.html

Issue 1215543002: Remove Polymer 0.5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 5 years, 6 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/components-chromium/core-selection/core-selection.html
diff --git a/third_party/polymer/components-chromium/core-selection/core-selection.html b/third_party/polymer/components-chromium/core-selection/core-selection.html
deleted file mode 100644
index 6eb7b1c1b0a8b2514b87ae200517a6786c573e3c..0000000000000000000000000000000000000000
--- a/third_party/polymer/components-chromium/core-selection/core-selection.html
+++ /dev/null
@@ -1,74 +0,0 @@
-<!--
-Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
-The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
-The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
-Code distributed by Google as part of the polymer project is also
-subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
---><!--
-@group Polymer Core Elements
-
-The `<core-selection>` element is used to manage selection state. It has no
-visual appearance and is typically used in conjunction with another element.
-For example, [core-selector](#core-selector)
-uses a `<core-selection>` to manage selection.
-
-To mark an item as selected, call the `select(item)` method on
-`<core-selection>`. The item itself is an argument to this method.
-
-The `<core-selection>`element manages selection state for any given set of
-items. When an item is selected, the `core-select` event is fired.
-
-The attribute `multi` indicates if multiple items can be selected at once.
-
-Example:
-
- <polymer-element name="selection-example">
- <template>
- <style>
- polyfill-next-selector { content: ':host > .selected'; }
- ::content > .selected {
- font-weight: bold;
- font-style: italic;
- }
- </style>
- <ul on-tap="{{itemTapAction}}">
- <content></content>
- </ul>
- <core-selection id="selection" multi
- on-core-select="{{selectAction}}"></core-selection>
- </template>
- <script>
- Polymer('selection-example', {
- itemTapAction: function(e, detail, sender) {
- this.$.selection.select(e.target);
- },
- selectAction: function(e, detail, sender) {
- detail.item.classList.toggle('selected', detail.isSelected);
- }
- });
- </script>
- </polymer-element>
-
- <selection-example>
- <li>Red</li>
- <li>Green</li>
- <li>Blue</li>
- </selection-example>
-
-@element core-selection
---><!--
-Fired when an item's selection state is changed. This event is fired both
-when an item is selected or deselected. The `isSelected` detail property
-contains the selection state.
-
-@event core-select
-@param {Object} detail
- @param {boolean} detail.isSelected true for selection and false for de-selection
- @param {Object} detail.item the item element
---><html><head><link rel="import" href="../polymer/polymer.html">
-
-</head><body><polymer-element name="core-selection" attributes="multi" hidden="" assetpath="">
-
-</polymer-element>
-<script charset="utf-8" src="core-selection-extracted.js"></script></body></html>

Powered by Google App Engine
This is Rietveld 408576698