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

Side by Side Diff: ui/wm/core/default_activation_client.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/cursor_manager.h ('k') | ui/wm/core/focus_controller.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DEFAULT_ACTIVATION_CLIENT_H_ 5 #ifndef UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_
6 #define UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_ 6 #define UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // This class explicitly does NOT store the active window in a window property 54 // This class explicitly does NOT store the active window in a window property
55 // to make sure that ActivationChangeObserver is not treated as part of the 55 // to make sure that ActivationChangeObserver is not treated as part of the
56 // aura API. Assumptions to that end will cause tests that use this client to 56 // aura API. Assumptions to that end will cause tests that use this client to
57 // fail. 57 // fail.
58 std::vector<aura::Window*> active_windows_; 58 std::vector<aura::Window*> active_windows_;
59 59
60 // The window which was active before the currently active one. 60 // The window which was active before the currently active one.
61 aura::Window* last_active_; 61 aura::Window* last_active_;
62 62
63 ObserverList<aura::client::ActivationChangeObserver> observers_; 63 base::ObserverList<aura::client::ActivationChangeObserver> observers_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(DefaultActivationClient); 65 DISALLOW_COPY_AND_ASSIGN(DefaultActivationClient);
66 }; 66 };
67 67
68 } // namespace wm 68 } // namespace wm
69 69
70 #endif // UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_ 70 #endif // UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/wm/core/cursor_manager.h ('k') | ui/wm/core/focus_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698