| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebWidgetClient_h | 31 #ifndef WebWidgetClient_h |
| 32 #define WebWidgetClient_h | 32 #define WebWidgetClient_h |
| 33 | 33 |
| 34 #include "WebNavigationPolicy.h" | 34 #include "WebNavigationPolicy.h" |
| 35 #include "public/platform/WebCommon.h" | 35 #include "public/platform/WebCommon.h" |
| 36 #include "public/platform/WebDragOperation.h" |
| 36 #include "public/platform/WebLayerTreeView.h" | 37 #include "public/platform/WebLayerTreeView.h" |
| 37 #include "public/platform/WebPoint.h" | 38 #include "public/platform/WebPoint.h" |
| 38 #include "public/platform/WebRect.h" | 39 #include "public/platform/WebRect.h" |
| 40 #include "public/platform/WebReferrerPolicy.h" |
| 39 #include "public/platform/WebScreenInfo.h" | 41 #include "public/platform/WebScreenInfo.h" |
| 40 #include "public/web/WebMeaningfulLayout.h" | 42 #include "public/web/WebMeaningfulLayout.h" |
| 41 #include "public/web/WebTextDirection.h" | 43 #include "public/web/WebTextDirection.h" |
| 42 #include "public/web/WebTouchAction.h" | 44 #include "public/web/WebTouchAction.h" |
| 43 | 45 |
| 44 namespace blink { | 46 namespace blink { |
| 45 | 47 |
| 48 class WebDragData; |
| 46 class WebGestureEvent; | 49 class WebGestureEvent; |
| 50 class WebImage; |
| 51 class WebLocalFrame; |
| 47 class WebNode; | 52 class WebNode; |
| 48 class WebString; | 53 class WebString; |
| 49 class WebWidget; | 54 class WebWidget; |
| 50 struct WebCursorInfo; | 55 struct WebCursorInfo; |
| 51 struct WebFloatPoint; | 56 struct WebFloatPoint; |
| 52 struct WebFloatRect; | 57 struct WebFloatRect; |
| 53 struct WebFloatSize; | 58 struct WebFloatSize; |
| 54 struct WebSize; | 59 struct WebSize; |
| 55 | 60 |
| 56 class WebWidgetClient { | 61 class WebWidgetClient { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // TODO(oshima): Update the comment when the migration is completed. | 179 // TODO(oshima): Update the comment when the migration is completed. |
| 175 virtual void convertViewportToWindow(WebRect* rect) {} | 180 virtual void convertViewportToWindow(WebRect* rect) {} |
| 176 | 181 |
| 177 // Converts the |rect| from the coordinates in native window in | 182 // Converts the |rect| from the coordinates in native window in |
| 178 // DIP to Blink's Viewport coordinates. They're identical in | 183 // DIP to Blink's Viewport coordinates. They're identical in |
| 179 // tradional world, but will differ when use-zoom-for-dsf feature | 184 // tradional world, but will differ when use-zoom-for-dsf feature |
| 180 // is eanbled. TODO(oshima): Update the comment when the | 185 // is eanbled. TODO(oshima): Update the comment when the |
| 181 // migration is completed. | 186 // migration is completed. |
| 182 virtual void convertWindowToViewport(WebFloatRect* rect) {} | 187 virtual void convertWindowToViewport(WebFloatRect* rect) {} |
| 183 | 188 |
| 189 // Called when a drag-and-drop operation should begin. |
| 190 virtual void startDragging(WebReferrerPolicy, |
| 191 const WebDragData&, |
| 192 WebDragOperationsMask, |
| 193 const WebImage& dragImage, |
| 194 const WebPoint& dragImageOffset) {} |
| 195 |
| 184 protected: | 196 protected: |
| 185 ~WebWidgetClient() {} | 197 ~WebWidgetClient() {} |
| 186 }; | 198 }; |
| 187 | 199 |
| 188 } // namespace blink | 200 } // namespace blink |
| 189 | 201 |
| 190 #endif | 202 #endif |
| OLD | NEW |