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

Side by Side Diff: Source/devtools/front_end/host/InspectorFrontendHost.js

Issue 710033003: [DevTools] Extract part of DevTools into inspector app. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 return true; 621 return true;
622 } 622 }
623 }; 623 };
624 624
625 /** 625 /**
626 * @type {!InspectorFrontendHostAPI} 626 * @type {!InspectorFrontendHostAPI}
627 */ 627 */
628 var InspectorFrontendHost = window.InspectorFrontendHost || null; 628 var InspectorFrontendHost = window.InspectorFrontendHost || null;
629 629
630 (function() { 630 (function() {
631 if (window.top) {
632 // FIXME(dgozman): use InspectorAppHost everywhere in inspector app inst ead of InspectorFrontendHost.
633 InspectorFrontendHost = window.top.InspectorFrontendHost || null;
634 }
631 if (!InspectorFrontendHost) { 635 if (!InspectorFrontendHost) {
632 // Instantiate stub for web-hosted mode if necessary. 636 // Instantiate stub for web-hosted mode if necessary.
633 InspectorFrontendHost = new WebInspector.InspectorFrontendHostStub(); 637 InspectorFrontendHost = new WebInspector.InspectorFrontendHostStub();
634 } else { 638 } else {
635 // Otherwise add stubs for missing methods that are declared in the inte rface. 639 // Otherwise add stubs for missing methods that are declared in the inte rface.
636 var proto = WebInspector.InspectorFrontendHostStub.prototype; 640 var proto = WebInspector.InspectorFrontendHostStub.prototype;
637 for (var name in proto) { 641 for (var name in proto) {
638 var value = proto[name]; 642 var value = proto[name];
639 if (typeof value !== "function" || InspectorFrontendHost[name]) 643 if (typeof value !== "function" || InspectorFrontendHost[name])
640 continue; 644 continue;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 * @param {number} id 706 * @param {number} id
703 * @param {?string} error 707 * @param {?string} error
704 */ 708 */
705 embedderMessageAck: function(id, error) 709 embedderMessageAck: function(id, error)
706 { 710 {
707 InspectorFrontendHost["embedderMessageAck"](id, error); 711 InspectorFrontendHost["embedderMessageAck"](id, error);
708 } 712 }
709 } 713 }
710 714
711 var InspectorFrontendAPI = new InspectorFrontendAPIImpl(); 715 var InspectorFrontendAPI = new InspectorFrontendAPIImpl();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698