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

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: rebase ontop of master, address trung's comments 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
« no previous file with comments | « services/native_viewport/onscreen_context_provider.cc ('k') | services/ui/input_manager/input_associate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3459eed5bd07071e00df10b909caff286f119a46 100644
--- a/services/ui/input_manager/input_associate.h
+++ b/services/ui/input_manager/input_associate.h
@@ -29,7 +29,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 +56,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 +69,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);
« no previous file with comments | « services/native_viewport/onscreen_context_provider.cc ('k') | services/ui/input_manager/input_associate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698