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

Unified Diff: ash/wm/common/wm_activation_observer.h

Issue 2012343002: Converts overview to use common ash types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 7 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 | « ash/wm/common/ash_wm_common.gyp ('k') | ash/wm/common/wm_globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/wm_activation_observer.h
diff --git a/ash/wm/common/wm_activation_observer.h b/ash/wm/common/wm_activation_observer.h
index ce02022550aa6f7fd9e958b43f94530305644f3b..f5647f80790fc4cfbd3e5c245cb9c813d88bd8e7 100644
--- a/ash/wm/common/wm_activation_observer.h
+++ b/ash/wm/common/wm_activation_observer.h
@@ -16,7 +16,13 @@ class WmWindow;
class ASH_WM_COMMON_EXPORT WmActivationObserver {
public:
virtual void OnWindowActivated(WmWindow* gained_active,
- WmWindow* lost_active) = 0;
+ WmWindow* lost_active) {}
+
+ // Called when during window activation the currently active window is
+ // selected for activation. This can happen when a window requested for
+ // activation cannot be activated because a system modal window is active.
+ virtual void OnAttemptToReactivateWindow(WmWindow* request_active,
+ WmWindow* actual_active) {}
protected:
virtual ~WmActivationObserver() {}
« no previous file with comments | « ash/wm/common/ash_wm_common.gyp ('k') | ash/wm/common/wm_globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698