Fix bug when dragging to a window before mouse events have been detected (issue #262).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@256 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-06-14 15:45:00 +00:00
parent 02d6f3e384
commit 2a0299fc29
3 changed files with 13 additions and 3 deletions

View File

@@ -59,6 +59,7 @@ DWORD WebDropTarget::OnDragEnter(IDataObject* data_object,
POINT cursor_position,
DWORD effects) {
current_wvh_ = _Context->current_webviewhost();
DCHECK(current_wvh_);
// TODO(tc): PopulateWebDropData can be slow depending on what is in the
// IDataObject. Maybe we can do this in a background thread.