Commit 7cf18ee8 authored by Johann's avatar Johann Committed by Commit Bot

gamepad: explicitly delete copy/assign

DISALLOW_COPY_AND_ASSIGN is deprecated:
https://chromium.googlesource.com/chromium/src/+/master/styleguide/c++/c++-dos-and-donts.md#explicitly-declare-class-copyability_movability

Change-Id: I384bdf3376d01834b6aa60ac202a9e7c368a869d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2105271Reviewed-by: default avatarKouhei Ueno <kouhei@chromium.org>
Reviewed-by: default avatarBrandon Jones <bajones@chromium.org>
Commit-Queue: Brandon Jones <bajones@chromium.org>
Auto-Submit: Johann Koenig <johannkoenig@google.com>
Cr-Commit-Position: refs/heads/master@{#751815}
parent db71a0af
...@@ -37,6 +37,10 @@ class GamepadSharedMemoryReader : public device::mojom::blink::GamepadObserver { ...@@ -37,6 +37,10 @@ class GamepadSharedMemoryReader : public device::mojom::blink::GamepadObserver {
void Start(blink::GamepadListener* listener); void Start(blink::GamepadListener* listener);
void Stop(); void Stop();
GamepadSharedMemoryReader(const GamepadSharedMemoryReader&) = delete;
GamepadSharedMemoryReader& operator=(const GamepadSharedMemoryReader&) =
delete;
protected: protected:
void SendStartMessage(); void SendStartMessage();
void SendStopMessage(); void SendStopMessage();
...@@ -59,8 +63,6 @@ class GamepadSharedMemoryReader : public device::mojom::blink::GamepadObserver { ...@@ -59,8 +63,6 @@ class GamepadSharedMemoryReader : public device::mojom::blink::GamepadObserver {
mojo::Receiver<device::mojom::blink::GamepadObserver> receiver_{this}; mojo::Receiver<device::mojom::blink::GamepadObserver> receiver_{this};
mojo::Remote<device::mojom::blink::GamepadMonitor> gamepad_monitor_remote_; mojo::Remote<device::mojom::blink::GamepadMonitor> gamepad_monitor_remote_;
blink::GamepadListener* listener_ = nullptr; blink::GamepadListener* listener_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(GamepadSharedMemoryReader);
}; };
} // namespace blink } // namespace blink
......
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