2014-07-01 00:30:29 +02:00
|
|
|
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2015-01-31 01:55:56 +01:00
|
|
|
#ifndef CEF_TESTS_CEFCLIENT_BROWSER_OSR_DRAGDROP_EVENTS_H_
|
|
|
|
#define CEF_TESTS_CEFCLIENT_BROWSER_OSR_DRAGDROP_EVENTS_H_
|
|
|
|
#pragma once
|
2015-01-23 18:37:23 +01:00
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
#include "include/cef_render_handler.h"
|
2016-11-18 00:52:42 +01:00
|
|
|
#include "tests/cefclient/browser/client_handler.h"
|
2014-07-01 00:30:29 +02:00
|
|
|
|
2015-01-23 18:37:23 +01:00
|
|
|
namespace client {
|
|
|
|
|
|
|
|
class OsrDragEvents {
|
2014-07-01 00:30:29 +02:00
|
|
|
public:
|
|
|
|
virtual CefBrowserHost::DragOperationsMask OnDragEnter(
|
|
|
|
CefRefPtr<CefDragData> drag_data,
|
|
|
|
CefMouseEvent ev,
|
|
|
|
CefBrowserHost::DragOperationsMask effect) = 0;
|
2015-01-23 18:37:23 +01:00
|
|
|
|
|
|
|
virtual CefBrowserHost::DragOperationsMask OnDragOver(
|
|
|
|
CefMouseEvent ev,
|
2014-07-01 00:30:29 +02:00
|
|
|
CefBrowserHost::DragOperationsMask effect) = 0;
|
2015-01-23 18:37:23 +01:00
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
virtual void OnDragLeave() = 0;
|
2015-01-23 18:37:23 +01:00
|
|
|
|
|
|
|
virtual CefBrowserHost::DragOperationsMask OnDrop(
|
|
|
|
CefMouseEvent ev,
|
2014-07-01 00:30:29 +02:00
|
|
|
CefBrowserHost::DragOperationsMask effect) = 0;
|
2015-01-23 18:37:23 +01:00
|
|
|
|
|
|
|
protected:
|
2024-01-20 03:22:56 +01:00
|
|
|
virtual ~OsrDragEvents() = default;
|
2014-07-01 00:30:29 +02:00
|
|
|
};
|
|
|
|
|
2015-01-23 18:37:23 +01:00
|
|
|
} // namespace client
|
|
|
|
|
2015-01-31 01:55:56 +01:00
|
|
|
#endif // CEF_TESTS_CEFCLIENT_BROWSER_OSR_DRAGDROP_EVENTS_H_
|