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

Side by Side Diff: Source/devtools/front_end/bindings/LiveLocation.js

Issue 471433004: DevTools: Split out the "workspace" and "bindings" modules from "sdk" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove marker interfaces and WI.SourceMapping Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 /**
6 * @constructor
7 * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDelegat e
8 */
9 WebInspector.LiveLocation = function(updateDelegate)
10 {
11 this._updateDelegate = updateDelegate;
12 }
13
14 WebInspector.LiveLocation.prototype = {
15 update: function()
16 {
17 var uiLocation = this.uiLocation();
18 if (!uiLocation)
19 return;
20 if (this._updateDelegate(uiLocation))
21 this.dispose();
22 },
23
24 /**
25 * @return {!WebInspector.UILocation}
26 */
27 uiLocation: function()
28 {
29 throw "Not implemented";
30 },
31
32 dispose: function()
33 {
34 // Overridden by subclasses.
35 }
36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698