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

Unified Diff: Source/devtools/front_end/SourcesPanel.js

Issue 210243005: DevTools: polish Mac UI (borders, alignment, line heights, images). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/BreakpointsSidebarPane.js ('k') | Source/devtools/front_end/breakpointsList.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/SourcesPanel.js
diff --git a/Source/devtools/front_end/SourcesPanel.js b/Source/devtools/front_end/SourcesPanel.js
index 96baff84aeb313541221bc29adb94293079b0df6..da3e4154225ef9b2152c5456b5066d22f66c454f 100644
--- a/Source/devtools/front_end/SourcesPanel.js
+++ b/Source/devtools/front_end/SourcesPanel.js
@@ -1075,8 +1075,8 @@ WebInspector.SourcesPanel.prototype = {
*/
WebInspector.UpgradeFileSystemDropTarget = function(element)
{
- element.addEventListener("dragenter", this._onDragEnter.bind(this), false);
- element.addEventListener("dragover", this._onDragOver.bind(this), false);
+ element.addEventListener("dragenter", this._onDragEnter.bind(this), true);
+ element.addEventListener("dragover", this._onDragOver.bind(this), true);
this._element = element;
}
@@ -1094,13 +1094,14 @@ WebInspector.UpgradeFileSystemDropTarget.prototype = {
{
if (event.dataTransfer.types.indexOf(WebInspector.UpgradeFileSystemDropTarget.dragAndDropFilesType) === -1)
return;
+ event.dataTransfer.dropEffect = "copy";
event.consume(true);
if (this._dragMaskElement)
return;
this._dragMaskElement = this._element.createChild("div", "fill drag-mask");
this._dragMaskElement.createChild("div", "fill drag-mask-inner").textContent = WebInspector.UIString("Drop workspace folder here");
- this._dragMaskElement.addEventListener("drop", this._onDrop.bind(this), false);
- this._dragMaskElement.addEventListener("dragleave", this._onDragLeave.bind(this), false);
+ this._dragMaskElement.addEventListener("drop", this._onDrop.bind(this), true);
+ this._dragMaskElement.addEventListener("dragleave", this._onDragLeave.bind(this), true);
},
_onDrop: function (event)
« no previous file with comments | « Source/devtools/front_end/BreakpointsSidebarPane.js ('k') | Source/devtools/front_end/breakpointsList.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698