OLD | NEW |
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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 // FIXME: adapt this to multiple targets. | 800 // FIXME: adapt this to multiple targets. |
801 if (target === this._target) | 801 if (target === this._target) |
802 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTr
eeModel.EventTypes.MainFrameNavigated, this._onMainFrameNavigated, this); | 802 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTr
eeModel.EventTypes.MainFrameNavigated, this._onMainFrameNavigated, this); |
803 }, | 803 }, |
804 | 804 |
805 /** | 805 /** |
806 * @return {boolean} | 806 * @return {boolean} |
807 */ | 807 */ |
808 hasTouchInputs: function() | 808 hasTouchInputs: function() |
809 { | 809 { |
810 return !!this._target && this._target.hasTouchInputs; | 810 return !!this._target && this._target.hasCapability(WebInspector.Target.
Capabilities.hasTouchInputs); |
811 }, | 811 }, |
812 | 812 |
813 /** | 813 /** |
814 * @return {boolean} | 814 * @return {boolean} |
815 */ | 815 */ |
816 networkThroughputIsLimited: function() | 816 networkThroughputIsLimited: function() |
817 { | 817 { |
818 var conditions = this.settings.networkConditions.get(); | 818 var conditions = this.settings.networkConditions.get(); |
819 return conditions.throughput !== WebInspector.OverridesSupport.NetworkTh
roughputUnlimitedValue; | 819 return conditions.throughput !== WebInspector.OverridesSupport.NetworkTh
roughputUnlimitedValue; |
820 }, | 820 }, |
821 | 821 |
822 reveal: function() | 822 reveal: function() |
823 { | 823 { |
824 WebInspector.Revealer.reveal(this); | 824 WebInspector.Revealer.reveal(this); |
825 }, | 825 }, |
826 | 826 |
827 __proto__: WebInspector.Object.prototype | 827 __proto__: WebInspector.Object.prototype |
828 } | 828 } |
829 | 829 |
830 | 830 |
831 /** | 831 /** |
832 * @type {!WebInspector.OverridesSupport} | 832 * @type {!WebInspector.OverridesSupport} |
833 */ | 833 */ |
834 WebInspector.overridesSupport; | 834 WebInspector.overridesSupport; |
OLD | NEW |