#include "chromeos/ash/experiences/screenshot_area/screenshot_area.h"
ScreenshotArea ScreenshotArea::CreateForAllRootWindows() {
return ScreenshotArea(ScreenshotType::kAllRootWindows, nullptr, std::nullopt);
}
ScreenshotArea ScreenshotArea::CreateForWindow(const aura::Window* window) {
return ScreenshotArea(ScreenshotType::kWindow, window, std::nullopt);
}
ScreenshotArea ScreenshotArea::CreateForPartialWindow(
const aura::Window* window,
const gfx::Rect rect) {
return ScreenshotArea(ScreenshotType::kPartialWindow, window, rect);
}
ScreenshotArea::ScreenshotArea(const ScreenshotArea& area) = default;
ScreenshotArea::ScreenshotArea(ScreenshotType type,
const aura::Window* window,
std::optional<const gfx::Rect> rect)
: type(type), window(window), rect(rect) {}