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

Side by Side Diff: web/inc/logdog-stream-view/view.ts

Issue 2887153005: [logdog-stream-view] Auth and misc bugfixes. (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « web/inc/logdog-stream-view/model.ts ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright 2016 The LUCI Authors. All rights reserved. 2 Copyright 2016 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 */ 5 */
6 6
7 ///<reference path="../logdog-stream/logdog.ts" /> 7 ///<reference path="../logdog-stream/logdog.ts" />
8 ///<reference path="../luci-operation/operation.ts" /> 8 ///<reference path="../luci-operation/operation.ts" />
9 ///<reference path="../luci-sleep-promise/promise.ts" /> 9 ///<reference path="../luci-sleep-promise/promise.ts" />
10 ///<reference path="../rpc/client.ts" /> 10 ///<reference path="../rpc/client.ts" />
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 if (!this.model) { 232 if (!this.model) {
233 return; 233 return;
234 } 234 }
235 235
236 // After a split, toggle off playing. 236 // After a split, toggle off playing.
237 this.model.split(); 237 this.model.split();
238 this.model.setFetchFromTail(true); 238 this.model.setFetchFromTail(true);
239 this.comp.playing = false; 239 this.comp.playing = false;
240 } 240 }
241 241
242 /** Called when the "scroll to split" button is clicked. */
243 handleScrollToSplitClicked() {
244 this.maybeScrollToElement(this.comp.$.logSplit, true, true);
245 }
246
242 /** Called when a sign-in event is fired from "google-signin-aware". */ 247 /** Called when a sign-in event is fired from "google-signin-aware". */
243 handleSignin() { 248 handleSignin() {
244 if (this.model) { 249 if (this.model) {
245 this.model.notifyAuthenticationChanged(); 250 this.model.notifyAuthenticationChanged();
246 } 251 }
247 } 252 }
248 253
249 /** Clears asynchornous scroll event status. */ 254 /** Clears asynchornous scroll event status. */
250 private resetScroll() { 255 private resetScroll() {
251 if (this.scrollTimeoutId !== null) { 256 if (this.scrollTimeoutId !== null) {
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 } 572 }
568 573
569 return ( 574 return (
570 top < (window.pageYOffset + window.innerHeight) && 575 top < (window.pageYOffset + window.innerHeight) &&
571 left < (window.pageXOffset + window.innerWidth) && 576 left < (window.pageXOffset + window.innerWidth) &&
572 (top + height) > window.pageYOffset && 577 (top + height) > window.pageYOffset &&
573 (left + width) > window.pageXOffset); 578 (left + width) > window.pageXOffset);
574 } 579 }
575 } 580 }
576 } 581 }
OLDNEW
« no previous file with comments | « web/inc/logdog-stream-view/model.ts ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698