<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>30227</bug_id>
          
          <creation_ts>2009-10-08 11:42:49 -0700</creation_ts>
          <short_desc>Adding drag/drop support to TreeOutline</short_desc>
          <delta_ts>2014-12-09 10:46:42 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Patrick Mueller">pmuellr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aroben</cc>
    
    <cc>burg</cc>
    
    <cc>joepeck</cc>
    
    <cc>kmccullough</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>153459</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Mueller">pmuellr</who>
    <bug_when>2009-10-08 11:42:49 -0700</bug_when>
    <thetext>I&apos;m adding some drag/drop capability for Bug 30079, which ends up needing to be able to drag TreeOutline elements.  Ideally, you could add drag listeners on a tree container, and then the listener applies to the children as well.  More efficient than having to add drag listeners to each child.  This doesn&apos;t seem to be easy to do (adding a listener to the parent), for various reasons, in the current code path.  It would be much easier if TreeOutline had built-in support for this.

Additionally, because so much of the Web Inspector UI is built with TreeOutline, enabling some of the drag/drop behavior in TreeOutline itself seems like it should make it easier to make a LOT of stuff more easily drag- and drop-able.

What I&apos;d like to do first is collect some use cases for things we want to drag/drop support for, that exist today in a TreeOutline.  We can then figure out what kind of shape we want the API to be.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153468</commentid>
    <comment_count>1</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2009-10-08 12:08:18 -0700</bug_when>
    <thetext>I&apos;m not 100% if these are all tree outlines.

Elements Tree Hierarchy:
- Reordering / Moving Nodes
- Holding down the option (⌥) and dragging could clone a Node.

Elements Sidebar Panes:
- Reorder Panels and Store in a Preference to Customize the UI a little

EventListeners Sidebar Pane:
- Reorder Listeners in the Event Flow
- Drag a Listener onto an Element in the Tree Hierarchy to copy the listener to that node.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153528</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick Mueller">pmuellr</who>
    <bug_when>2009-10-08 14:05:38 -0700</bug_when>
    <thetext>Elements Tree Hierarchy (addition to items above)
- gesture to delete a node by dragging it offscreen - actually not sure we can do that, maybe we need a valid drop target?  hmmm ... a trashcan?

- Breakpoints - move, delete, copy

- formatted &apos;text&apos; like Elements Tree Hierarchy, JavaScript Source, Console; should be able to drag out to a text editor - supporting formatted (html) and plain text

- number-y things like resource graphs, profiler tables - drag out as plain text, html, and csv.

- drag Call Stack as plain text or html &lt;ol&gt;, probably want to also include Scope Variables there as well.

- various tables in Storage pane - export as plain text, html, csv

The previous note on using option (⌥) dragging seems to imply we should have some app-wide modifier keys / extended action definitions.  ctrl- means copy, shirt- means something else, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156402</commentid>
    <comment_count>3</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2009-10-20 22:15:11 -0700</bug_when>
    <thetext>- Drag a CSS Selector of a classname onto a node to apply that class to that node:
https://bugs.webkit.org/show_bug.cgi?id=16529#c2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1053855</commentid>
    <comment_count>4</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2014-12-09 10:46:42 -0800</bug_when>
    <thetext>TreeOutline (at least for the DOM tree) is draggable. We need to file smaller separate bugs for specific DND interactions.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>