Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Unified Diff: components/mus/input_devices/input_device_server.h

Issue 2058853002: Enable InputDeviceServer/InputDeviceClient in mash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_device
Patch Set: Check for DDM existence. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mus/BUILD.gn ('k') | components/mus/input_devices/input_device_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/input_devices/input_device_server.h
diff --git a/components/mus/input_devices/input_device_server.h b/components/mus/input_devices/input_device_server.h
index 0f98a6634779e3af8d534f855033f12a8649c53b..af0e0e704e6014bd533a8280504f91944ce86342 100644
--- a/components/mus/input_devices/input_device_server.h
+++ b/components/mus/input_devices/input_device_server.h
@@ -29,11 +29,13 @@ class InputDeviceServer
// Registers this instance as a local observer with DeviceDataManager.
void RegisterAsObserver();
+ bool IsRegisteredAsObserver() const;
- // Registers interface with the shell connection so remote observers can
- // connect. You should have already called RegisterAsObserver() to get
- // local input-device event updates.
- void RegisterInterface(shell::Connection* connection);
+ // Adds interface with the shell connection so remote observers can connect.
+ // You should have already called RegisterAsObserver() to get local
+ // input-device event updates and checked it was successful by calling
+ // IsRegisteredAsObserver().
+ void AddInterface(shell::Connection* connection);
// mojom::InputDeviceServer:
void AddObserver(mojom::InputDeviceObserverMojoPtr observer) override;
« no previous file with comments | « components/mus/BUILD.gn ('k') | components/mus/input_devices/input_device_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698