Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: ui/aura/toplevel_window_container.h

Issue 8194004: change the way windows are parented when their parent is set to NULL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698