mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
- makes the event logic not involve a boolean return value (since we ignored it anyway) - splits the event handling logic into two steps, hit testing and event dispatch - introduces an App class on the Dart side to factor out the interaction with the C++ side - ports sector-layout and simple_render_tree to the new App infrastructure - port simple_render_tree to the new event handling logic - implement hit testing for the sector-layout demo R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1143343004
20 lines
458 B
C++
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 void handleEvent(Event* event) = 0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // SKY_ENGINE_CORE_VIEW_EVENTCALLBACK_H_
|