OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 __proto__: WebInspector.VBox.prototype | 427 __proto__: WebInspector.VBox.prototype |
428 }; | 428 }; |
429 | 429 |
430 /** | 430 /** |
431 * @type {!WebInspector.InspectorView} | 431 * @type {!WebInspector.InspectorView} |
432 */ | 432 */ |
433 WebInspector.inspectorView; | 433 WebInspector.inspectorView; |
434 | 434 |
435 /** | 435 /** |
436 * @constructor | 436 * @constructor |
| 437 * @implements {WebInspector.ActionDelegate} |
| 438 */ |
| 439 WebInspector.InspectorView.DrawerToggleActionDelegate = function() |
| 440 { |
| 441 } |
| 442 |
| 443 WebInspector.InspectorView.DrawerToggleActionDelegate.prototype = { |
| 444 /** |
| 445 * @return {boolean} |
| 446 */ |
| 447 handleAction: function() |
| 448 { |
| 449 if (WebInspector.inspectorView.drawerVisible()) { |
| 450 WebInspector.inspectorView.closeDrawer(); |
| 451 return true; |
| 452 } |
| 453 if (!WebInspector.experimentsSettings.doNotOpenDrawerOnEsc.isEnabled())
{ |
| 454 WebInspector.inspectorView.showDrawer(); |
| 455 return true; |
| 456 } |
| 457 return false; |
| 458 } |
| 459 } |
| 460 |
| 461 /** |
| 462 * @constructor |
437 * @extends {WebInspector.VBox} | 463 * @extends {WebInspector.VBox} |
438 */ | 464 */ |
439 WebInspector.RootView = function() | 465 WebInspector.RootView = function() |
440 { | 466 { |
441 WebInspector.VBox.call(this); | 467 WebInspector.VBox.call(this); |
442 this.markAsRoot(); | 468 this.markAsRoot(); |
443 this.element.classList.add("fill", "root-view"); | 469 this.element.classList.add("fill", "root-view"); |
444 this.element.setAttribute("spellcheck", false); | 470 this.element.setAttribute("spellcheck", false); |
445 window.addEventListener("resize", this.doResize.bind(this), true); | 471 window.addEventListener("resize", this.doResize.bind(this), true); |
446 }; | 472 }; |
447 | 473 |
448 WebInspector.RootView.prototype = { | 474 WebInspector.RootView.prototype = { |
449 __proto__: WebInspector.VBox.prototype | 475 __proto__: WebInspector.VBox.prototype |
450 }; | 476 }; |
OLD | NEW |