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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/layers/LayerTreeModel.js

Issue 2600323002: DevTools: extract protocol module (Closed)
Patch Set: move inspector backend commands.js Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 /** 407 /**
408 * @override 408 * @override
409 * @param {function(!Array.<string>)} callback 409 * @param {function(!Array.<string>)} callback
410 */ 410 */
411 requestCompositingReasons(callback) { 411 requestCompositingReasons(callback) {
412 if (!this._target) { 412 if (!this._target) {
413 callback([]); 413 callback([]);
414 return; 414 return;
415 } 415 }
416 416
417 var wrappedCallback = InspectorBackend.wrapClientCallback( 417 var wrappedCallback = Protocol.inspectorBackend.wrapClientCallback(
418 callback, 'Protocol.LayerTree.reasonsForCompositingLayer(): ', undefined , []); 418 callback, 'Protocol.LayerTree.reasonsForCompositingLayer(): ', undefined , []);
419 this._target.layerTreeAgent().compositingReasons(this.id(), wrappedCallback) ; 419 this._target.layerTreeAgent().compositingReasons(this.id(), wrappedCallback) ;
420 } 420 }
421 421
422 /** 422 /**
423 * @override 423 * @override
424 * @return {boolean} 424 * @return {boolean}
425 */ 425 */
426 drawsContent() { 426 drawsContent() {
427 return this._layerPayload.drawsContent; 427 return this._layerPayload.drawsContent;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 560
561 /** 561 /**
562 * @override 562 * @override
563 * @param {!Protocol.LayerTree.LayerId} layerId 563 * @param {!Protocol.LayerTree.LayerId} layerId
564 * @param {!Protocol.DOM.Rect} clipRect 564 * @param {!Protocol.DOM.Rect} clipRect
565 */ 565 */
566 layerPainted(layerId, clipRect) { 566 layerPainted(layerId, clipRect) {
567 this._layerTreeModel._layerPainted(layerId, clipRect); 567 this._layerTreeModel._layerPainted(layerId, clipRect);
568 } 568 }
569 }; 569 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/inspector.json ('k') | third_party/WebKit/Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698