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:
Adam Barth 2014-11-26 09:00:04 -08:00
parent 2cc9b542a0
commit a0c48f7369
2 changed files with 0 additions and 11 deletions

View File

@ -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);

View File

@ -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,