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

Unified Diff: third_party/polymer/components-chromium/paper-tabs/paper-tabs.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/paper-tabs/paper-tabs.html
diff --git a/third_party/polymer/components-chromium/paper-tabs/paper-tabs.html b/third_party/polymer/components-chromium/paper-tabs/paper-tabs.html
deleted file mode 100644
index d2370fca24f2128bdeb7e4cf1921168c9e41ebfa..0000000000000000000000000000000000000000
--- a/third_party/polymer/components-chromium/paper-tabs/paper-tabs.html
+++ /dev/null
@@ -1,109 +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
---><!--
-`paper-tabs` is a `core-selector` styled to look like tabs. Tabs make it easy to
-explore and switch between different views or functional aspects of an app, or
-to browse categorized data sets.
-
-Use `selected` property to get or set the selected tab.
-
-Example:
-
- <paper-tabs selected="0">
- <paper-tab>TAB 1</paper-tab>
- <paper-tab>TAB 2</paper-tab>
- <paper-tab>TAB 3</paper-tab>
- </paper-tabs>
-
-See <a href="#paper-tab">paper-tab</a> for more information about
-`paper-tab`.
-
-A common usage for `paper-tabs` is to use it along with `core-pages` to switch
-between different views.
-
- <paper-tabs selected="{{selected}}">
- <paper-tab>Tab 1</paper-tab>
- <paper-tab>Tab 2</paper-tab>
- <paper-tab>Tab 3</paper-tab>
- </paper-tabs>
-
- <core-pages selected="{{selected}}">
- <div>Page 1</div>
- <div>Page 2</div>
- <div>Page 3</div>
- </core-pages>
-
-`paper-tabs` adapt to mobile/narrow layout when there is a `core-narrow` class set
-on itself or any of its ancestors.
-
-To use links in tabs, add `link` attribute to `paper-tabs` and put an `<a>`
-element in `paper-tab`.
-
-Example:
-
- <paper-tabs selected="0" link>
- <paper-tab>
- <a href="#link1" horizontal center-center layout>TAB ONE</a>
- </paper-tab>
- <paper-tab>
- <a href="#link2" horizontal center-center layout>TAB TWO</a>
- </paper-tab>
- <paper-tab>
- <a href="#link3" horizontal center-center layout>TAB THREE</a>
- </paper-tab>
- </paper-tabs>
-
-Styling tabs:
-
-To change the sliding bar color:
-
- paper-tabs.pink::shadow #selectionBar {
- background-color: #ff4081;
- }
-
-To change the ink ripple color:
-
- paper-tabs.pink paper-tab::shadow #ink {
- color: #ff4081;
- }
-
-@group Paper Elements
-@element paper-tabs
-@extends core-selector
-@homepage github.io
---><html><head><link rel="import" href="../core-selector/core-selector.html">
-<link rel="import" href="../paper-icon-button/paper-icon-button.html">
-<link rel="import" href="../core-resizable/core-resizable.html">
-<link rel="import" href="paper-tab.html">
-
-</head><body><polymer-element name="paper-tabs" extends="core-selector" attributes="noink nobar noslide scrollable hideScrollButton" role="tablist" horizontal="" center="" layout="" assetpath="">
-<template>
-
- <link rel="stylesheet" href="paper-tabs.css">
-
- <div class="scroll-button" hidden?="{{!scrollable || hideScrollButton}}">
- <paper-icon-button icon="chevron-left" class="{{ {hidden: leftHidden} | tokenList }}" on-down="{{holdLeft}}" on-up="{{releaseHold}}"></paper-icon-button>
- </div>
-
- <div id="tabsContainer" class="{{ {scrollable: scrollable} | tokenList }}" flex="" on-scroll="{{scroll}}" on-trackstart="{{trackStart}}">
-
- <div id="tabsContent" horizontal="" layout?="{{!scrollable}}">
- <shadow></shadow>
- <div id="selectionBar" hidden?="{{nobar}}" on-transitionend="{{barTransitionEnd}}"></div>
- </div>
-
- </div>
-
- <div class="scroll-button" hidden?="{{!scrollable || hideScrollButton}}">
- <paper-icon-button icon="chevron-right" class="{{ {hidden: rightHidden} | tokenList }}" on-down="{{holdRight}}" on-up="{{releaseHold}}"></paper-icon-button>
- </div>
-
-</template>
-
-</polymer-element>
-<script charset="utf-8" src="paper-tabs-extracted.js"></script></body></html>

Powered by Google App Engine
This is Rietveld 408576698