Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / devtools / front_end / bindings / LiveLocation.js
blob2cc65c3a03552bd8d4b060e831dea407f2b670ab
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 /**
6 * @constructor
7 * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDelegate
8 */
9 WebInspector.LiveLocation = function(updateDelegate)
11 this._updateDelegate = updateDelegate;
14 WebInspector.LiveLocation.prototype = {
15 update: function()
17 var uiLocation = this.uiLocation();
18 if (!uiLocation)
19 return;
20 if (this._updateDelegate(uiLocation))
21 this.dispose();
24 /**
25 * @return {?WebInspector.UILocation}
27 uiLocation: function()
29 throw "Not implemented";
32 dispose: function()
34 // Overridden by subclasses.