2017-07-27 26 views
1

私はUnreal Engineでcefclientを使用しています。通常のクロムブラウザで画像をドラッグすると、画像のプレビューが表示されます。 enter image description hereCEFクライアントでドラッグ中の画像プレビュー

しかし、私がcefclientで同じことを試みたとき、動作しませんでした。だから私はcefclient実行ファイルをダウンロードしようとして、同じを行う。しかし、誰もがこの問題を解決する方法を知っている

enter image description here

...以下のような警告を与えていますか?

答えて

1

ダウンロードCEF/cefclient源と指定されたテキストを見つける:"chromiumembedded DRAG_OPERATION_LINK"の検索

// Forbid dragging of URLs and files. 
    if ((mask & DRAG_OPERATION_LINK) && !dragData->IsFragment()) { 
    test_runner::Alert(browser, "cefclient blocks dragging of URLs and files"); 
    return true; 
    } 

はあなたにこのコメントを与える:

The drag is blocked in cefclient\browser\client_handler.cc ClientHandler::OnDragEnter(): 
    // Forbid dragging of link URLs. 
    if (mask & DRAG_OPERATION_LINK) 
    return true; 
Howevever, it appears that this check is wrong in current CEF versions since |mask| is DRAG_OPERATION_COPY | DRAG_OPERATION_LINK | DRAG_OPERATION_MOVE when dragging both links and fragments. 
The check should be fixed to properly differentiate between links and fragments. 
For your purposes you can remove this check and all dragging operations will work in cefclient. 

https://bitbucket.org/chromiumembedded/cef/issues/1885/drag-and-drop-of-selected-text-in-input#comment-27661218

関連する問題