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

Unified Diff: ui/aura/env_observer.h

Issue 2483063002: Improves focus/activation for aura-mus and DesktopNativeWidgetAura (Closed)
Patch Set: Created 4 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/env.cc ('k') | ui/aura/mus/focus_synchronizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/env_observer.h
diff --git a/ui/aura/env_observer.h b/ui/aura/env_observer.h
index 03fcf3bd171e3291bf310b5dd6630470a337b07a..274bf3f4bc48ac04561a4bc2b8dadca7c652d8f4 100644
--- a/ui/aura/env_observer.h
+++ b/ui/aura/env_observer.h
@@ -12,6 +12,10 @@ namespace aura {
class Window;
class WindowTreeHost;
+namespace client {
+class FocusClient;
+}
+
class AURA_EXPORT EnvObserver {
public:
// Called when |window| has been initialized.
@@ -26,6 +30,10 @@ class AURA_EXPORT EnvObserver {
// Called right before Env is destroyed.
virtual void OnWillDestroyEnv() {}
+ // Called from Env::SetActiveFocusClient(), see it for details.
+ virtual void OnActiveFocusClientChanged(client::FocusClient* focus_client,
+ Window* window) {}
+
protected:
virtual ~EnvObserver() {}
};
« no previous file with comments | « ui/aura/env.cc ('k') | ui/aura/mus/focus_synchronizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698