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

Side by Side Diff: ui/wm/core/focus_controller.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
« no previous file with comments | « ui/wm/core/default_activation_client.h ('k') | ui/wm/core/transient_window_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_WM_CORE_FOCUS_CONTROLLER_H_ 5 #ifndef UI_WM_CORE_FOCUS_CONTROLLER_H_
6 #define UI_WM_CORE_FOCUS_CONTROLLER_H_ 6 #define UI_WM_CORE_FOCUS_CONTROLLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void WindowFocusedFromInputEvent(aura::Window* window); 100 void WindowFocusedFromInputEvent(aura::Window* window);
101 101
102 aura::Window* active_window_; 102 aura::Window* active_window_;
103 aura::Window* focused_window_; 103 aura::Window* focused_window_;
104 104
105 bool updating_focus_; 105 bool updating_focus_;
106 bool updating_activation_; 106 bool updating_activation_;
107 107
108 scoped_ptr<FocusRules> rules_; 108 scoped_ptr<FocusRules> rules_;
109 109
110 ObserverList<aura::client::ActivationChangeObserver> activation_observers_; 110 base::ObserverList<aura::client::ActivationChangeObserver>
111 ObserverList<aura::client::FocusChangeObserver> focus_observers_; 111 activation_observers_;
112 base::ObserverList<aura::client::FocusChangeObserver> focus_observers_;
112 113
113 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; 114 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_;
114 115
115 DISALLOW_COPY_AND_ASSIGN(FocusController); 116 DISALLOW_COPY_AND_ASSIGN(FocusController);
116 }; 117 };
117 118
118 } // namespace wm 119 } // namespace wm
119 120
120 #endif // UI_WM_CORE_FOCUS_CONTROLLER_H_ 121 #endif // UI_WM_CORE_FOCUS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/wm/core/default_activation_client.h ('k') | ui/wm/core/transient_window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698