home *** CD-ROM | disk | FTP | other *** search
/ Computer Active Guide 2009 July / CAG7.ISO / Internetas / SafariSetup.exe / AppleApplicationSupport.msi / WebKit.resources_inspector_InspectorBackendStub.js < prev    next >
Encoding:
Text File  |  2010-06-03  |  5.2 KB  |  268 lines

  1. /*
  2.  * Copyright (C) 2009 Google Inc. All rights reserved.
  3.  *
  4.  * Redistribution and use in source and binary forms, with or without
  5.  * modification, are permitted provided that the following conditions are
  6.  * met:
  7.  *
  8.  *     * Redistributions of source code must retain the above copyright
  9.  * notice, this list of conditions and the following disclaimer.
  10.  *     * Redistributions in binary form must reproduce the above
  11.  * copyright notice, this list of conditions and the following disclaimer
  12.  * in the documentation and/or other materials provided with the
  13.  * distribution.
  14.  *     * Neither the name of Google Inc. nor the names of its
  15.  * contributors may be used to endorse or promote products derived from
  16.  * this software without specific prior written permission.
  17.  *
  18.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  19.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  21.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  22.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  24.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  25.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  26.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29.  */
  30.  
  31. if (!window.InspectorBackend) {
  32.  
  33. WebInspector.InspectorBackendStub = function()
  34. {
  35.     this._searchingForNode = false;
  36.     this._attachedWindowHeight = 0;
  37.     this._timelineEnabled = false;
  38. }
  39.  
  40. WebInspector.InspectorBackendStub.prototype = {
  41.     wrapCallback: function(func)
  42.     {
  43.         return func;
  44.     },
  45.  
  46.     closeWindow: function()
  47.     {
  48.         this._windowVisible = false;
  49.     },
  50.  
  51.     attach: function()
  52.     {
  53.     },
  54.  
  55.     detach: function()
  56.     {
  57.     },
  58.  
  59.     storeLastActivePanel: function(panel)
  60.     {
  61.     },
  62.  
  63.     clearMessages: function()
  64.     {
  65.     },
  66.  
  67.     searchingForNode: function()
  68.     {
  69.         return this._searchingForNode;
  70.     },
  71.  
  72.     search: function(sourceRow, query)
  73.     {
  74.     },
  75.  
  76.     toggleNodeSearch: function()
  77.     {
  78.         this._searchingForNode = !this._searchingForNode;
  79.     },
  80.  
  81.     setAttachedWindowHeight: function(height)
  82.     {
  83.     },
  84.  
  85.     moveByUnrestricted: function(x, y)
  86.     {
  87.     },
  88.  
  89.     getResourceContent: function(callId, identifier)
  90.     {
  91.         WebInspector.didGetResourceContent(callId, "");
  92.     },
  93.  
  94.     highlightDOMNode: function(node)
  95.     {
  96.     },
  97.  
  98.     hideDOMNodeHighlight: function()
  99.     {
  100.     },
  101.  
  102.     inspectedWindow: function()
  103.     {
  104.         return window;
  105.     },
  106.  
  107.     loaded: function()
  108.     {
  109.     },
  110.  
  111.     localizedStringsURL: function()
  112.     {
  113.         return undefined;
  114.     },
  115.  
  116.     windowUnloading: function()
  117.     {
  118.         return false;
  119.     },
  120.  
  121.     hiddenPanels: function()
  122.     {
  123.         return "";
  124.     },
  125.  
  126.     enableResourceTracking: function()
  127.     {
  128.         WebInspector.resourceTrackingWasEnabled();
  129.     },
  130.  
  131.     disableResourceTracking: function()
  132.     {
  133.         WebInspector.resourceTrackingWasDisabled();
  134.     },
  135.  
  136.  
  137.     enableSearchingForNode: function()
  138.     {
  139.         WebInspector.searchingForNodeWasEnabled();
  140.     },
  141.  
  142.     disableSearchingForNode: function()
  143.     {
  144.         WebInspector.searchingForNodeWasDisabled();
  145.     },
  146.  
  147.     reloadPage: function()
  148.     {
  149.     },
  150.  
  151.     enableDebugger: function()
  152.     {
  153.         WebInspector.debuggerWasEnabled();
  154.     },
  155.  
  156.     disableDebugger: function()
  157.     {
  158.         WebInspector.debuggerWasDisabled();
  159.     },
  160.  
  161.     setBreakpoint: function(sourceID, line, enabled, condition)
  162.     {
  163.     },
  164.  
  165.     removeBreakpoint: function(sourceID, line)
  166.     {
  167.     },
  168.  
  169.     activateBreakpoints: function()
  170.     {
  171.         this._breakpointsActivated = true;
  172.     },
  173.  
  174.     deactivateBreakpoints: function()
  175.     {
  176.         this._breakpointsActivated = false;
  177.     },
  178.  
  179.     pauseInDebugger: function()
  180.     {
  181.     },
  182.  
  183.     setPauseOnExceptionsState: function(value)
  184.     {
  185.         WebInspector.updatePauseOnExceptionsState(value);
  186.     },
  187.  
  188.     resumeDebugger: function()
  189.     {
  190.     },
  191.  
  192.     enableProfiler: function()
  193.     {
  194.         WebInspector.profilerWasEnabled();
  195.     },
  196.  
  197.     disableProfiler: function()
  198.     {
  199.         WebInspector.profilerWasDisabled();
  200.     },
  201.  
  202.     startProfiling: function()
  203.     {
  204.     },
  205.  
  206.     stopProfiling: function()
  207.     {
  208.     },
  209.  
  210.     getProfileHeaders: function(callId)
  211.     {
  212.         WebInspector.didGetProfileHeaders(callId, []);
  213.     },
  214.  
  215.     getProfile: function(callId, uid)
  216.     {
  217.     },
  218.  
  219.     takeHeapSnapshot: function()
  220.     {
  221.     },
  222.  
  223.     databaseTableNames: function(database)
  224.     {
  225.         return [];
  226.     },
  227.  
  228.     stepIntoStatementInDebugger: function()
  229.     {
  230.     },
  231.  
  232.     stepOutOfFunctionInDebugger: function()
  233.     {
  234.     },
  235.  
  236.     stepOverStatementInDebugger: function()
  237.     {
  238.     },
  239.  
  240.     saveFrontendSettings: function()
  241.     {
  242.     },
  243.  
  244.     dispatchOnInjectedScript: function()
  245.     {
  246.     },
  247.  
  248.     releaseWrapperObjectGroup: function()
  249.     {
  250.     },
  251.  
  252.     setInjectedScriptSource: function()
  253.     {
  254.     },
  255.     
  256.     addScriptToEvaluateOnLoad: function()
  257.     {
  258.     },
  259.  
  260.     removeAllScriptsToEvaluateOnLoad: function()
  261.     {
  262.     }
  263. }
  264.  
  265. InspectorBackend = new WebInspector.InspectorBackendStub();
  266.  
  267. }
  268.