#include "screensaver.h"
#include <unistd.h>
#include <xcb/xcb.h>
#include <xcb/xcbext.h>
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/xproto_internal.h"
namespace x11 {
ScreenSaver::ScreenSaver(Connection* connection,
const x11::QueryExtensionReply& info)
: … { … }
template <>
COMPONENT_EXPORT(X11)
void ReadEvent<ScreenSaver::NotifyEvent>(ScreenSaver::NotifyEvent* event_,
ReadBuffer* buffer) { … }
Future<ScreenSaver::QueryVersionReply> ScreenSaver::QueryVersion(
const ScreenSaver::QueryVersionRequest& request) { … }
Future<ScreenSaver::QueryVersionReply> ScreenSaver::QueryVersion(
const uint8_t& client_major_version,
const uint8_t& client_minor_version) { … }
template <>
COMPONENT_EXPORT(X11)
std::unique_ptr<ScreenSaver::QueryVersionReply> detail::ReadReply<
ScreenSaver::QueryVersionReply>(ReadBuffer* buffer) { … }
Future<ScreenSaver::QueryInfoReply> ScreenSaver::QueryInfo(
const ScreenSaver::QueryInfoRequest& request) { … }
Future<ScreenSaver::QueryInfoReply> ScreenSaver::QueryInfo(
const Drawable& drawable) { … }
template <>
COMPONENT_EXPORT(X11)
std::unique_ptr<ScreenSaver::QueryInfoReply> detail::ReadReply<
ScreenSaver::QueryInfoReply>(ReadBuffer* buffer) { … }
Future<void> ScreenSaver::SelectInput(
const ScreenSaver::SelectInputRequest& request) { … }
Future<void> ScreenSaver::SelectInput(const Drawable& drawable,
const Event& event_mask) { … }
Future<void> ScreenSaver::SetAttributes(
const ScreenSaver::SetAttributesRequest& request) { … }
Future<void> ScreenSaver::SetAttributes(
const Drawable& drawable,
const int16_t& x,
const int16_t& y,
const uint16_t& width,
const uint16_t& height,
const uint16_t& border_width,
const WindowClass& c_class,
const uint8_t& depth,
const VisualId& visual,
const std::optional<Pixmap>& background_pixmap,
const std::optional<uint32_t>& background_pixel,
const std::optional<Pixmap>& border_pixmap,
const std::optional<uint32_t>& border_pixel,
const std::optional<Gravity>& bit_gravity,
const std::optional<Gravity>& win_gravity,
const std::optional<BackingStore>& backing_store,
const std::optional<uint32_t>& backing_planes,
const std::optional<uint32_t>& backing_pixel,
const std::optional<Bool32>& override_redirect,
const std::optional<Bool32>& save_under,
const std::optional<EventMask>& event_mask,
const std::optional<EventMask>& do_not_propogate_mask,
const std::optional<ColorMap>& colormap,
const std::optional<Cursor>& cursor) { … }
Future<void> ScreenSaver::UnsetAttributes(
const ScreenSaver::UnsetAttributesRequest& request) { … }
Future<void> ScreenSaver::UnsetAttributes(const Drawable& drawable) { … }
Future<void> ScreenSaver::Suspend(const ScreenSaver::SuspendRequest& request) { … }
Future<void> ScreenSaver::Suspend(const uint32_t& suspend) { … }
}