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

Unified Diff: services/ui/input_manager/input_associate.h

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 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
Index: services/ui/input_manager/input_associate.h
diff --git a/services/ui/input_manager/input_associate.h b/services/ui/input_manager/input_associate.h
index 7f2fd7e0e87242c66f071963e90f24d4bfea02f3..743440b84d33ab2dc8c7cad38f84cd649a7d6fef 100644
--- a/services/ui/input_manager/input_associate.h
+++ b/services/ui/input_manager/input_associate.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "mojo/common/strong_binding_set.h"
+#include "mojo/public/cpp/bindings/interface_handle.h"
#include "mojo/services/ui/input/interfaces/input_connection.mojom.h"
#include "mojo/services/ui/input/interfaces/input_dispatcher.mojom.h"
#include "mojo/services/ui/views/interfaces/view_associates.mojom.h"
@@ -29,7 +30,8 @@ class InputAssociate : public mojo::ui::ViewAssociate {
~InputConnectionImpl() override;
private:
- void SetListener(mojo::ui::InputListenerPtr listener) override;
+ void SetListener(
+ mojo::InterfaceHandle<mojo::ui::InputListener> listener) override;
InputAssociate* const associate_;
mojo::ui::ViewTokenPtr view_token_;
@@ -55,7 +57,7 @@ class InputAssociate : public mojo::ui::ViewAssociate {
};
// |ViewAssociate|:
- void Connect(mojo::ui::ViewInspectorPtr inspector,
+ void Connect(mojo::InterfaceHandle<mojo::ui::ViewInspector> inspector,
const ConnectCallback& callback) override;
void ConnectToViewService(
mojo::ui::ViewTokenPtr view_token,
@@ -68,7 +70,7 @@ class InputAssociate : public mojo::ui::ViewAssociate {
// Incoming service calls.
void SetListener(mojo::ui::ViewToken* view_token,
- mojo::ui::InputListenerPtr listener);
+ mojo::InterfaceHandle<mojo::ui::InputListener> listener);
void DispatchEvent(mojo::ui::ViewTreeToken* view_tree_token,
mojo::EventPtr event);

Powered by Google App Engine
This is Rietveld 408576698