| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebFrameWidgetBase_h | 5 #ifndef WebFrameWidgetBase_h |
| 6 #define WebFrameWidgetBase_h | 6 #define WebFrameWidgetBase_h |
| 7 | 7 |
| 8 #include "core/clipboard/DataObject.h" | 8 #include "core/clipboard/DataObject.h" |
| 9 #include "public/platform/WebDragData.h" | 9 #include "public/platform/WebDragData.h" |
| 10 #include "public/web/WebFrameWidget.h" | 10 #include "public/web/WebFrameWidget.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 int modifiers) override; | 52 int modifiers) override; |
| 53 WebDragOperation dragTargetDragOver(const WebPoint& pointInViewport, | 53 WebDragOperation dragTargetDragOver(const WebPoint& pointInViewport, |
| 54 const WebPoint& screenPoint, | 54 const WebPoint& screenPoint, |
| 55 WebDragOperationsMask operationsAllowed, | 55 WebDragOperationsMask operationsAllowed, |
| 56 int modifiers) override; | 56 int modifiers) override; |
| 57 void dragTargetDragLeave() override; | 57 void dragTargetDragLeave() override; |
| 58 void dragTargetDrop(const WebDragData&, | 58 void dragTargetDrop(const WebDragData&, |
| 59 const WebPoint& pointInViewport, | 59 const WebPoint& pointInViewport, |
| 60 const WebPoint& screenPoint, | 60 const WebPoint& screenPoint, |
| 61 int modifiers) override; | 61 int modifiers) override; |
| 62 void dragSourceEndedAt(const WebPoint& pointInViewport, |
| 63 const WebPoint& screenPoint, |
| 64 WebDragOperation) override; |
| 65 void dragSourceSystemDragEnded() override; |
| 62 | 66 |
| 63 protected: | 67 protected: |
| 64 enum DragAction { DragEnter, DragOver }; | 68 enum DragAction { DragEnter, DragOver }; |
| 65 | 69 |
| 66 // Consolidate some common code between starting a drag over a target and | 70 // Consolidate some common code between starting a drag over a target and |
| 67 // updating a drag over a target. If we're starting a drag, |isEntering| | 71 // updating a drag over a target. If we're starting a drag, |isEntering| |
| 68 // should be true. | 72 // should be true. |
| 69 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& pointInViewport, | 73 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& pointInViewport, |
| 70 const WebPoint& screenPoint, | 74 const WebPoint& screenPoint, |
| 71 DragAction, | 75 DragAction, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 92 // When not equal to DragOperationNone, the drag data can be dropped onto the | 96 // When not equal to DragOperationNone, the drag data can be dropped onto the |
| 93 // current drop target in this WebView (the drop target can accept the drop). | 97 // current drop target in this WebView (the drop target can accept the drop). |
| 94 WebDragOperation m_dragOperation = WebDragOperationNone; | 98 WebDragOperation m_dragOperation = WebDragOperationNone; |
| 95 }; | 99 }; |
| 96 | 100 |
| 97 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); | 101 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); |
| 98 | 102 |
| 99 } // namespace blink | 103 } // namespace blink |
| 100 | 104 |
| 101 #endif | 105 #endif |
| OLD | NEW |