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

Unified Diff: ui/aura/demo/demo_main.cc

Issue 8770011: aura: Ask the WindowDelegate before a Window is Focus()ed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/aura/test/test_window_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/demo/demo_main.cc
diff --git a/ui/aura/demo/demo_main.cc b/ui/aura/demo/demo_main.cc
index f8337ecb00d63049d8670b81cfad292de9e00f08..0795067d5273706d448a92c022e32b493eb5bbb1 100644
--- a/ui/aura/demo/demo_main.cc
+++ b/ui/aura/demo/demo_main.cc
@@ -53,6 +53,7 @@ class DemoWindowDelegate : public aura::WindowDelegate {
virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE {
return ui::TOUCH_STATUS_END;
}
+ virtual bool CanFocus() OVERRIDE { return true; }
virtual bool ShouldActivate(aura::Event* event) OVERRIDE { return true; }
virtual void OnActivated() OVERRIDE {}
virtual void OnLostActive() OVERRIDE {}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/aura/test/test_window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698