mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -2096,7 +2096,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;
|
||||||
|
Reference in New Issue
Block a user