mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 119867.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@504 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "libcef/web_drag_utils_win.h"
|
||||
#include "libcef/web_drop_target_win.h"
|
||||
|
||||
#include "base/bind.h"
|
||||
#include "base/utf_string_conversions.h"
|
||||
#include "net/base/file_stream.h"
|
||||
#include "net/base/net_util.h"
|
||||
@@ -142,14 +143,14 @@ void BrowserDragDelegate::StartDragging(const WebDropData& drop_data,
|
||||
if (drag_drop_thread_->StartWithOptions(options)) {
|
||||
drag_drop_thread_->message_loop()->PostTask(
|
||||
FROM_HERE,
|
||||
NewRunnableMethod(this,
|
||||
&BrowserDragDelegate::StartBackgroundDragging,
|
||||
drop_data,
|
||||
ops,
|
||||
page_url,
|
||||
page_encoding,
|
||||
image,
|
||||
image_offset));
|
||||
base::Bind(&BrowserDragDelegate::StartBackgroundDragging,
|
||||
this,
|
||||
drop_data,
|
||||
ops,
|
||||
page_url,
|
||||
page_encoding,
|
||||
image,
|
||||
image_offset));
|
||||
}
|
||||
|
||||
// Install a hook procedure to monitor the messages so that we can forward
|
||||
@@ -179,7 +180,7 @@ void BrowserDragDelegate::StartBackgroundDragging(
|
||||
DoDragging(drop_data, ops, page_url, page_encoding, image, image_offset);
|
||||
CefThread::PostTask(
|
||||
CefThread::UI, FROM_HERE,
|
||||
NewRunnableMethod(this, &BrowserDragDelegate::EndDragging, true));
|
||||
base::Bind(&BrowserDragDelegate::EndDragging, this, true));
|
||||
}
|
||||
|
||||
void BrowserDragDelegate::PrepareDragForDownload(
|
||||
@@ -343,7 +344,7 @@ void BrowserDragDelegate::OnWaitForData() {
|
||||
// mode so that it can start to process the normal input events.
|
||||
CefThread::PostTask(
|
||||
CefThread::UI, FROM_HERE,
|
||||
NewRunnableMethod(this, &BrowserDragDelegate::EndDragging, true));
|
||||
base::Bind(&BrowserDragDelegate::EndDragging, this, true));
|
||||
}
|
||||
|
||||
void BrowserDragDelegate::OnDataObjectDisposed() {
|
||||
@@ -353,5 +354,5 @@ void BrowserDragDelegate::OnDataObjectDisposed() {
|
||||
// DataObjectImpl.
|
||||
CefThread::PostTask(
|
||||
CefThread::UI, FROM_HERE,
|
||||
NewRunnableMethod(this, &BrowserDragDelegate::CloseThread));
|
||||
base::Bind(&BrowserDragDelegate::CloseThread, this));
|
||||
}
|
||||
|
Reference in New Issue
Block a user