| 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 // Data exchange ------------------------------------------------------- | 360 // Data exchange ------------------------------------------------------- |
| 361 | 361 |
| 362 // Do a hit test at given point and return the HitTestResult. | 362 // Do a hit test at given point and return the HitTestResult. |
| 363 virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0; | 363 virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0; |
| 364 | 364 |
| 365 // Do a hit test equivalent to what would be done for a GestureTap event | 365 // Do a hit test equivalent to what would be done for a GestureTap event |
| 366 // that has width/height corresponding to the supplied |tapArea|. | 366 // that has width/height corresponding to the supplied |tapArea|. |
| 367 virtual WebHitTestResult hitTestResultForTap(const WebPoint& tapPoint, | 367 virtual WebHitTestResult hitTestResultForTap(const WebPoint& tapPoint, |
| 368 const WebSize& tapArea) = 0; | 368 const WebSize& tapArea) = 0; |
| 369 | 369 |
| 370 // Copy to the clipboard the image located at a particular point in the | |
| 371 // WebView (if there is such an image) | |
| 372 virtual void copyImageAt(const WebPoint&) = 0; | |
| 373 | |
| 374 // Save as the image located at a particular point in the | |
| 375 // WebView (if there is such an image) | |
| 376 virtual void saveImageAt(const WebPoint&) = 0; | |
| 377 | |
| 378 // Notifies the WebView that a drag has terminated. | 370 // Notifies the WebView that a drag has terminated. |
| 379 virtual void dragSourceEndedAt( | 371 virtual void dragSourceEndedAt( |
| 380 const WebPoint& clientPoint, const WebPoint& screenPoint, | 372 const WebPoint& clientPoint, const WebPoint& screenPoint, |
| 381 WebDragOperation operation) = 0; | 373 WebDragOperation operation) = 0; |
| 382 | 374 |
| 383 // Notfies the WebView that the system drag and drop operation has ended. | 375 // Notfies the WebView that the system drag and drop operation has ended. |
| 384 virtual void dragSourceSystemDragEnded() = 0; | 376 virtual void dragSourceSystemDragEnded() = 0; |
| 385 | 377 |
| 386 // Callback methods when a drag-and-drop operation is trying to drop | 378 // Callback methods when a drag-and-drop operation is trying to drop |
| 387 // something on the WebView. | 379 // something on the WebView. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 // completed. | 527 // completed. |
| 536 WebWidget* widget() { return this; } | 528 WebWidget* widget() { return this; } |
| 537 | 529 |
| 538 protected: | 530 protected: |
| 539 ~WebView() {} | 531 ~WebView() {} |
| 540 }; | 532 }; |
| 541 | 533 |
| 542 } // namespace blink | 534 } // namespace blink |
| 543 | 535 |
| 544 #endif | 536 #endif |
| OLD | NEW |