#include "extensions/shell/browser/root_window_controller.h"
#include "base/memory/raw_ptr.h"
#include "extensions/browser/app_window/app_window.h"
#include "extensions/browser/app_window/native_app_window.h"
#include "extensions/shell/browser/shell_app_delegate.h"
#include "ui/aura/layout_manager.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tracker.h"
#include "ui/aura/window_tree_host.h"
#include "ui/display/display.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
#include "ui/platform_window/platform_window_init_properties.h"
#include "ui/wm/core/default_screen_position_client.h"
namespace extensions {
namespace {
class FillLayout : public aura::LayoutManager { … };
class ScreenPositionClient : public wm::DefaultScreenPositionClient { … };
}
RootWindowController::RootWindowController(
DesktopDelegate* desktop_delegate,
const gfx::Rect& bounds,
content::BrowserContext* browser_context)
: … { … }
RootWindowController::~RootWindowController() { … }
void RootWindowController::AddAppWindow(AppWindow* app_window,
gfx::NativeWindow window) { … }
void RootWindowController::RemoveAppWindow(AppWindow* app_window) { … }
void RootWindowController::CloseAppWindows() { … }
void RootWindowController::UpdateSize(const gfx::Size& size) { … }
aura::Window* RootWindowController::GetDefaultParent(aura::Window* window,
const gfx::Rect& bounds,
const int64_t display_id) { … }
void RootWindowController::OnHostCloseRequested(aura::WindowTreeHost* host) { … }
void RootWindowController::OnAppWindowRemoved(AppWindow* window) { … }
void RootWindowController::DestroyWindowTreeHost() { … }
}