chromium/ui/base/x/x11_drag_context.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/base/x/x11_drag_context.h"

#include "base/logging.h"
#include "base/memory/ref_counted_memory.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/x/x11_drag_drop_client.h"
#include "ui/base/x/x11_util.h"
#include "ui/events/platform/platform_event_source.h"
#include "ui/gfx/x/atom_cache.h"
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/xproto.h"

namespace ui {

namespace {

// Window property that holds the supported drag and drop data types.
// This property is set on the XDND source window when the drag and drop data
// can be converted to more than 3 types.
const char kXdndTypeList[] =;

// Selection used by the XDND protocol to transfer data between applications.
const char kXdndSelection[] =;

// Window property that contains the possible actions that will be presented to
// the user when the drag and drop action is kXdndActionAsk.
const char kXdndActionList[] =;

// These actions have the same meaning as in the W3C Drag and Drop spec.
const char kXdndActionCopy[] =;
const char kXdndActionMove[] =;
const char kXdndActionLink[] =;

// Window property that will receive the drag and drop selection data.
const char kChromiumDragReciever[] =;

}  // namespace

XDragContext::XDragContext(x11::Window local_window,
                           const x11::ClientMessageEvent& event,
                           const SelectionFormatMap& data)
    :{}

XDragContext::~XDragContext() = default;

void XDragContext::OnXdndPositionMessage(XDragDropClient* client,
                                         x11::Atom suggested_action,
                                         x11::Window source_window,
                                         x11::Time time_stamp,
                                         const gfx::Point& screen_point) {}

void XDragContext::RequestNextTarget() {}

void XDragContext::OnSelectionNotify(const x11::SelectionNotifyEvent& event) {}

void XDragContext::ReadActions() {}

int XDragContext::GetDragOperation() const {}

void XDragContext::MaskOperation(x11::Atom xdnd_operation,
                                 int* drag_operation) const {}

bool XDragContext::DispatchPropertyNotifyEvent(
    const x11::PropertyNotifyEvent& prop) {}

}  // namespace ui