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 "ui/aura/client/activation_client.h" | 9 #include "ui/aura/client/activation_client.h" |
10 #include "ui/aura/client/focus_client.h" | 10 #include "ui/aura/client/focus_client.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 aura::client::FocusChangeObserver* observer) OVERRIDE; | 64 aura::client::FocusChangeObserver* observer) OVERRIDE; |
65 virtual void FocusWindow(aura::Window* window, | 65 virtual void FocusWindow(aura::Window* window, |
66 const ui::Event* event) OVERRIDE; | 66 const ui::Event* event) OVERRIDE; |
67 virtual aura::Window* GetFocusedWindow() OVERRIDE; | 67 virtual aura::Window* GetFocusedWindow() OVERRIDE; |
68 | 68 |
69 // Overridden from ui::EventHandler: | 69 // Overridden from ui::EventHandler: |
70 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 70 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
71 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 71 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
72 virtual ui::EventResult OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 72 virtual ui::EventResult OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
73 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 73 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
74 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 74 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
75 | 75 |
76 // Overridden from aura::WindowObserver: | 76 // Overridden from aura::WindowObserver: |
77 virtual void OnWindowVisibilityChanging(aura::Window* window, | 77 virtual void OnWindowVisibilityChanging(aura::Window* window, |
78 bool visible) OVERRIDE; | 78 bool visible) OVERRIDE; |
79 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 79 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
80 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; | 80 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; |
81 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE; | 81 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE; |
82 | 82 |
83 // Overridden from aura::EnvObserver: | 83 // Overridden from aura::EnvObserver: |
84 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; | 84 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; |
(...skipping 24 matching lines...) Expand all Loading... |
109 | 109 |
110 scoped_ptr<FocusRules> rules_; | 110 scoped_ptr<FocusRules> rules_; |
111 | 111 |
112 DISALLOW_COPY_AND_ASSIGN(FocusController); | 112 DISALLOW_COPY_AND_ASSIGN(FocusController); |
113 }; | 113 }; |
114 | 114 |
115 } // namespace corewm | 115 } // namespace corewm |
116 } // namespace views | 116 } // namespace views |
117 | 117 |
118 #endif // UI_VIEWS_COREWM_FOCUS_CONTROLLER_H_ | 118 #endif // UI_VIEWS_COREWM_FOCUS_CONTROLLER_H_ |
OLD | NEW |