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

Side by Side Diff: ui/aura/client/activation_change_observer.h

Issue 14222019: Trying to activate a window in a workspace other than the current is ignored while a system modal d… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: reduced Created 7 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_CLIENT_ACTIVATION_CHANGE_OBSERVER_H_ 5 #ifndef UI_AURA_CLIENT_ACTIVATION_CHANGE_OBSERVER_H_
6 #define UI_AURA_CLIENT_ACTIVATION_CHANGE_OBSERVER_H_ 6 #define UI_AURA_CLIENT_ACTIVATION_CHANGE_OBSERVER_H_
7 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 9
10 namespace aura { 10 namespace aura {
11 class Window; 11 class Window;
12 12
13 namespace client { 13 namespace client {
14 14
15 class AURA_EXPORT ActivationChangeObserver { 15 class AURA_EXPORT ActivationChangeObserver {
16 public: 16 public:
17 // Called when |active| gains focus, or there is no active window 17 // Called when |active| gains focus, or there is no active window
18 // (|active| is NULL in this case.) |old_active| refers to the 18 // (|active| is NULL in this case.) |old_active| refers to the
19 // previous active window or NULL if there was no previously active 19 // previous active window or NULL if there was no previously active
20 // window. 20 // window.
21 virtual void OnWindowActivated(Window* gained_active, 21 virtual void OnWindowActivated(Window* gained_active,
22 Window* lost_active) = 0; 22 Window* lost_active) = 0;
23 23
24 // Called when during window activation the currently active window
25 // is selected for activation. This can happen when the a window
sky 2013/04/23 21:36:42 'when the a' -> 'when a'
sschmitz 2013/04/24 01:23:43 Done.
26 // requested for activation, cannot be activated because a system
27 // modal window is active.
28 virtual void OnAttemptToReactivateWindow(aura::Window* request_active,
29 aura::Window* actual_active) {}
30
24 protected: 31 protected:
25 virtual ~ActivationChangeObserver() {} 32 virtual ~ActivationChangeObserver() {}
26 }; 33 };
27 34
28 // Gets/Sets the ActivationChangeObserver for a specific window. This observer 35 // Gets/Sets the ActivationChangeObserver for a specific window. This observer
29 // is notified after the ActivationClient notifies all registered observers. 36 // is notified after the ActivationClient notifies all registered observers.
30 AURA_EXPORT void SetActivationChangeObserver( 37 AURA_EXPORT void SetActivationChangeObserver(
31 Window* window, 38 Window* window,
32 ActivationChangeObserver* observer); 39 ActivationChangeObserver* observer);
33 AURA_EXPORT ActivationChangeObserver* GetActivationChangeObserver( 40 AURA_EXPORT ActivationChangeObserver* GetActivationChangeObserver(
34 Window* window); 41 Window* window);
35 42
36 } // namespace client 43 } // namespace client
37 } // namespace aura 44 } // namespace aura
38 45
39 #endif // UI_AURA_CLIENT_ACTIVATION_CHANGE_OBSERVER_H_ 46 #endif // UI_AURA_CLIENT_ACTIVATION_CHANGE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698