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_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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 aura::Window* GetFocusedWindow() override; | 63 aura::Window* GetFocusedWindow() override; |
| 64 | 64 |
| 65 // Overridden from ui::EventHandler: | 65 // Overridden from ui::EventHandler: |
| 66 void OnKeyEvent(ui::KeyEvent* event) override; | 66 void OnKeyEvent(ui::KeyEvent* event) override; |
| 67 void OnMouseEvent(ui::MouseEvent* event) override; | 67 void OnMouseEvent(ui::MouseEvent* event) override; |
| 68 void OnScrollEvent(ui::ScrollEvent* event) override; | 68 void OnScrollEvent(ui::ScrollEvent* event) override; |
| 69 void OnTouchEvent(ui::TouchEvent* event) override; | 69 void OnTouchEvent(ui::TouchEvent* event) override; |
| 70 void OnGestureEvent(ui::GestureEvent* event) override; | 70 void OnGestureEvent(ui::GestureEvent* event) override; |
| 71 | 71 |
| 72 // Overridden from aura::WindowObserver: | 72 // Overridden from aura::WindowObserver: |
| 73 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; | 73 void OnWindowVisibilityChanged(aura::Window* window, bool visible, |
| 74 bool contentVisible) override; | |
|
Elliot Glaysher
2015/03/03 00:33:52
nit: camel case doesn't match the cc file, use uni
| |
| 74 void OnWindowDestroying(aura::Window* window) override; | 75 void OnWindowDestroying(aura::Window* window) override; |
| 75 void OnWindowHierarchyChanging(const HierarchyChangeParams& params) override; | 76 void OnWindowHierarchyChanging(const HierarchyChangeParams& params) override; |
| 76 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override; | 77 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override; |
| 77 | 78 |
| 78 // Internal implementation that sets the focused window, fires events etc. | 79 // Internal implementation that sets the focused window, fires events etc. |
| 79 // This function must be called with a valid focusable window. | 80 // This function must be called with a valid focusable window. |
| 80 void SetFocusedWindow(aura::Window* window); | 81 void SetFocusedWindow(aura::Window* window); |
| 81 | 82 |
| 82 // Internal implementation that sets the active window, fires events etc. | 83 // Internal implementation that sets the active window, fires events etc. |
| 83 // This function must be called with a valid |activatable_window|. | 84 // This function must be called with a valid |activatable_window|. |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 111 ObserverList<aura::client::FocusChangeObserver> focus_observers_; | 112 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_ |
| OLD | NEW |