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

Unified Diff: Tools/GardeningServer/ui/ct-view.html

Issue 728023004: Remove GardeningServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | « Tools/GardeningServer/ui/ct-unexpected-failures.html ('k') | Tools/GardeningServer/ui/ct-view-handler.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/ui/ct-view.html
diff --git a/Tools/GardeningServer/ui/ct-view.html b/Tools/GardeningServer/ui/ct-view.html
deleted file mode 100644
index bfe9f5cb6267772ca4625962d3f719b26962047d..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/ui/ct-view.html
+++ /dev/null
@@ -1,74 +0,0 @@
-<!--
-Copyright 2014 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.
--->
-
-<polymer-element name="ct-view" attributes="path" hidden="true">
- <template>
- <style>
- ::content > * {
- /* For independent scrolling of the view within a positioned element. */
- position: absolute;
- overflow: auto;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- }
- </style>
- <content select="*"></content>
- </template>
- <script>
- Polymer("ct-view", {
- parts: null,
- regex: null,
-
- pathChanged: function(oldValue, newValue) {
- var self = this;
- this.parts = [];
- var regex = newValue.replace(/\{([\w\d]+)\}/g, function(match, name) {
- self.parts.push(name);
- return "([^\/]+)";
- });
- regex = regex.replace(/\*([\w\d]+)/g, function(match, name) {
- self.parts.push(name);
- return "(.*)";
- });
- this.regex = new RegExp("^" + regex + "/?$", "i");
- },
-
- showView: function(path) {
- if (path) {
- var params = this._matchPath(path);
- if (!params)
- return null;
- }
- if (!this.children.length)
- return null;
- if (!this.view)
- this.view = this.children[0];
- if (params) {
- Object.keys(params).forEach(function(name) {
- this.view.setAttribute(name, decodeURIComponent(params[name]));
- }, this);
- }
- this.hidden = false;
- return this.view;
- },
-
- _matchPath: function(path) {
- if (!this.regex || !this.parts)
- return null;
- var match = path.match(this.regex);
- if (!match)
- return null;
- var result = {};
- this.parts.forEach(function(name, i) {
- result[name] = match[i + 1];
- });
- return result;
- },
- });
- </script>
-</polymer-element>
« no previous file with comments | « Tools/GardeningServer/ui/ct-unexpected-failures.html ('k') | Tools/GardeningServer/ui/ct-view-handler.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698