summaryrefslogtreecommitdiffstats
path: root/ui/aura/client/stacking_client.h
blob: 26d137b304dbdac1147f797068968cf5ffd9bd6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_AURA_CLIENT_STACKING_CLIENT_H_
#define UI_AURA_CLIENT_STACKING_CLIENT_H_
#pragma once

#include "ui/aura/aura_export.h"

namespace aura {

class Window;

// An interface implemented by an object that stacks windows.
class AURA_EXPORT StackingClient {
 public:
  virtual ~StackingClient() {}

  // Called by the Window when its parent is set to NULL. The delegate is given
  // an opportunity to inspect the window and add it to a default parent window
  // of its choosing.
  virtual void AddChildToDefaultParent(Window* window) = 0;

  // Returns true if |window| can be activated or deactivated.
  // A window manager typically defines some notion of "top level window" that
  // supports activation/deactivation.
  virtual bool CanActivateWindow(Window* window) const = 0;

  // Returns the window that should be activated other than |ignore|.
  virtual Window* GetTopmostWindowToActivate(Window* ignore) const = 0;
};

}  // namespace aura

#endif  // UI_AURA_CLIENT_STACKING_CLIENT_H_