|
20 | 20 | // ClientHandler implementation. |
21 | 21 | class ClientHandler : public CefClient, |
22 | 22 | public CefLifeSpanHandler, |
| 23 | + public CefDragHandler, |
23 | 24 | public CefLoadHandler, |
24 | 25 | public CefRequestHandler, |
25 | 26 | public CefDisplayHandler, |
26 | 27 | public CefKeyboardHandler, |
27 | 28 | public CefGeolocationHandler, |
28 | 29 | public CefContextMenuHandler { |
29 | | - public: |
| 30 | +public: |
30 | 31 | // Interface for process message delegates. Do not perform work in the |
31 | 32 | // RenderDelegate constructor. |
32 | 33 | class ProcessMessageDelegate : public virtual CefBase { |
@@ -70,6 +71,9 @@ class ClientHandler : public CefClient, |
70 | 71 | virtual CefRefPtr<CefLifeSpanHandler> GetLifeSpanHandler() OVERRIDE { |
71 | 72 | return this; |
72 | 73 | } |
| 74 | + virtual CefRefPtr<CefDragHandler> GetDragHandler() OVERRIDE { |
| 75 | + return this; |
| 76 | + } |
73 | 77 | virtual CefRefPtr<CefLoadHandler> GetLoadHandler() OVERRIDE { |
74 | 78 | return this; |
75 | 79 | } |
@@ -99,6 +103,11 @@ class ClientHandler : public CefClient, |
99 | 103 | virtual void OnAfterCreated(CefRefPtr<CefBrowser> browser) OVERRIDE; |
100 | 104 | virtual bool DoClose(CefRefPtr<CefBrowser> browser) OVERRIDE; |
101 | 105 | virtual void OnBeforeClose(CefRefPtr<CefBrowser> browser) OVERRIDE; |
| 106 | + |
| 107 | + // CefDragHandler methods |
| 108 | + virtual bool OnDragEnter(CefRefPtr<CefBrowser> browser, |
| 109 | + CefRefPtr<CefDragData> dragData, |
| 110 | + DragOperationsMask mask) OVERRIDE; |
102 | 111 |
|
103 | 112 | // CefLoadHandler methods |
104 | 113 | virtual void OnLoadStart(CefRefPtr<CefBrowser> browser, |
|
0 commit comments