| OLD | NEW |
| 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_COREWM_FOCUS_CONTROLLER_H_ | 5 #ifndef UI_VIEWS_COREWM_FOCUS_CONTROLLER_H_ |
| 6 #define UI_VIEWS_COREWM_FOCUS_CONTROLLER_H_ | 6 #define UI_VIEWS_COREWM_FOCUS_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/observer_list.h" |
| 9 #include "base/scoped_observer.h" | 11 #include "base/scoped_observer.h" |
| 10 #include "ui/aura/client/activation_client.h" | 12 #include "ui/aura/client/activation_client.h" |
| 11 #include "ui/aura/client/focus_client.h" | 13 #include "ui/aura/client/focus_client.h" |
| 12 #include "ui/aura/window_observer.h" | 14 #include "ui/aura/window_observer.h" |
| 15 #include "ui/events/event_handler.h" |
| 13 #include "ui/views/views_export.h" | 16 #include "ui/views/views_export.h" |
| 14 | 17 |
| 15 namespace views { | 18 namespace views { |
| 16 namespace corewm { | 19 namespace corewm { |
| 17 | 20 |
| 18 class FocusRules; | 21 class FocusRules; |
| 19 | 22 |
| 20 // FocusController handles focus and activation changes for an environment | 23 // FocusController handles focus and activation changes for an environment |
| 21 // encompassing one or more RootWindows. Within an environment there can be | 24 // encompassing one or more RootWindows. Within an environment there can be |
| 22 // only one focused and one active window at a time. When focus or activation | 25 // only one focused and one active window at a time. When focus or activation |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 121 |
| 119 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; | 122 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; |
| 120 | 123 |
| 121 DISALLOW_COPY_AND_ASSIGN(FocusController); | 124 DISALLOW_COPY_AND_ASSIGN(FocusController); |
| 122 }; | 125 }; |
| 123 | 126 |
| 124 } // namespace corewm | 127 } // namespace corewm |
| 125 } // namespace views | 128 } // namespace views |
| 126 | 129 |
| 127 #endif // UI_VIEWS_COREWM_FOCUS_CONTROLLER_H_ | 130 #endif // UI_VIEWS_COREWM_FOCUS_CONTROLLER_H_ |
| OLD | NEW |