| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |