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

Side by Side Diff: ui/views/widget/native_widget_aura_window_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: 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_VIEWS_WIDGET_NATIVE_WIDGET_AURA_WINDOW_OBSERVER_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_WINDOW_OBSERVER_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_WINDOW_OBSERVER_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_WINDOW_OBSERVER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/aura/client/activation_change_observer.h" 9 #include "ui/aura/client/activation_change_observer.h"
10 #include "ui/aura/window_observer.h" 10 #include "ui/aura/window_observer.h"
(...skipping 10 matching lines...) Expand all
21 public aura::client::ActivationChangeObserver { 21 public aura::client::ActivationChangeObserver {
22 public: 22 public:
23 explicit NativeWidgetAuraWindowObserver( 23 explicit NativeWidgetAuraWindowObserver(
24 gfx::NativeView native_view, 24 gfx::NativeView native_view,
25 internal::NativeWidgetDelegate* delegate); 25 internal::NativeWidgetDelegate* delegate);
26 virtual ~NativeWidgetAuraWindowObserver(); 26 virtual ~NativeWidgetAuraWindowObserver();
27 27
28 // Overridden from aura::client::ActivationChangeObserver: 28 // Overridden from aura::client::ActivationChangeObserver:
29 virtual void OnWindowActivated(aura::Window* gained_active, 29 virtual void OnWindowActivated(aura::Window* gained_active,
30 aura::Window* lost_active) OVERRIDE; 30 aura::Window* lost_active) OVERRIDE;
31 virtual void OnWindowActivationRequestCompleted(
32 aura::Window* request_active, aura::Window* actual_active) OVERRIDE;
31 33
32 // Overridden from aura::WindowObserver: 34 // Overridden from aura::WindowObserver:
33 virtual void OnWindowRemovingFromRootWindow(aura::Window* window) OVERRIDE; 35 virtual void OnWindowRemovingFromRootWindow(aura::Window* window) OVERRIDE;
34 36
35 private: 37 private:
36 void CleanUpObservers(); 38 void CleanUpObservers();
37 39
38 gfx::NativeView native_view_; 40 gfx::NativeView native_view_;
39 internal::NativeWidgetDelegate* delegate_; 41 internal::NativeWidgetDelegate* delegate_;
40 42
41 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAuraWindowObserver); 43 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAuraWindowObserver);
42 }; 44 };
43 45
44 } // namespace views 46 } // namespace views
45 47
46 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_WINDOW_OBSERVER_H_ 48 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_WINDOW_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698