flutter_flutter/engine/core/view/EventCallback.h
Adam Barth 67109ce3e1 Plumb input events into SkyView
Clients can now register a callback that gets called whenever we have an event
for the view. We'll need to update the Event class at some point, but this is a
start.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1129333005
2015-05-19 16:50:28 -07:00

20 lines
458 B
C++

// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SKY_ENGINE_CORE_VIEW_EVENTCALLBACK_H_
#define SKY_ENGINE_CORE_VIEW_EVENTCALLBACK_H_
namespace blink {
class Event;
class EventCallback {
public:
virtual ~EventCallback() { }
virtual bool handleEvent(Event* event) = 0;
};
}
#endif // SKY_ENGINE_CORE_VIEW_EVENTCALLBACK_H_