OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SERVICES_WINDOW_MANAGER_FOCUS_CONTROLLER_H_ | 5 #ifndef SERVICES_WINDOW_MANAGER_FOCUS_CONTROLLER_H_ |
6 #define SERVICES_WINDOW_MANAGER_FOCUS_CONTROLLER_H_ | 6 #define SERVICES_WINDOW_MANAGER_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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 void ViewFocusedFromInputEvent(mojo::View* view); | 79 void ViewFocusedFromInputEvent(mojo::View* view); |
80 | 80 |
81 mojo::View* active_view_; | 81 mojo::View* active_view_; |
82 mojo::View* focused_view_; | 82 mojo::View* focused_view_; |
83 | 83 |
84 bool updating_focus_; | 84 bool updating_focus_; |
85 bool updating_activation_; | 85 bool updating_activation_; |
86 | 86 |
87 scoped_ptr<FocusRules> rules_; | 87 scoped_ptr<FocusRules> rules_; |
88 | 88 |
89 ObserverList<FocusControllerObserver> focus_controller_observers_; | 89 base::ObserverList<FocusControllerObserver> focus_controller_observers_; |
90 | 90 |
91 ScopedObserver<mojo::View, ViewObserver> observer_manager_; | 91 ScopedObserver<mojo::View, ViewObserver> observer_manager_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(FocusController); | 93 DISALLOW_COPY_AND_ASSIGN(FocusController); |
94 }; | 94 }; |
95 | 95 |
96 // Sets/Gets the focus controller for a view. | 96 // Sets/Gets the focus controller for a view. |
97 void SetFocusController(mojo::View* view, FocusController* focus_controller); | 97 void SetFocusController(mojo::View* view, FocusController* focus_controller); |
98 FocusController* GetFocusController(mojo::View* view); | 98 FocusController* GetFocusController(mojo::View* view); |
99 | 99 |
100 } // namespace window_manager | 100 } // namespace window_manager |
101 | 101 |
102 #endif // SERVICES_WINDOW_MANAGER_FOCUS_CONTROLLER_H_ | 102 #endif // SERVICES_WINDOW_MANAGER_FOCUS_CONTROLLER_H_ |
OLD | NEW |