Commit 89585d36 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

[ozone/wayland] Move away from base::Bind

BUG=714018

Change-Id: I9d846815404f3154639cf6c2a2fcff98ee91cd0c
Reviewed-on: https://chromium-review.googlesource.com/995512Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#548063}
parent 6132bb52
...@@ -544,8 +544,8 @@ bool FakeServer::Start(uint32_t shell_version) { ...@@ -544,8 +544,8 @@ bool FakeServer::Start(uint32_t shell_version) {
(void)server_fd.release(); (void)server_fd.release();
base::Thread::Options options; base::Thread::Options options;
options.message_pump_factory = options.message_pump_factory = base::BindRepeating(
base::Bind(&FakeServer::CreateMessagePump, base::Unretained(this)); &FakeServer::CreateMessagePump, base::Unretained(this));
if (!base::Thread::StartWithOptions(options)) if (!base::Thread::StartWithOptions(options))
return false; return false;
......
...@@ -254,8 +254,8 @@ void WaylandConnection::Capabilities(void* data, ...@@ -254,8 +254,8 @@ void WaylandConnection::Capabilities(void* data,
return; return;
} }
connection->pointer_ = std::make_unique<WaylandPointer>( connection->pointer_ = std::make_unique<WaylandPointer>(
pointer, base::Bind(&WaylandConnection::DispatchUiEvent, pointer, base::BindRepeating(&WaylandConnection::DispatchUiEvent,
base::Unretained(connection))); base::Unretained(connection)));
connection->pointer_->set_connection(connection); connection->pointer_->set_connection(connection);
} }
} else if (connection->pointer_) { } else if (connection->pointer_) {
...@@ -269,8 +269,8 @@ void WaylandConnection::Capabilities(void* data, ...@@ -269,8 +269,8 @@ void WaylandConnection::Capabilities(void* data,
return; return;
} }
connection->keyboard_ = std::make_unique<WaylandKeyboard>( connection->keyboard_ = std::make_unique<WaylandKeyboard>(
keyboard, base::Bind(&WaylandConnection::DispatchUiEvent, keyboard, base::BindRepeating(&WaylandConnection::DispatchUiEvent,
base::Unretained(connection))); base::Unretained(connection)));
connection->keyboard_->set_connection(connection); connection->keyboard_->set_connection(connection);
} }
} else if (connection->keyboard_) { } else if (connection->keyboard_) {
...@@ -284,8 +284,8 @@ void WaylandConnection::Capabilities(void* data, ...@@ -284,8 +284,8 @@ void WaylandConnection::Capabilities(void* data,
return; return;
} }
connection->touch_ = std::make_unique<WaylandTouch>( connection->touch_ = std::make_unique<WaylandTouch>(
touch, base::Bind(&WaylandConnection::DispatchUiEvent, touch, base::BindRepeating(&WaylandConnection::DispatchUiEvent,
base::Unretained(connection))); base::Unretained(connection)));
connection->touch_->set_connection(connection); connection->touch_->set_connection(connection);
} }
} else if (connection->touch_) { } else if (connection->touch_) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment