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

Unified Diff: mojo/services/view_manager/node_delegate.h

Issue 316713002: Wire input events through the ViewManagerClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 6 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 | « mojo/services/view_manager/node.cc ('k') | mojo/services/view_manager/root_node_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/node_delegate.h
diff --git a/mojo/services/view_manager/node_delegate.h b/mojo/services/view_manager/node_delegate.h
index 1079dd88cacf9b99fe567c928f9e4eecdf516dd3..d63acc91998842d8bcca105d217181fde2df0f0a 100644
--- a/mojo/services/view_manager/node_delegate.h
+++ b/mojo/services/view_manager/node_delegate.h
@@ -7,6 +7,10 @@
#include "mojo/services/view_manager/view_manager_export.h"
+namespace ui {
+class Event;
+}
+
namespace mojo {
namespace view_manager {
namespace service {
@@ -26,6 +30,10 @@ class MOJO_VIEW_MANAGER_EXPORT NodeDelegate {
const View* new_view,
const View* old_view) = 0;
+ // Invoked when an input event is received by the View at this node.
+ virtual void OnViewInputEvent(const View* view,
+ const ui::Event* event) = 0;
+
protected:
virtual ~NodeDelegate() {}
};
« no previous file with comments | « mojo/services/view_manager/node.cc ('k') | mojo/services/view_manager/root_node_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698