| 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_ASH_FOCUS_RULES_H_ | 5 #ifndef ASH_WM_ASH_FOCUS_RULES_H_ |
| 6 #define ASH_WM_ASH_FOCUS_RULES_H_ | 6 #define ASH_WM_ASH_FOCUS_RULES_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" |
| 11 #include "ui/views/corewm/base_focus_rules.h" | 11 #include "ui/views/corewm/base_focus_rules.h" |
| 12 | 12 |
| 13 namespace ash { | 13 namespace ash { |
| 14 namespace wm { | 14 namespace wm { |
| 15 | 15 |
| 16 class ASH_EXPORT AshFocusRules : public views::corewm::BaseFocusRules { | 16 class ASH_EXPORT AshFocusRules : public views::corewm::BaseFocusRules { |
| 17 public: | 17 public: |
| 18 AshFocusRules(); | 18 AshFocusRules(); |
| 19 virtual ~AshFocusRules(); | 19 virtual ~AshFocusRules(); |
| 20 | 20 |
| 21 private: | 21 private: |
| 22 // Overridden from views::corewm::BaseFocusRules: | 22 // Overridden from views::corewm::BaseFocusRules: |
| 23 virtual bool SupportsChildActivation(aura::Window* window) const OVERRIDE; | 23 virtual bool SupportsChildActivation(aura::Window* window) const OVERRIDE; |
| 24 virtual bool IsWindowConsideredVisibleForActivation( | 24 virtual bool IsWindowConsideredVisibleForActivation( |
| 25 aura::Window* window) const OVERRIDE; | 25 aura::Window* window) const OVERRIDE; |
| 26 virtual bool CanActivateWindow(aura::Window* window) const OVERRIDE; | 26 virtual bool CanActivateWindow(aura::Window* window) const OVERRIDE; |
| 27 virtual aura::Window* GetNextActivatableWindow( | 27 virtual aura::Window* GetNextActivatableWindow( |
| 28 aura::Window* ignore) const OVERRIDE; | 28 aura::Window* ignore) const OVERRIDE; |
| 29 | 29 |
| 30 aura::Window* GetTopmostWindowToActivateForContainerIndex( |
| 31 int index, |
| 32 aura::Window* ignore) const; |
| 30 aura::Window* GetTopmostWindowToActivateInContainer( | 33 aura::Window* GetTopmostWindowToActivateInContainer( |
| 31 aura::Window* container, | 34 aura::Window* container, |
| 32 aura::Window* ignore) const; | 35 aura::Window* ignore) const; |
| 33 | 36 |
| 34 DISALLOW_COPY_AND_ASSIGN(AshFocusRules); | 37 DISALLOW_COPY_AND_ASSIGN(AshFocusRules); |
| 35 }; | 38 }; |
| 36 | 39 |
| 37 } // namespace wm | 40 } // namespace wm |
| 38 } // namespace ash | 41 } // namespace ash |
| 39 | 42 |
| 40 #endif // ASH_WM_ASH_FOCUS_RULES_H_ | 43 #endif // ASH_WM_ASH_FOCUS_RULES_H_ |
| OLD | NEW |