| 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 ASH_WM_ACTIVATION_CONTROLLER_H_ | 5 #ifndef ASH_WM_ACTIVATION_CONTROLLER_H_ |
| 6 #define ASH_WM_ACTIVATION_CONTROLLER_H_ | 6 #define ASH_WM_ACTIVATION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // Overridden from aura::client::FocusChangeObserver: | 71 // Overridden from aura::client::FocusChangeObserver: |
| 72 virtual void OnWindowFocused(aura::Window* window) OVERRIDE; | 72 virtual void OnWindowFocused(aura::Window* window) OVERRIDE; |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 // Overridden from ui::EventHandler: | 75 // Overridden from ui::EventHandler: |
| 76 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 76 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
| 77 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 77 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
| 78 virtual ui::EventResult OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 78 virtual ui::EventResult OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
| 79 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 79 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
| 80 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 80 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 81 | 81 |
| 82 // Implementation of ActivateWindow() with an Event. | 82 // Implementation of ActivateWindow() with an Event. |
| 83 void ActivateWindowWithEvent(aura::Window* window, | 83 void ActivateWindowWithEvent(aura::Window* window, |
| 84 const ui::Event* event); | 84 const ui::Event* event); |
| 85 | 85 |
| 86 // Shifts activation to the next window, ignoring |window|. Returns the next | 86 // Shifts activation to the next window, ignoring |window|. Returns the next |
| 87 // window. | 87 // window. |
| 88 aura::Window* ActivateNextWindow(aura::Window* window); | 88 aura::Window* ActivateNextWindow(aura::Window* window); |
| 89 | 89 |
| 90 // Returns the next window that should be activated, ignoring |ignore|. | 90 // Returns the next window that should be activated, ignoring |ignore|. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 115 | 115 |
| 116 scoped_ptr<ActivationControllerDelegate> delegate_; | 116 scoped_ptr<ActivationControllerDelegate> delegate_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(ActivationController); | 118 DISALLOW_COPY_AND_ASSIGN(ActivationController); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace internal | 121 } // namespace internal |
| 122 } // namespace ash | 122 } // namespace ash |
| 123 | 123 |
| 124 #endif // ASH_WM_ACTIVATION_CONTROLLER_H_ | 124 #endif // ASH_WM_ACTIVATION_CONTROLLER_H_ |
| OLD | NEW |