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

Unified Diff: ui/aura/window_delegate.h

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 | « ui/aura/window.cc ('k') | ui/views/widget/native_widget_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_delegate.h
diff --git a/ui/aura/window_delegate.h b/ui/aura/window_delegate.h
index 034ad8e49edd6a7a94107a415b76418174409cf1..f86551192f57a1b16552ae449c3abb3080cc6ef5 100644
--- a/ui/aura/window_delegate.h
+++ b/ui/aura/window_delegate.h
@@ -52,6 +52,9 @@ class AURA_EXPORT WindowDelegate {
virtual ui::TouchStatus OnTouchEvent(TouchEvent* event) = 0;
+ // Returns true of the window can be focused.
+ virtual bool CanFocus() = 0;
+
// Returns true if the window should be activated. |event| is either the mouse
// event supplied if the activation is the result of a mouse, or the touch
// event if the activation is the result of a touch, or NULL if activation is
« no previous file with comments | « ui/aura/window.cc ('k') | ui/views/widget/native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698