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

Side by Side Diff: ui/aura/client/stacking_client.h

Issue 8894018: Move the concept of Activation to the Shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/aura/demo/demo_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CLIENT_STACKING_CLIENT_H_ 5 #ifndef UI_AURA_CLIENT_STACKING_CLIENT_H_
6 #define UI_AURA_CLIENT_STACKING_CLIENT_H_ 6 #define UI_AURA_CLIENT_STACKING_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/aura/aura_export.h" 9 #include "ui/aura/aura_export.h"
10 10
11 namespace aura { 11 namespace aura {
12 12
13 class Window; 13 class Window;
14 14
15 // An interface implemented by an object that stacks windows. 15 // An interface implemented by an object that stacks windows.
16 class AURA_EXPORT StackingClient { 16 class AURA_EXPORT StackingClient {
17 public: 17 public:
18 virtual ~StackingClient() {} 18 virtual ~StackingClient() {}
19 19
20 // Called by the Window when its parent is set to NULL. The delegate is given 20 // Called by the Window when its parent is set to NULL. The delegate is given
21 // an opportunity to inspect the window and add it to a default parent window 21 // an opportunity to inspect the window and add it to a default parent window
22 // of its choosing. 22 // of its choosing.
23 virtual void AddChildToDefaultParent(Window* window) = 0; 23 virtual void AddChildToDefaultParent(Window* window) = 0;
24
25 // Returns true if |window| can be activated or deactivated.
26 // A window manager typically defines some notion of "top level window" that
27 // supports activation/deactivation.
28 virtual bool CanActivateWindow(Window* window) const = 0;
29
30 // Returns the window that should be activated other than |ignore|.
31 virtual Window* GetTopmostWindowToActivate(Window* ignore) const = 0;
32 }; 24 };
33 25
34 } // namespace aura 26 } // namespace aura
35 27
36 #endif // UI_AURA_CLIENT_STACKING_CLIENT_H_ 28 #endif // UI_AURA_CLIENT_STACKING_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/aura/demo/demo_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698