| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011, 2012 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 const WebSize& tapArea) = 0; | 369 const WebSize& tapArea) = 0; |
| 370 | 370 |
| 371 // Notifies the WebView that a drag has terminated. | 371 // Notifies the WebView that a drag has terminated. |
| 372 virtual void dragSourceEndedAt(const WebPoint& pointInViewport, | 372 virtual void dragSourceEndedAt(const WebPoint& pointInViewport, |
| 373 const WebPoint& screenPoint, | 373 const WebPoint& screenPoint, |
| 374 WebDragOperation operation) = 0; | 374 WebDragOperation operation) = 0; |
| 375 | 375 |
| 376 // Notfies the WebView that the system drag and drop operation has ended. | 376 // Notfies the WebView that the system drag and drop operation has ended. |
| 377 virtual void dragSourceSystemDragEnded() = 0; | 377 virtual void dragSourceSystemDragEnded() = 0; |
| 378 | 378 |
| 379 // Callback methods when a drag-and-drop operation is trying to drop | |
| 380 // something on the WebView. | |
| 381 virtual WebDragOperation dragTargetDragEnter( | |
| 382 const WebDragData&, | |
| 383 const WebPoint& pointInViewport, | |
| 384 const WebPoint& screenPoint, | |
| 385 WebDragOperationsMask operationsAllowed, | |
| 386 int modifiers) = 0; | |
| 387 virtual WebDragOperation dragTargetDragOver( | |
| 388 const WebPoint& pointInViewport, | |
| 389 const WebPoint& screenPoint, | |
| 390 WebDragOperationsMask operationsAllowed, | |
| 391 int modifiers) = 0; | |
| 392 virtual void dragTargetDragLeave() = 0; | |
| 393 virtual void dragTargetDrop(const WebDragData&, | |
| 394 const WebPoint& pointInViewport, | |
| 395 const WebPoint& screenPoint, | |
| 396 int modifiers) = 0; | |
| 397 | |
| 398 // Retrieves a list of spelling markers. | 379 // Retrieves a list of spelling markers. |
| 399 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0; | 380 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0; |
| 400 virtual void removeSpellingMarkersUnderWords( | 381 virtual void removeSpellingMarkersUnderWords( |
| 401 const WebVector<WebString>& words) = 0; | 382 const WebVector<WebString>& words) = 0; |
| 402 | 383 |
| 403 // Support for resource loading initiated by plugins ------------------- | 384 // Support for resource loading initiated by plugins ------------------- |
| 404 | 385 |
| 405 // Returns next unused request identifier which is unique within the | 386 // Returns next unused request identifier which is unique within the |
| 406 // parent Page. | 387 // parent Page. |
| 407 virtual unsigned long createUniqueIdentifierForRequest() = 0; | 388 virtual unsigned long createUniqueIdentifierForRequest() = 0; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 // completed. | 511 // completed. |
| 531 WebWidget* widget() { return this; } | 512 WebWidget* widget() { return this; } |
| 532 | 513 |
| 533 protected: | 514 protected: |
| 534 ~WebView() {} | 515 ~WebView() {} |
| 535 }; | 516 }; |
| 536 | 517 |
| 537 } // namespace blink | 518 } // namespace blink |
| 538 | 519 |
| 539 #endif | 520 #endif |
| OLD | NEW |