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
   37
   38

ash / wm / window_parenting_controller.h [blame]

// Copyright 2012 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_WINDOW_PARENTING_CONTROLLER_H_
#define ASH_WM_WINDOW_PARENTING_CONTROLLER_H_

#include "base/memory/raw_ptr.h"
#include "ui/aura/client/window_parenting_client.h"

namespace aura {
class Window;
}

namespace ash {

class WindowParentingController : public aura::client::WindowParentingClient {
 public:
  explicit WindowParentingController(aura::Window* root_window);

  WindowParentingController(const WindowParentingController&) = delete;
  WindowParentingController& operator=(const WindowParentingController&) =
      delete;

  ~WindowParentingController() override;

  // aura::client::WindowParentingClient:
  aura::Window* GetDefaultParent(aura::Window* window,
                                 const gfx::Rect& bounds,
                                 const int64_t display_id) override;

 private:
  raw_ptr<aura::Window> root_window_;
};

}  // namespace ash

#endif  // ASH_WM_WINDOW_PARENTING_CONTROLLER_H_