Chromium Code Reviews| 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/scoped_observer.h" | 9 #include "base/scoped_observer.h" |
| 10 #include "ui/aura/client/activation_client.h" | 10 #include "ui/aura/client/activation_client.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 81 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
| 82 virtual void OnWindowHierarchyChanging( | 82 virtual void OnWindowHierarchyChanging( |
| 83 const HierarchyChangeParams& params) OVERRIDE; | 83 const HierarchyChangeParams& params) OVERRIDE; |
| 84 virtual void OnWindowHierarchyChanged( | 84 virtual void OnWindowHierarchyChanged( |
| 85 const HierarchyChangeParams& params) OVERRIDE; | 85 const HierarchyChangeParams& params) OVERRIDE; |
| 86 | 86 |
| 87 // Internal implementations that set the focused/active windows, fire events | 87 // Internal implementations that set the focused/active windows, fire events |
| 88 // etc. These functions must be called with valid focusable/activatable | 88 // etc. These functions must be called with valid focusable/activatable |
| 89 // windows. | 89 // windows. |
| 90 void SetFocusedWindow(aura::Window* window); | 90 void SetFocusedWindow(aura::Window* window); |
| 91 void SetActiveWindow(aura::Window* window); | 91 void SetActiveWindow(aura::Window* requested_window, aura::Window* window); |
|
sky
2013/04/23 21:36:42
Document what requested_window is.
sschmitz
2013/04/24 01:23:43
Done.
| |
| 92 | 92 |
| 93 // Called when a window's disposition changed such that it and its hierarchy | 93 // Called when a window's disposition changed such that it and its hierarchy |
| 94 // are no longer focusable/activatable. |next| is a valid window that is used | 94 // are no longer focusable/activatable. |next| is a valid window that is used |
| 95 // as a starting point for finding a window to focus next based on rules. | 95 // as a starting point for finding a window to focus next based on rules. |
| 96 void WindowLostFocusFromDispositionChange(aura::Window* window, | 96 void WindowLostFocusFromDispositionChange(aura::Window* window, |
| 97 aura::Window* next); | 97 aura::Window* next); |
| 98 | 98 |
| 99 // Called when an attempt is made to focus or activate a window via an input | 99 // Called when an attempt is made to focus or activate a window via an input |
| 100 // event targeted at that window. Rules determine the best focusable window | 100 // event targeted at that window. Rules determine the best focusable window |
| 101 // for the input window. | 101 // for the input window. |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 114 | 114 |
| 115 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; | 115 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(FocusController); | 117 DISALLOW_COPY_AND_ASSIGN(FocusController); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } // namespace corewm | 120 } // namespace corewm |
| 121 } // namespace views | 121 } // namespace views |
| 122 | 122 |
| 123 #endif // UI_VIEWS_COREWM_FOCUS_CONTROLLER_H_ | 123 #endif // UI_VIEWS_COREWM_FOCUS_CONTROLLER_H_ |
| OLD | NEW |