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

ash / wm / fullscreen_window_finder.h [blame]

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_WM_FULLSCREEN_WINDOW_FINDER_H_
#define ASH_WM_FULLSCREEN_WINDOW_FINDER_H_

#include "ash/ash_export.h"

namespace aura {
class Window;
}

namespace ash {

// Returns the topmost window or one of its transient parents, if any of them
// are in fullscreen mode. This searches for a window in the switchable
// container parent of |context|. This can be used to find if there's a
// fullscreen window in the desk container of |context| or the always on top
// container if |context| belongs to it.
ASH_EXPORT aura::Window* GetWindowForFullscreenModeForContext(
    aura::Window* context);

// Returns the topmost window or one of its transient parents, if any of them
// are in fullscreen mode. This searches for a window in |root|. This considers
// only the always-on-top container or the active desk container.
ASH_EXPORT aura::Window* GetWindowForFullscreenModeInRoot(aura::Window* root);

}  // namespace ash

#endif  // ASH_WM_FULLSCREEN_WINDOW_FINDER_H_