mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-27 09:28:01 +01:00
Merge revision 997 changes:
- Linux: Fix compile errors (issue #852). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1364@998 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
006b235dc3
commit
cf6dc70b4e
@ -2095,7 +2095,7 @@ void CefBrowserHostImpl::RunFileChooserOnUIThread(
|
|||||||
if (client_.get()) {
|
if (client_.get()) {
|
||||||
CefRefPtr<CefDialogHandler> handler = client_->GetDialogHandler();
|
CefRefPtr<CefDialogHandler> handler = client_->GetDialogHandler();
|
||||||
if (handler.get()) {
|
if (handler.get()) {
|
||||||
cef_file_dialog_mode_t mode;
|
cef_file_dialog_mode_t mode = FILE_DIALOG_OPEN;
|
||||||
switch (params.mode) {
|
switch (params.mode) {
|
||||||
case content::FileChooserParams::Open:
|
case content::FileChooserParams::Open:
|
||||||
mode = FILE_DIALOG_OPEN;
|
mode = FILE_DIALOG_OPEN;
|
||||||
|
@ -1824,8 +1824,24 @@ class V8RendererTest : public ClientApp::RenderDelegate {
|
|||||||
EXPECT_TRUE(task_runner->IsSame(task_runner_));
|
EXPECT_TRUE(task_runner->IsSame(task_runner_));
|
||||||
|
|
||||||
// Execute the callback asynchronously.
|
// Execute the callback asynchronously.
|
||||||
task_runner->PostTask(
|
// Can't use templates with nested classes on Linux.
|
||||||
NewCefRunnableMethod(this, &Handler::ExecCallback));
|
class Task : public CefTask {
|
||||||
|
public:
|
||||||
|
explicit Task(Handler* handler)
|
||||||
|
: handler_(handler) {
|
||||||
|
handler_->AddRef();
|
||||||
|
}
|
||||||
|
~Task() {
|
||||||
|
handler_->Release();
|
||||||
|
}
|
||||||
|
virtual void Execute() OVERRIDE {
|
||||||
|
handler_->ExecCallback();
|
||||||
|
}
|
||||||
|
private:
|
||||||
|
Handler* handler_;
|
||||||
|
IMPLEMENT_REFCOUNTING(Task);
|
||||||
|
};
|
||||||
|
task_runner->PostTask(new Task(this));
|
||||||
|
|
||||||
retval = CefV8Value::CreateBool(true);
|
retval = CefV8Value::CreateBool(true);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user