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

Unified Diff: third_party/polymer/v1_0/components-chromium/app-route/app-location-extracted.js

Issue 2357093002: Polymer WebUI: Remove app-route from Polymer components (Closed)
Patch Set: Rebase Created 4 years, 3 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-chromium/app-route/app-location-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/app-route/app-location-extracted.js b/third_party/polymer/v1_0/components-chromium/app-route/app-location-extracted.js
deleted file mode 100644
index 4d0c4bdff4725c1c884d1c1e292df25c3046edc5..0000000000000000000000000000000000000000
--- a/third_party/polymer/v1_0/components-chromium/app-route/app-location-extracted.js
+++ /dev/null
@@ -1,110 +0,0 @@
-'use strict';
-
- Polymer({
- is: 'app-location',
-
- properties: {
- /**
- * A model representing the deserialized path through the route tree, as
- * well as the current queryParams.
- */
- route: {
- type: Object,
- notify: true
- },
-
- /**
- * In many scenarios, it is convenient to treat the `hash` as a stand-in
- * alternative to the `path`. For example, if deploying an app to a static
- * web server (e.g., Github Pages) - where one does not have control over
- * server-side routing - it is usually a better experience to use the hash
- * to represent paths through one's app.
- *
- * When this property is set to true, the `hash` will be used in place of
-
- * the `path` for generating a `route`.
- */
- useHashAsPath: {
- type: Boolean,
- value: false
- },
-
- /**
- * A regexp that defines the set of URLs that should be considered part
- * of this web app.
- *
- * Clicking on a link that matches this regex won't result in a full page
- * navigation, but will instead just update the URL state in place.
- *
- * This regexp is given everything after the origin in an absolute
- * URL. So to match just URLs that start with /search/ do:
- * url-space-regex="^/search/"
- *
- * @type {string|RegExp}
- */
- urlSpaceRegex: {
- type: String,
- notify: true
- },
-
- /**
- * A set of key/value pairs that are universally accessible to branches
- * of the route tree.
- */
- __queryParams: {
- type: Object
- },
-
- /**
- * The pathname component of the current URL.
- */
- __path: {
- type: String
- },
-
- /**
- * The query string portion of the current URL.
- */
- __query: {
- type: String
- },
-
- /**
- * The hash portion of the current URL.
- */
- __hash: {
- type: String
- },
-
- /**
- * The route path, which will be either the hash or the path, depending
- * on useHashAsPath.
- */
- path: {
- type: String,
- observer: '__onPathChanged'
- }
- },
-
- behaviors: [Polymer.AppRouteConverterBehavior],
-
- observers: [
- '__computeRoutePath(useHashAsPath, __hash, __path)'
- ],
-
- __computeRoutePath: function() {
- this.path = this.useHashAsPath ? this.__hash : this.__path;
- },
-
- __onPathChanged: function() {
- if (!this._readied) {
- return;
- }
-
- if (this.useHashAsPath) {
- this.__hash = this.path;
- } else {
- this.__path = this.path;
- }
- }
- });

Powered by Google App Engine
This is Rietveld 408576698