summaryrefslogtreecommitdiffstats
path: root/ash/drag_drop
Commit message (Collapse)AuthorAgeFilesLines
* Revert r135533.thakis@chromium.org2012-05-081-1/+1
| | | | | | | | | | | | It broke all content_unittests on mac in debug builds. BUG=121135,126558 TEST=no stack dumps in content_unittests output on mac debug builds TBR=varunjain Review URL: https://chromiumcodereview.appspot.com/10386020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135796 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Move compositor/ directory out of gfx/, up to ui/.tfarina@chromium.org2012-05-052-4/+4
| | | | | | | | | | BUG=104040 R=piman@chromium.org,ben@chromium.org TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10365007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135560 0039d316-1c4b-4281-b951-d872f2087c98
* Aura: Adds custom cursors for drag and drop.varunjain@chromium.org2012-05-051-1/+1
| | | | | | | | | | | | | BUG=121135 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=135378 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135426 Review URL: http://codereview.chromium.org/10316019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135533 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 135426 - Aura: Adds custom cursors for drag and drop.rvargas@google.com2012-05-041-1/+1
| | | | | | | | | | | | | | | | http://build.chromium.org/p/chromium.chromiumos/buildstatus?builder=Linux%20ChromiumOS%20Tests%20%281%29&number=2883 BUG=121135 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=135378 Review URL: http://codereview.chromium.org/10316019 TBR=varunjain@chromium.org Review URL: https://chromiumcodereview.appspot.com/10375016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135444 0039d316-1c4b-4281-b951-d872f2087c98
* Aura: Adds custom cursors for drag and drop.varunjain@chromium.org2012-05-041-1/+1
| | | | | | | | | | | BUG=121135 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=135378 Review URL: http://codereview.chromium.org/10316019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135426 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 135378 - Aura: Adds custom cursors for drag and drop.varunjain@chromium.org2012-05-041-1/+1
| | | | | | | | | | | | BUG=121135 TEST=none Review URL: https://chromiumcodereview.appspot.com/10316019 TBR=varunjain@chromium.org Review URL: https://chromiumcodereview.appspot.com/10382016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135381 0039d316-1c4b-4281-b951-d872f2087c98
* Aura: Adds custom cursors for drag and drop.varunjain@chromium.org2012-05-041-1/+1
| | | | | | | | | BUG=121135 TEST=none Review URL: https://chromiumcodereview.appspot.com/10316019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135378 0039d316-1c4b-4281-b951-d872f2087c98
* Properly set drag image offset in aura's drag drop controller. Currently thevarunjain@chromium.org2012-04-102-4/+5
| | | | | | | | | | | | drag image is always positioned at the mouse cursor. BUG=118024 TEST=none Review URL: http://codereview.chromium.org/10044002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131648 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Use TYPE_WINDOW_FRAMELESS for drag widget.reveman@chromium.org2012-04-051-2/+2
| | | | | | | | | | | | | Removes the shadow artifact from drag widgets and makes them match the apperance on MacOSX and Linux. BUG=118022 TEST=manual Review URL: http://codereview.chromium.org/9963137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131022 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Fix a couple of drag/drop related issues:varunjain@chromium.org2012-04-051-6/+11
| | | | | | | | | | | | | 1. NativeTabContentsViewAura can get destroyed after starting a DnD but before completing it. 2. In DragDropController, handle DragCancel more robustly. BUG=121800 TEST=manual Review URL: https://chromiumcodereview.appspot.com/9960023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130780 0039d316-1c4b-4281-b951-d872f2087c98
* aura-x11: Add custom web cursor support.sadrul@chromium.org2012-04-031-3/+3
| | | | | | | | | BUG=102562 TEST=manually (using sites that use custom cursor, e.g.: http://beradrian.users.sourceforge.net/articles/cursor.html) Review URL: https://chromiumcodereview.appspot.com/9463003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130456 0039d316-1c4b-4281-b951-d872f2087c98
* Makes the launcher use a layer with a solid color, which is cheapersky@chromium.org2012-03-231-0/+1
| | | | | | | | | | | | than a textured layer. BUG=119581 TEST=none R=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/9835028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128500 0039d316-1c4b-4281-b951-d872f2087c98
* Don't clobber the clipboard when doing DnD on Aurarbyers@chromium.org2012-03-202-10/+8
| | | | | | | | | BUG=118835 TEST=Do paste after DnD of text, verify original clipboard contents unmodified Review URL: https://chromiumcodereview.appspot.com/9726001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127722 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 125850 - Aura: Throttle resize to ability to drawbacker@chromium.org2012-03-121-0/+22
| | | | | | | | | | | | | At the root_window.cc level we defer mouse events triggering a resize while a draw is pending. We are careful to keep the sequence of different event types the same. But we aggregate synthetic mouse moves and mouse drags wwhere possible. In RWHVA, we ask the root window to throttle the resize if we are waiting on the GPU process for a new image. The net result is that UI can only be one frame ahead of the tab contents that are being resized. BUG=58782 TEST=goto google.com with --force-compositing-mode; resize the window by stretching to the right; see very little gap between tab contents and window frame Review URL: https://chromiumcodereview.appspot.com/9662020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126132 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Fix crash in DragDropController::Drop when user does a drop immediatelyvarunjain@chromium.org2012-03-063-24/+66
| | | | | | | | | | | | after starting a drag. BUG=114242 TEST=added new test. Review URL: http://codereview.chromium.org/9613001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125113 0039d316-1c4b-4281-b951-d872f2087c98
* Migrate client API setters/getters to take a RootWindow.ben@chromium.org2012-02-262-3/+4
| | | | | | | | | http://crbug.com/112131 TEST=none TBR=sky Review URL: https://chromiumcodereview.appspot.com/9455081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123690 0039d316-1c4b-4281-b951-d872f2087c98
* Change how you get to the MessageLoop::Dispatcher.ben@chromium.org2012-02-231-1/+2
| | | | | | | | | | | | Previously, you would ask the RootWindow (a singleton) for its dispatcher, which was conveniently the RootWindowHost. Now that we are moving towards many RootWindows, you must ask the new singleton, aura::Env, instead. This CL also implements a dispatcher for windows. It does not implement the Linux one since that's much larger and I'll do that in a followon CL. I just wanted to change the API. Note there is some transitional ugliness. http://crbug.com/112131 TEST=existing Review URL: https://chromiumcodereview.appspot.com/9433072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123268 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Allow dragging using touch/gesture events.sadrul@chromium.org2012-02-223-18/+38
| | | | | | | | | | | This is the first step towards making it possible to drag with touch/gesture events. There will be subsequent CLs to make sure the correct touch-id is used for dragging, and update the drag-image position to be slightly above the touch-point so that it doesn't get obscured by the touch-finger. BUG=114752 TEST=mouse-event dragging should be covered by existing tests. Tests for touch-events will be added in subsequent CLs. Review URL: https://chromiumcodereview.appspot.com/9418043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122982 0039d316-1c4b-4281-b951-d872f2087c98
* Have ScopedClipboardWriter and Clipboard::WriteObjects take a buffer parameter.peter@pcc.me.uk2012-02-221-1/+1
| | | | | | | | | | | | GTK: add support for writing to primary selection (BUFFER_SELECTION). BUG=none TEST=ui_unittests TBR=ananta Review URL: http://codereview.chromium.org/9232075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122972 0039d316-1c4b-4281-b951-d872f2087c98
* Change EventGenerator to take a RootWindow at construction instead of just ↵ben@chromium.org2012-02-211-7/+12
| | | | | | | | | | | assuming one via RootWindow::GetInstance(). http://crbug.com/112131 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=122716 Review URL: https://chromiumcodereview.appspot.com/9421016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122829 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r122716 and r122717maruel@chromium.org2012-02-191-12/+7
| | | | | | | | | | | | | | | | r122716 "Change EventGenerator to take a RootWindow at construction instead of just assuming one via RootWindow::GetInstance()." r122717 "Fix build bustage. These two files were left out of my last CL due to permission issues." Broke compile on Win. Current Mac compile failure is older and will be fixed in a follow up CL. TBR=ben@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/9424026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122721 0039d316-1c4b-4281-b951-d872f2087c98
* Change EventGenerator to take a RootWindow at construction instead of just ↵ben@chromium.org2012-02-191-7/+12
| | | | | | | | | | assuming one via RootWindow::GetInstance(). http://crbug.com/112131 TEST=none Review URL: https://chromiumcodereview.appspot.com/9421016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122716 0039d316-1c4b-4281-b951-d872f2087c98
* A bevy of Aura test changes:ben@chromium.org2012-02-171-5/+5
| | | | | | | | | | | | - renames aura_shell_test_base to ash_test_base - AshTestBase no longer subclasses AuraTestBase, instead now it and AuraTestBase both own a helper that does common initialization. This is necessary because in subsequent changes ash::Shell will be responsible for creating and owning its own RootWindow, whereas Aura code could have N RootWindows. - Makes ScreenAura take a RootWindow instead of using RootWindow::GetInstance() http://crbug.com/112131 TEST=none Review URL: https://chromiumcodereview.appspot.com/9425015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122597 0039d316-1c4b-4281-b951-d872f2087c98
* Provide a RootWindow instance getter on the shell, in preparation for ↵ben@chromium.org2012-02-172-11/+12
| | | | | | | | | | removing RootWindow::GetInstance(). http://crbug.com/112131 TEST=compiles Review URL: https://chromiumcodereview.appspot.com/9395038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122561 0039d316-1c4b-4281-b951-d872f2087c98
* * Widget with WIDGET_OWNS_NATIVE_WIDGET has to be deleted explicitly.oshima@chromium.org2012-02-071-6/+6
| | | | | | | | | | | | * Delegate needs to be deleted but window has to be deleted prior to it. * a few minor leak fixes. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9350013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120856 0039d316-1c4b-4281-b951-d872f2087c98
* aura: This CL fixes a bunch of issues:varunjain@chromium.org2012-02-033-5/+114
| | | | | | | | | | | | | | | | | 1. NWA should supply the right value for drag_operation to DropHelper. 2. The target window could be destroyed during a drag/drop session. DragDropController should listen to such event and update its state. 3. The RootWindow might send some synthetic mouse events to the DragDropController during a drag/drop session. The controller should ignore these events. BUG=110495 TEST=manual Review URL: http://codereview.chromium.org/9307041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120358 0039d316-1c4b-4281-b951-d872f2087c98
* Disable animations during aura tests.vollick@google.com2012-02-022-23/+12
| | | | | | | | | | | | | | | | | This causes all animations scheduled during a test to complete immediately. After making this change, I noticed some code assumed that animations would not complete synchronously. Some of this code used animation observers, and I while fixing the code I have updated it to use the preferred ImplicitAnimationObserver. BUG=None TEST=aura_shell_unittests,aura_unittests,compositor_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120074 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120092 Review URL: https://chromiumcodereview.appspot.com/9222018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120147 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 120092 - Reland 120074 -- Disable animations during aura tests.vollick@google.com2012-02-012-12/+23
| | | | | | | | | | | | | | | | | | This causes all animations scheduled during a test to complete immediately. After making this change, I noticed some code assumed that animations would not complete synchronously. Some of this code used animation observers, and I while fixing the code I have updated it to use the preferred ImplicitAnimationObserver. BUG=None TEST=aura_shell_unittests,aura_unittests,compositor_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120074 Review URL: https://chromiumcodereview.appspot.com/9222018 TBR=vollick@google.com Review URL: https://chromiumcodereview.appspot.com/9320018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120097 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 120074 -- Disable animations during aura tests.vollick@google.com2012-02-012-23/+12
| | | | | | | | | | | | | | | This causes all animations scheduled during a test to complete immediately. After making this change, I noticed some code assumed that animations would not complete synchronously. Some of this code used animation observers, and I while fixing the code I have updated it to use the preferred ImplicitAnimationObserver. BUG=None TEST=aura_shell_unittests,aura_unittests,compositor_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120074 Review URL: https://chromiumcodereview.appspot.com/9222018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120092 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 120074 - Disable animations during aura tests.vollick@google.com2012-02-012-12/+23
| | | | | | | | | | | | | | | | This causes all animations scheduled during a test to complete immediately. After making this change, I noticed some code assumed that animations would not complete synchronously. Some of this code used animation observers, and I while fixing the code I have updated it to use the preferred ImplicitAnimationObserver. BUG=None TEST=aura_shell_unittests,aura_unittests,compositor_unittests Review URL: https://chromiumcodereview.appspot.com/9222018 TBR=vollick@google.com Review URL: https://chromiumcodereview.appspot.com/9316039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120075 0039d316-1c4b-4281-b951-d872f2087c98
* Disable animations during aura tests.vollick@google.com2012-02-012-23/+12
| | | | | | | | | | | | | This causes all animations scheduled during a test to complete immediately. After making this change, I noticed some code assumed that animations would not complete synchronously. Some of this code used animation observers, and I while fixing the code I have updated it to use the preferred ImplicitAnimationObserver. BUG=None TEST=aura_shell_unittests,aura_unittests,compositor_unittests Review URL: https://chromiumcodereview.appspot.com/9222018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120074 0039d316-1c4b-4281-b951-d872f2087c98
* Remove Owner param to EventFilter's ctor.ben@chromium.org2012-01-311-2/+1
| | | | | | | | BUG=none TEST=existing unittests Review URL: https://chromiumcodereview.appspot.com/9315004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119954 0039d316-1c4b-4281-b951-d872f2087c98
* Notify RenderViewHost of drag cancelpkotwicz@chromium.org2012-01-281-0/+4
| | | | | | | | | | | | | Test: 1) drag bookmark 2) Hit Alt-Tab, or Ctrl-Atl-Right BUG=None TEST=Manual Review URL: https://chromiumcodereview.appspot.com/9234079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119581 0039d316-1c4b-4281-b951-d872f2087c98
* Use translated root location in WebInputEventoshima@chromium.org2012-01-262-63/+35
| | | | | | | | | | | | This adds root_location to LocatedEvent Converted a couple of tests to use EventGenerator. BUG=none TEST=added TranslatedEvent test to window_unittests. Review URL: http://codereview.chromium.org/9117018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119169 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a couple of drag drop bugs:varunjain@chromium.org2012-01-201-1/+4
| | | | | | | | | | | | | | | 1. When dragging over BrowserRootView, we must sanitize the dragged string before querying Autocomplete. 2. We may receive un-expected events during drag drop session if the user moves out of the root window. BUG=110733 TEST=chrome no longer crashes on drag drop. Review URL: http://codereview.chromium.org/9270001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118470 0039d316-1c4b-4281-b951-d872f2087c98
* Aura Shell needs to exist on Macdhollowa@chromium.org2012-01-191-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds first cut at "Aura Shell.app" on Mac. The 'ash_shell' is extended to generate a Cocoa application. This application brings up a single window containing the Aura desktop. The main view of this window provides an accelerated surface to Aura in which it can composite and draw its results. What works: - The application launches and renders the Aura desktop and background - Mouse movement, clicking, double-clicking, and interactions with Aura windows and widgets - Text buttons render with Skia text (needs improvement) - Non-modal transient window button - Window-modal window button - System-modal window button - Example Widgets button (checkboxes, radios, buttons) - Lock Screen button - Create Non-Resizable window button - Create Pointy Bubble button - Create Widow button - Switcher and Taskbar What doesn't work: - Open Views Examples Window button - Views menus - Views scrollbars - Views accelerators - Views tooltips - Drag and drop - Anything involving MessageLoop dispatcher logic - Mouse movement doesn't pass through to Aura when mouse button is up Note: Required .gyp flags are: 'use_aura': 1, 'use_webkit_compositor': 1, BUG=109946 TEST=Manual tests. R=sky@chromium.org, thakis@chromium.org Review URL: https://chromiumcodereview.appspot.com/9232028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118222 0039d316-1c4b-4281-b951-d872f2087c98
* Make it simpler to detect when implicit animations complete.vollick@google.com2012-01-181-1/+2
| | | | | | | | | | | The ScopedSettings destructor should only remove the temporary observers from the animator, not the sequences. Added an ImplicitAnimationObserver for use with ScopedSettings to provide a simple way to get notified when implicit animations complete. BUG=None TEST=compositor_unittests Review URL: https://chromiumcodereview.appspot.com/9112034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118091 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Gesture event plumbing (skeleton).sadrul@chromium.org2012-01-172-0/+9
| | | | | | | | | | | | | Add gesture event plumbing through aura. This is not functional just yet. Subsequent CLs will move the gesture-recognizer from views into aura, which will then generate and deliver aura gesture events. BUG=11024 TEST=no functional changes yet. Tests will be added when GR is moved into aura. Review URL: https://chromiumcodereview.appspot.com/9221014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117911 0039d316-1c4b-4281-b951-d872f2087c98
* OVERRIDE Fixups for TableView and DragDropControllerdhollowa@chromium.org2012-01-121-3/+3
| | | | | | | | | | | | | Fixes OVERRIDE style violations caught by clang. BUG=None TEST=Compiles on Mac/Clang with style plugins. R=sky@chromium.org Review URL: http://codereview.chromium.org/9185021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117337 0039d316-1c4b-4281-b951-d872f2087c98
* aura: refactor clipboard code and implement format conversion and basicvarunjain@chromium.org2012-01-091-2/+14
| | | | | | | | | | | | versioning. BUG=97845 TEST=clipboard unittests pass. Review URL: http://codereview.chromium.org/9120009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116918 0039d316-1c4b-4281-b951-d872f2087c98
* aura: animate drag widget at the end of a drag-drop session.varunjain@chromium.org2012-01-092-5/+59
| | | | | | | | | | BUG=97845 TEST=manual Review URL: http://codereview.chromium.org/9123019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116872 0039d316-1c4b-4281-b951-d872f2087c98
* Beginning of drag/drop should copy the drag data to clipboard.varunjain@chromium.org2012-01-042-18/+44
| | | | | | | | | | BUG=97845 TEST=added new test Review URL: http://codereview.chromium.org/8994012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116236 0039d316-1c4b-4281-b951-d872f2087c98
* Rename the aura_shell namespace to ashben@chromium.org2011-12-245-10/+10
| | | | | | | | | http://crbug.com/108457 TEST=none TBR=sky Review URL: http://codereview.chromium.org/9033007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115748 0039d316-1c4b-4281-b951-d872f2087c98
* Move last few files -> ashben@chromium.org2011-12-232-3/+3
| | | | | | | | | http://crbug.com/108457 TEST=none TBR=sky Review URL: http://codereview.chromium.org/9036011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115743 0039d316-1c4b-4281-b951-d872f2087c98
* More stuff -> ashben@chromium.org2011-12-235-0/+792
http://crbug.com/108457 TEST=none TBR=sky Review URL: http://codereview.chromium.org/9033006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115741 0039d316-1c4b-4281-b951-d872f2087c98