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

Unified Diff: ui/webui/resources/cr_elements/v1_0/cr_input/cr_input.js

Issue 1162963002: Revert "Rename polymer and cr_elements v0_8 to v1_0" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: ui/webui/resources/cr_elements/v1_0/cr_input/cr_input.js
diff --git a/ui/webui/resources/cr_elements/v1_0/cr_input/cr_input.js b/ui/webui/resources/cr_elements/v1_0/cr_input/cr_input.js
deleted file mode 100644
index 6273eccd140e1b9f7332ad15b5f1c5ab75fb9ea9..0000000000000000000000000000000000000000
--- a/ui/webui/resources/cr_elements/v1_0/cr_input/cr_input.js
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright 2015 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
- * `cr-input` is a single-line text field for user input. It is a convenience
- * element wrapping `paper-input`.
- *
- * Example:
- *
- * <cr-input></cr-input>
- *
- * @group Chrome Elements
- * @element cr-input
- */
-Polymer({
- is: 'cr-input',
-
- properties: {
- /**
- * The label for this input. It normally appears as grey text inside
- * the text input and disappears once the user enters text.
- */
- label: {
- type: String,
- value: ''
- },
-
- /**
- * Set to true to mark the input as required.
- */
- required: {
- type: Boolean,
- value: false
- },
-
- /**
- * Set to true to disable editing the input.
- */
- disabled: {
- type: Boolean,
- value: false,
- reflectToAttribute: true
- },
-
- /**
- * The current value of the input.
- */
- value: {
- type: String,
- value: '',
- notify: true,
- },
-
- /**
- * The validation pattern for the input.
- */
- pattern: String,
-
- /**
- * The type of the input (password, date, etc.).
- */
- type: String,
-
- /**
- * The message to display if the input value fails validation. If this
- * is unset or the empty string, a default message is displayed depending
- * on the type of validation error.
- */
- errorMessage: {
- type: String,
- value: '',
- },
- },
-
- /**
- * Focuses the 'input' element.
- */
- focus: function() {
- this.$.input.focus();
- },
-
- /** @override */
- ready: function() {
- this.$.events.forward(this.$.input, ['change']);
- },
-});
« no previous file with comments | « ui/webui/resources/cr_elements/v1_0/cr_input/cr_input.html ('k') | ui/webui/resources/cr_elements/v1_0/cr_input/demo.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698