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

Unified Diff: mojo/examples/embedded_app/embedded_app.cc

Issue 324753002: Fix ownership bug with ViewObserver::OnViewInputEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no pass Created 6 years, 6 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
« no previous file with comments | « no previous file | mojo/examples/nesting_app/nesting_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/embedded_app/embedded_app.cc
diff --git a/mojo/examples/embedded_app/embedded_app.cc b/mojo/examples/embedded_app/embedded_app.cc
index 3f463072b62e098f08e683d8316bb56e46657066..4bc2018cf05d0893cd1f4b1046ba5fcc4aeced59 100644
--- a/mojo/examples/embedded_app/embedded_app.cc
+++ b/mojo/examples/embedded_app/embedded_app.cc
@@ -66,7 +66,7 @@ class EmbeddedApp : public Application,
}
// Overridden from ViewObserver:
- virtual void OnViewInputEvent(View* view, EventPtr event) OVERRIDE {
+ virtual void OnViewInputEvent(View* view, const EventPtr& event) OVERRIDE {
if (event->action == ui::ET_MOUSE_RELEASED)
window_manager_->CloseWindow(view->node()->id());
}
@@ -94,4 +94,4 @@ Application* Application::Create() {
return new examples::EmbeddedApp;
}
-} // namespace mojo
+} // namespace mojo
« no previous file with comments | « no previous file | mojo/examples/nesting_app/nesting_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698