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

Unified Diff: web/inc/logdog-stream/logdog-stream.html

Issue 2335223003: LogDog: Update web code, stream/query with auth. (Closed)
Patch Set: Fix background page loading. 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
« no previous file with comments | « web/inc/logdog-stream/logdog-error.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: web/inc/logdog-stream/logdog-stream.html
diff --git a/web/inc/logdog-stream/logdog-stream.html b/web/inc/logdog-stream/logdog-stream.html
index ec9ba5cebd0a5466929d8a09d2d942589db0bdd7..a0e56d0ca04aa438d5666ecd4e2cd2e3e7fc4dc8 100644
--- a/web/inc/logdog-stream/logdog-stream.html
+++ b/web/inc/logdog-stream/logdog-stream.html
@@ -4,7 +4,7 @@
that can be found in the LICENSE file.
-->
-<link rel="import" href="../bower_components/polymer/polymer.html">
+<link rel="import" href="logdog-error.html">
<script>
/**
@@ -97,6 +97,29 @@
this.project = project;
this.path = path;
}
+ LogDogStream.prototype.fullName = function() {
+ return this.project + "/" + this.path;
+ };
+ LogDogStream.prototype.prefix = function() {
+ var sepIdx = this.path.indexOf("/+");
+ if (sepIdx > 0) {
+ return this.path.substring(0, sepIdx);
+ }
+ return this.path;
+ };
+ LogDogStream.prototype.name = function() {
+ var sep = "/+/";
+ var sepIdx = this.path.indexOf(sep);
+ if (sepIdx < 0) {
+ return undefined;
+ }
+ return this.path.substring(sepIdx + sep.length);
+ };
+ LogDogStream.prototype.samePrefixAs = function(other) {
+ return (
+ (this.project === other.project) &&
+ (this.prefix() === other.prefix()));
+ };
LogDogStream.splitProject = function(v) {
var parts = LogDogStream.split(v, 2);
if (parts.length === 1) {
« no previous file with comments | « web/inc/logdog-stream/logdog-error.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698