| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 this._connectionEstablished(new WebInspector.ExternalWorkerConnectio
n(workerId)); | 247 this._connectionEstablished(new WebInspector.ExternalWorkerConnectio
n(workerId)); |
| 248 return; | 248 return; |
| 249 } | 249 } |
| 250 | 250 |
| 251 if (WebInspector.queryParam("ws")) { | 251 if (WebInspector.queryParam("ws")) { |
| 252 var ws = "ws://" + WebInspector.queryParam("ws"); | 252 var ws = "ws://" + WebInspector.queryParam("ws"); |
| 253 InspectorBackendClass.WebSocketConnection.Create(ws, this._connectio
nEstablished.bind(this)); | 253 InspectorBackendClass.WebSocketConnection.Create(ws, this._connectio
nEstablished.bind(this)); |
| 254 return; | 254 return; |
| 255 } | 255 } |
| 256 | 256 |
| 257 if (!InspectorFrontendHost.isStub()) { | 257 if (!InspectorFrontendHost.isHostedMode()) { |
| 258 this._connectionEstablished(new InspectorBackendClass.MainConnection
()); | 258 this._connectionEstablished(new InspectorBackendClass.MainConnection
()); |
| 259 return; | 259 return; |
| 260 } | 260 } |
| 261 | 261 |
| 262 this._connectionEstablished(new InspectorBackendClass.StubConnection()); | 262 this._connectionEstablished(new InspectorBackendClass.StubConnection()); |
| 263 }, | 263 }, |
| 264 | 264 |
| 265 /** | 265 /** |
| 266 * @param {!InspectorBackendClass.Connection} connection | 266 * @param {!InspectorBackendClass.Connection} connection |
| 267 */ | 267 */ |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 WebInspector.Main.ZoomInActionDelegate = function() | 717 WebInspector.Main.ZoomInActionDelegate = function() |
| 718 { | 718 { |
| 719 } | 719 } |
| 720 | 720 |
| 721 WebInspector.Main.ZoomInActionDelegate.prototype = { | 721 WebInspector.Main.ZoomInActionDelegate.prototype = { |
| 722 /** | 722 /** |
| 723 * @return {boolean} | 723 * @return {boolean} |
| 724 */ | 724 */ |
| 725 handleAction: function() | 725 handleAction: function() |
| 726 { | 726 { |
| 727 if (InspectorFrontendHost.isStub()) | 727 if (InspectorFrontendHost.isHostedMode()) |
| 728 return false; | 728 return false; |
| 729 | 729 |
| 730 InspectorFrontendHost.zoomIn(); | 730 InspectorFrontendHost.zoomIn(); |
| 731 return true; | 731 return true; |
| 732 } | 732 } |
| 733 } | 733 } |
| 734 | 734 |
| 735 /** | 735 /** |
| 736 * @constructor | 736 * @constructor |
| 737 * @implements {WebInspector.ActionDelegate} | 737 * @implements {WebInspector.ActionDelegate} |
| 738 */ | 738 */ |
| 739 WebInspector.Main.ZoomOutActionDelegate = function() | 739 WebInspector.Main.ZoomOutActionDelegate = function() |
| 740 { | 740 { |
| 741 } | 741 } |
| 742 | 742 |
| 743 WebInspector.Main.ZoomOutActionDelegate.prototype = { | 743 WebInspector.Main.ZoomOutActionDelegate.prototype = { |
| 744 /** | 744 /** |
| 745 * @return {boolean} | 745 * @return {boolean} |
| 746 */ | 746 */ |
| 747 handleAction: function() | 747 handleAction: function() |
| 748 { | 748 { |
| 749 if (InspectorFrontendHost.isStub()) | 749 if (InspectorFrontendHost.isHostedMode()) |
| 750 return false; | 750 return false; |
| 751 | 751 |
| 752 InspectorFrontendHost.zoomOut(); | 752 InspectorFrontendHost.zoomOut(); |
| 753 return true; | 753 return true; |
| 754 } | 754 } |
| 755 } | 755 } |
| 756 | 756 |
| 757 /** | 757 /** |
| 758 * @constructor | 758 * @constructor |
| 759 * @implements {WebInspector.ActionDelegate} | 759 * @implements {WebInspector.ActionDelegate} |
| 760 */ | 760 */ |
| 761 WebInspector.Main.ZoomResetActionDelegate = function() | 761 WebInspector.Main.ZoomResetActionDelegate = function() |
| 762 { | 762 { |
| 763 } | 763 } |
| 764 | 764 |
| 765 WebInspector.Main.ZoomResetActionDelegate.prototype = { | 765 WebInspector.Main.ZoomResetActionDelegate.prototype = { |
| 766 /** | 766 /** |
| 767 * @return {boolean} | 767 * @return {boolean} |
| 768 */ | 768 */ |
| 769 handleAction: function() | 769 handleAction: function() |
| 770 { | 770 { |
| 771 if (InspectorFrontendHost.isStub()) | 771 if (InspectorFrontendHost.isHostedMode()) |
| 772 return false; | 772 return false; |
| 773 | 773 |
| 774 InspectorFrontendHost.resetZoom(); | 774 InspectorFrontendHost.resetZoom(); |
| 775 return true; | 775 return true; |
| 776 } | 776 } |
| 777 } | 777 } |
| 778 | 778 |
| 779 /** | 779 /** |
| 780 * @constructor | 780 * @constructor |
| 781 * @extends {WebInspector.UISettingDelegate} | 781 * @extends {WebInspector.UISettingDelegate} |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 }, | 944 }, |
| 945 | 945 |
| 946 /** | 946 /** |
| 947 * @param {!WebInspector.Event} event | 947 * @param {!WebInspector.Event} event |
| 948 */ | 948 */ |
| 949 _inspectNode: function(event) | 949 _inspectNode: function(event) |
| 950 { | 950 { |
| 951 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); | 951 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); |
| 952 } | 952 } |
| 953 } | 953 } |
| OLD | NEW |