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

Unified Diff: third_party/polymer/v1_0/components/more-routing/driver/hash.html

Issue 1269803005: Remove third_party/polymer from .gitignore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/v1_0/components/more-routing/driver/hash.html
diff --git a/third_party/polymer/v1_0/components/more-routing/driver/hash.html b/third_party/polymer/v1_0/components/more-routing/driver/hash.html
deleted file mode 100644
index e20ded15e4abb8d631b6ea8d829000f2ae6fb850..0000000000000000000000000000000000000000
--- a/third_party/polymer/v1_0/components/more-routing/driver/hash.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!--
-Copyright (c) 2015 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
--->
-<link rel="import" href="../driver.html">
-
-<script>
-(function(scope) {
-var MoreRouting = scope.MoreRouting = scope.MoreRouting || {};
-MoreRouting.HashDriver = HashDriver;
-
-/**
- * TODO(nevir): Docs.
- */
-function HashDriver() {
- MoreRouting.Driver.apply(this, arguments);
- this._bindEvents();
- this._read();
-}
-HashDriver.prototype = Object.create(MoreRouting.Driver.prototype);
-
-// By default, we prefer hashbang; but you can prefix with any string you wish.
-HashDriver.prototype.prefix = '!/';
-
-HashDriver.prototype.urlForParts = function urlForParts(parts) {
- return '#' + MoreRouting.Driver.prototype.urlForParts.call(this, parts);
-};
-
-HashDriver.prototype.navigateToUrl = function navigateToUrl(url) {
- window.location.hash = url;
-};
-
-HashDriver.prototype._bindEvents = function _bindEvents() {
- window.addEventListener('hashchange', this._read.bind(this));
-};
-
-HashDriver.prototype._read = function _read() {
- this.setCurrentPath(window.location.hash.substr(1) || this.prefix);
-};
-
-})(window);
-</script>

Powered by Google App Engine
This is Rietveld 408576698