| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // NULL if there is no event. | 33 // NULL if there is no event. |
| 34 static aura::Window* GetActivatableWindow(aura::Window* window, | 34 static aura::Window* GetActivatableWindow(aura::Window* window, |
| 35 const aura::Event* event); | 35 const aura::Event* event); |
| 36 | 36 |
| 37 // Overridden from aura::client::ActivationClient: | 37 // Overridden from aura::client::ActivationClient: |
| 38 virtual void ActivateWindow(aura::Window* window) OVERRIDE; | 38 virtual void ActivateWindow(aura::Window* window) OVERRIDE; |
| 39 virtual void DeactivateWindow(aura::Window* window) OVERRIDE; | 39 virtual void DeactivateWindow(aura::Window* window) OVERRIDE; |
| 40 virtual aura::Window* GetActiveWindow() OVERRIDE; | 40 virtual aura::Window* GetActiveWindow() OVERRIDE; |
| 41 virtual bool OnWillFocusWindow(aura::Window* window, | 41 virtual bool OnWillFocusWindow(aura::Window* window, |
| 42 const aura::Event* event) OVERRIDE; | 42 const aura::Event* event) OVERRIDE; |
| 43 virtual bool CanActivateWindow(aura::Window* window) const OVERRIDE; |
| 43 | 44 |
| 44 // Overridden from aura::WindowObserver: | 45 // Overridden from aura::WindowObserver: |
| 45 virtual void OnWindowVisibilityChanged(aura::Window* window, | 46 virtual void OnWindowVisibilityChanged(aura::Window* window, |
| 46 bool visible) OVERRIDE; | 47 bool visible) OVERRIDE; |
| 47 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 48 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
| 48 | 49 |
| 49 // Overridden from aura::EnvObserver: | 50 // Overridden from aura::EnvObserver: |
| 50 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; | 51 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; |
| 51 | 52 |
| 52 // Overridden from aura::RootWindowObserver: | 53 // Overridden from aura::RootWindowObserver: |
| (...skipping 21 matching lines...) Expand all Loading... |
| 74 // change notifications causing activation. | 75 // change notifications causing activation. |
| 75 bool updating_activation_; | 76 bool updating_activation_; |
| 76 | 77 |
| 77 DISALLOW_COPY_AND_ASSIGN(ActivationController); | 78 DISALLOW_COPY_AND_ASSIGN(ActivationController); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace internal | 81 } // namespace internal |
| 81 } // namespace ash | 82 } // namespace ash |
| 82 | 83 |
| 83 #endif // ASH_WM_ACTIVATION_CONTROLLER_H_ | 84 #endif // ASH_WM_ACTIVATION_CONTROLLER_H_ |
| OLD | NEW |