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

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') | no next file » | 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..7dbe94018ae56dbf0c12d7ee83184ed380857154 100644
--- a/ui/aura/window_delegate.h
+++ b/ui/aura/window_delegate.h
@@ -58,6 +58,9 @@ class AURA_EXPORT WindowDelegate {
// attempted for another reason.
virtual bool ShouldActivate(Event* event) = 0;
+ // Returns true of the window can be focused.
+ virtual bool CanFocus() { return true; }
sadrul 2011/12/01 21:48:03 This probably should be pure virtual?
Ben Goodger (Google) 2011/12/01 22:16:31 Yes it should. In general, when you are adding the
sadrul 2011/12/01 22:18:23 Yes :) I wanted to confirm the approach looks sane
sadrul 2011/12/02 02:25:55 Done.
+
// Sent when the window is activated.
virtual void OnActivated() = 0;
« no previous file with comments | « ui/aura/window.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698