Remove event targeting hack
Mojo's event targeting system has evolved to the point were we don't need this ugly hack anymore. R=ojan@chromium.org, erg@chromium.org Review URL: https://codereview.chromium.org/762443002
This commit is contained in:
parent
2cc9b542a0
commit
a0c48f7369
@ -83,16 +83,6 @@ void SkyDebugger::OnViewBoundsChanged(mojo::View* view,
|
||||
content_->SetBounds(new_bounds);
|
||||
}
|
||||
|
||||
void SkyDebugger::OnViewInputEvent(
|
||||
mojo::View* view, const mojo::EventPtr& event) {
|
||||
if (view != root_)
|
||||
return;
|
||||
// Currently, the event targeting system is broken for mojo::Views, so we
|
||||
// blindly forward events from the root to the content view. Once event
|
||||
// targeting works, we should be able to rip out this code.
|
||||
window_manager_app_->DispatchInputEventToView(content_, event.Clone());
|
||||
}
|
||||
|
||||
void SkyDebugger::Create(mojo::ApplicationConnection* connection,
|
||||
mojo::InterfaceRequest<Debugger> request) {
|
||||
mojo::WeakBindToRequest(this, &request);
|
||||
|
@ -57,7 +57,6 @@ class SkyDebugger : public mojo::ApplicationDelegate,
|
||||
void OnViewBoundsChanged(mojo::View* view,
|
||||
const mojo::Rect& old_bounds,
|
||||
const mojo::Rect& new_bounds) override;
|
||||
void OnViewInputEvent(mojo::View* view, const mojo::EventPtr& event) override;
|
||||
|
||||
// Overridden from InterfaceFactory<Debugger>:
|
||||
void Create(mojo::ApplicationConnection* connection,
|
||||
|
Loading…
x
Reference in New Issue
Block a user