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

Unified Diff: appengine/chromium_rietveld/new_static/components/cr-title-handler.html

Issue 1001723003: Create a common directory of widgets and css. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 5 years, 9 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: appengine/chromium_rietveld/new_static/components/cr-title-handler.html
diff --git a/appengine/chromium_rietveld/new_static/components/cr-title-handler.html b/appengine/chromium_rietveld/new_static/components/cr-title-handler.html
deleted file mode 100644
index b21afc9d535cc7cffd834fda9feda0a5e15d790f..0000000000000000000000000000000000000000
--- a/appengine/chromium_rietveld/new_static/components/cr-title-handler.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!-- Copyright (c) 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="cr-title-handler" attributes="titlePrefix titleSuffix">
- <template>
- <style>
- :host { display: none; }
- </style>
- </template>
- <script>
- Polymer("cr-title-handler", {
- created: function() {
- this.titlePrefix = "";
- this.titleSuffix = "";
- this.handleTitleChange = this.handleTitleChange.bind(this);
- },
- attached: function() {
- document.addEventListener("title-change", this.handleTitleChange);
- },
- detached: function() {
- document.removeEventListener("title-change", this.handleTitleChange);
- },
- handleTitleChange: function(event) {
- var value = event.detail.value || "";
- var title = this.titlePrefix;
- if (title.length && value.length)
- title += ": ";
- if (value.length)
- title += value;
- if (this.titleSuffix)
- title += " - " + this.titleSuffix;
- document.title = title;
- },
- });
- </script>
-</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698