1#ifndef YAZE_APP_CORE_SERVICE_SCREENSHOT_UTILS_H_
2#define YAZE_APP_CORE_SERVICE_SCREENSHOT_UTILS_H_
9#include "absl/status/statusor.h"
14struct ScreenshotArtifact {
15 std::string file_path;
18 int64_t file_size_bytes = 0;
32absl::StatusOr<ScreenshotArtifact> CaptureHarnessScreenshot(
33 const std::string& preferred_path =
"");
38absl::StatusOr<ScreenshotArtifact> CaptureHarnessScreenshotRegion(
39 const std::optional<CaptureRegion>& region,
40 const std::string& preferred_path =
"");
43absl::StatusOr<ScreenshotArtifact> CaptureActiveWindow(
44 const std::string& preferred_path =
"");
47absl::StatusOr<ScreenshotArtifact> CaptureWindowByName(
48 const std::string& window_name,
const std::string& preferred_path =
"");