1 // Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights 2 // reserved. Use of this source code is governed by a BSD-style license that 3 // can be found in the LICENSE file. 4 5 #ifndef CEF_TESTS_CEFCLIENT_BROWSER_OSR_DRAGDROP_EVENTS_H_ 6 #define CEF_TESTS_CEFCLIENT_BROWSER_OSR_DRAGDROP_EVENTS_H_ 7 #pragma once 8 9 #include "include/cef_render_handler.h" 10 #include "tests/cefclient/browser/client_handler.h" 11 12 namespace client { 13 14 class OsrDragEvents { 15 public: 16 virtual CefBrowserHost::DragOperationsMask OnDragEnter( 17 CefRefPtr<CefDragData> drag_data, 18 CefMouseEvent ev, 19 CefBrowserHost::DragOperationsMask effect) = 0; 20 21 virtual CefBrowserHost::DragOperationsMask OnDragOver( 22 CefMouseEvent ev, 23 CefBrowserHost::DragOperationsMask effect) = 0; 24 25 virtual void OnDragLeave() = 0; 26 27 virtual CefBrowserHost::DragOperationsMask OnDrop( 28 CefMouseEvent ev, 29 CefBrowserHost::DragOperationsMask effect) = 0; 30 31 protected: ~OsrDragEvents()32 virtual ~OsrDragEvents() {} 33 }; 34 35 } // namespace client 36 37 #endif // CEF_TESTS_CEFCLIENT_BROWSER_OSR_DRAGDROP_EVENTS_H_ 38