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

Side by Side Diff: Source/devtools/front_end/sdk/StylesSourceMapping.js

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 this._isMajorChangePending = false; 371 this._isMajorChangePending = false;
372 }, 372 },
373 373
374 /** 374 /**
375 * @param {!WebInspector.Throttler.FinishCallback} finishCallback 375 * @param {!WebInspector.Throttler.FinishCallback} finishCallback
376 * @param {?string} error 376 * @param {?string} error
377 */ 377 */
378 _styleContentSet: function(finishCallback, error) 378 _styleContentSet: function(finishCallback, error)
379 { 379 {
380 if (error) 380 if (error)
381 this._mapping._cssModel.target().consoleModel.showErrorMessage(error ); 381 WebInspector.console.error(error);
382 finishCallback(); 382 finishCallback();
383 }, 383 },
384 384
385 /** 385 /**
386 * @param {string} content 386 * @param {string} content
387 */ 387 */
388 addRevision: function(content) 388 addRevision: function(content)
389 { 389 {
390 this._isAddingRevision = true; 390 this._isAddingRevision = true;
391 this._uiSourceCode.addRevision(content); 391 this._uiSourceCode.addRevision(content);
392 delete this._isAddingRevision; 392 delete this._isAddingRevision;
393 }, 393 },
394 394
395 dispose: function() 395 dispose: function()
396 { 396 {
397 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyCommitted, this._workingCopyCommitted, this); 397 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyCommitted, this._workingCopyCommitted, this);
398 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyChanged, this._workingCopyChanged, this); 398 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyChanged, this._workingCopyChanged, this);
399 } 399 }
400 } 400 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/ScriptSnippetModel.js ('k') | Source/devtools/front_end/sdk/Target.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698