Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AURA_TOPLEVEL_WINDOW_CONTAINER_H_ | 5 #ifndef UI_AURA_TOPLEVEL_WINDOW_CONTAINER_H_ |
| 6 #define UI_AURA_TOPLEVEL_WINDOW_CONTAINER_H_ | 6 #define UI_AURA_TOPLEVEL_WINDOW_CONTAINER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/aura/aura_export.h" | 10 #include "ui/aura/aura_export.h" |
| 11 | 11 |
| 12 namespace aura { | 12 namespace aura { |
| 13 namespace internal { | |
| 14 | |
| 15 class FocusManager; | |
| 16 | 13 |
| 17 // A Window subclass that groups top-level windows. | 14 // A Window subclass that groups top-level windows. |
| 18 class AURA_EXPORT ToplevelWindowContainer : public Window { | 15 class AURA_EXPORT ToplevelWindowContainer : public Window { |
| 19 public: | 16 public: |
| 20 ToplevelWindowContainer(); | 17 ToplevelWindowContainer(); |
| 21 virtual ~ToplevelWindowContainer(); | 18 virtual ~ToplevelWindowContainer(); |
| 22 | 19 |
| 20 // Returns the topmost window to activate, ignoring |ignore|. | |
| 21 Window* GetTopmostWindowToActivate(Window* ignore) const; | |
| 22 | |
| 23 // Overridden from Window: | 23 // Overridden from Window: |
| 24 virtual bool IsToplevelWindowContainer() const OVERRIDE; | 24 virtual ToplevelWindowContainer* AsToplevelWindowContainer() OVERRIDE; |
| 25 virtual const ToplevelWindowContainer* AsToplevelWindowContainer() const | |
| 26 OVERRIDE; | |
|
sky
2011/10/07 19:59:45
nit: wrap function name to avoid dangling OVERRIDE
| |
| 25 | 27 |
| 26 private: | 28 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowContainer); | 29 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowContainer); |
| 28 }; | 30 }; |
| 29 | 31 |
| 30 } // namespace internal | |
| 31 } // namespace aura | 32 } // namespace aura |
| 32 | 33 |
| 33 #endif // UI_AURA_TOPLEVEL_WINDOW_CONTAINER_H_ | 34 #endif // UI_AURA_TOPLEVEL_WINDOW_CONTAINER_H_ |
| OLD | NEW |