| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual bool CanActivateWindow(aura::Window* window) const OVERRIDE; | 57 virtual bool CanActivateWindow(aura::Window* window) const OVERRIDE; |
| 58 | 58 |
| 59 // Overridden from aura::client::FocusClient: | 59 // Overridden from aura::client::FocusClient: |
| 60 virtual void AddObserver( | 60 virtual void AddObserver( |
| 61 aura::client::FocusChangeObserver* observer) OVERRIDE; | 61 aura::client::FocusChangeObserver* observer) OVERRIDE; |
| 62 virtual void RemoveObserver( | 62 virtual void RemoveObserver( |
| 63 aura::client::FocusChangeObserver* observer) OVERRIDE; | 63 aura::client::FocusChangeObserver* observer) OVERRIDE; |
| 64 virtual void FocusWindow(aura::Window* window) OVERRIDE; | 64 virtual void FocusWindow(aura::Window* window) OVERRIDE; |
| 65 virtual void ResetFocusWithinActiveWindow(aura::Window* window) OVERRIDE; | 65 virtual void ResetFocusWithinActiveWindow(aura::Window* window) OVERRIDE; |
| 66 virtual aura::Window* GetFocusedWindow() OVERRIDE; | 66 virtual aura::Window* GetFocusedWindow() OVERRIDE; |
| 67 virtual void OnWindowHiddenInRootWindow(aura::Window* window, | |
| 68 aura::RootWindow* root_window, | |
| 69 bool destroyed) OVERRIDE; | |
| 70 | 67 |
| 71 // Overridden from ui::EventHandler: | 68 // Overridden from ui::EventHandler: |
| 72 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 69 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
| 73 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 70 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
| 74 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 71 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
| 75 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 72 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
| 76 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 73 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 77 | 74 |
| 78 // Overridden from aura::WindowObserver: | 75 // Overridden from aura::WindowObserver: |
| 79 virtual void OnWindowVisibilityChanged(aura::Window* window, | 76 virtual void OnWindowVisibilityChanged(aura::Window* window, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 118 |
| 122 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; | 119 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; |
| 123 | 120 |
| 124 DISALLOW_COPY_AND_ASSIGN(FocusController); | 121 DISALLOW_COPY_AND_ASSIGN(FocusController); |
| 125 }; | 122 }; |
| 126 | 123 |
| 127 } // namespace corewm | 124 } // namespace corewm |
| 128 } // namespace views | 125 } // namespace views |
| 129 | 126 |
| 130 #endif // UI_VIEWS_COREWM_FOCUS_CONTROLLER_H_ | 127 #endif // UI_VIEWS_COREWM_FOCUS_CONTROLLER_H_ |
| OLD | NEW |