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

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

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 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
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 28 matching lines...) Expand all
39 * @param {!Event} event 39 * @param {!Event} event
40 */ 40 */
41 function stopEventPropagation(event) 41 function stopEventPropagation(event)
42 { 42 {
43 // Let browser handle Ctrl+/Ctrl- shortcuts in hosted mode. 43 // Let browser handle Ctrl+/Ctrl- shortcuts in hosted mode.
44 var zoomModifier = WebInspector.isMac() ? event.metaKey : event.ctrlKey; 44 var zoomModifier = WebInspector.isMac() ? event.metaKey : event.ctrlKey;
45 if (zoomModifier && (event.keyCode === 187 || event.keyCode === 189)) 45 if (zoomModifier && (event.keyCode === 187 || event.keyCode === 189))
46 event.stopPropagation(); 46 event.stopPropagation();
47 } 47 }
48 document.addEventListener("keydown", stopEventPropagation, true); 48 document.addEventListener("keydown", stopEventPropagation, true);
49 } 49 };
50 50
51 WebInspector.InspectorFrontendHostStub.prototype = { 51 WebInspector.InspectorFrontendHostStub.prototype = {
52 /** 52 /**
53 * @override 53 * @override
54 * @return {string} 54 * @return {string}
55 */ 55 */
56 getSelectionBackgroundColor: function() 56 getSelectionBackgroundColor: function()
57 { 57 {
58 return "#6e86ff"; 58 return "#6e86ff";
59 }, 59 },
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 }, 551 },
552 552
553 /** 553 /**
554 * @param {number} id 554 * @param {number} id
555 * @param {string} chunk 555 * @param {string} chunk
556 */ 556 */
557 streamWrite: function(id, chunk) 557 streamWrite: function(id, chunk)
558 { 558 {
559 WebInspector.ResourceLoader.streamWrite(id, chunk); 559 WebInspector.ResourceLoader.streamWrite(id, chunk);
560 } 560 }
561 } 561 };
562 562
563 // FIXME: This file is included into both apps, since the devtools_app needs the InspectorFrontendHostAPI only, 563 // FIXME: This file is included into both apps, since the devtools_app needs the InspectorFrontendHostAPI only,
564 // so the host instance should not initialized there. 564 // so the host instance should not initialized there.
565 initializeInspectorFrontendHost(); 565 initializeInspectorFrontendHost();
566 window.InspectorFrontendAPI = new InspectorFrontendAPIImpl(); 566 window.InspectorFrontendAPI = new InspectorFrontendAPIImpl();
567 WebInspector.setLocalizationPlatform(InspectorFrontendHost.platform()); 567 WebInspector.setLocalizationPlatform(InspectorFrontendHost.platform());
568 })(); 568 })();
569 569
570 /** 570 /**
571 * @type {!WebInspector.EventTarget} 571 * @type {!WebInspector.EventTarget}
572 */ 572 */
573 InspectorFrontendHost.events; 573 InspectorFrontendHost.events;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698