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

Unified Diff: sky/engine/core/view/View.h

Issue 1129333005: Plumb input events into SkyView (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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: sky/engine/core/view/View.h
diff --git a/sky/engine/core/view/View.h b/sky/engine/core/view/View.h
index f1306ee02c92c2db7d913cbaf31f12e65181f071..edb3d567bece2498ba9513ba063c6fb9038792d7 100644
--- a/sky/engine/core/view/View.h
+++ b/sky/engine/core/view/View.h
@@ -7,6 +7,7 @@
#include "base/callback.h"
#include "sky/engine/core/painting/Picture.h"
+#include "sky/engine/core/view/EventCallback.h"
#include "sky/engine/public/platform/sky_display_metrics.h"
#include "sky/engine/tonic/dart_wrappable.h"
#include "sky/engine/wtf/PassRefPtr.h"
@@ -27,15 +28,19 @@ public:
Picture* picture() const { return m_picture.get(); }
void setPicture(Picture* picture) { m_picture = picture; }
+ void setEventCallback(PassOwnPtr<EventCallback> callback);
+
void schedulePaint();
void setDisplayMetrics(const SkyDisplayMetrics& metrics);
+ bool handleInputEvent(PassRefPtr<Event> event);
private:
explicit View(const base::Closure& schedulePaintCallback);
base::Closure m_schedulePaintCallback;
SkyDisplayMetrics m_displayMetrics;
+ OwnPtr<EventCallback> m_eventCallback;
RefPtr<Picture> m_picture;
};

Powered by Google App Engine
This is Rietveld 408576698