Linux: Fix compile errors (issue #852).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@997 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
55729ae7f9
commit
43d44578ba
|
@ -2096,7 +2096,7 @@ void CefBrowserHostImpl::RunFileChooserOnUIThread(
|
|||
if (client_.get()) {
|
||||
CefRefPtr<CefDialogHandler> handler = client_->GetDialogHandler();
|
||||
if (handler.get()) {
|
||||
cef_file_dialog_mode_t mode;
|
||||
cef_file_dialog_mode_t mode = FILE_DIALOG_OPEN;
|
||||
switch (params.mode) {
|
||||
case content::FileChooserParams::Open:
|
||||
mode = FILE_DIALOG_OPEN;
|
||||
|
|
|
@ -1824,8 +1824,24 @@ class V8RendererTest : public ClientApp::RenderDelegate {
|
|||
EXPECT_TRUE(task_runner->IsSame(task_runner_));
|
||||
|
||||
// Execute the callback asynchronously.
|
||||
task_runner->PostTask(
|
||||
NewCefRunnableMethod(this, &Handler::ExecCallback));
|
||||
// Can't use templates with nested classes on Linux.
|
||||
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);
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue