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

Side by Side Diff: Source/devtools/front_end/extensions/ExtensionView.js

Issue 662793002: [DevTools] Replace usages of document with custom functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 25 matching lines...) Expand all
36 * @param {string} src 36 * @param {string} src
37 * @param {string} className 37 * @param {string} className
38 */ 38 */
39 WebInspector.ExtensionView = function(server, id, src, className) 39 WebInspector.ExtensionView = function(server, id, src, className)
40 { 40 {
41 WebInspector.View.call(this); 41 WebInspector.View.call(this);
42 this.element.className = "extension-view fill"; // Override 42 this.element.className = "extension-view fill"; // Override
43 43
44 this._server = server; 44 this._server = server;
45 this._id = id; 45 this._id = id;
46 this._iframe = document.createElement("iframe"); 46 this._iframe = createElement("iframe");
47 this._iframe.addEventListener("load", this._onLoad.bind(this), false); 47 this._iframe.addEventListener("load", this._onLoad.bind(this), false);
48 this._iframe.src = src; 48 this._iframe.src = src;
49 this._iframe.className = className; 49 this._iframe.className = className;
50 this.setDefaultFocusedElement(this._iframe); 50 this.setDefaultFocusedElement(this._iframe);
51 51
52 this.element.appendChild(this._iframe); 52 this.element.appendChild(this._iframe);
53 } 53 }
54 54
55 WebInspector.ExtensionView.prototype = { 55 WebInspector.ExtensionView.prototype = {
56 wasShown: function() 56 wasShown: function()
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 this._server.notifyViewShown(this._id); 96 this._server.notifyViewShown(this._id);
97 }, 97 },
98 98
99 willHide: function() 99 willHide: function()
100 { 100 {
101 this._server.notifyViewHidden(this._id); 101 this._server.notifyViewHidden(this._id);
102 }, 102 },
103 103
104 __proto__: WebInspector.VBox.prototype 104 __proto__: WebInspector.VBox.prototype
105 } 105 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/extensions/ExtensionServer.js ('k') | Source/devtools/front_end/layers/LayerDetailsView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698