Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(963)

Side by Side Diff: third_party/WebKit/public/web/WebView.h

Issue 2396693002: Convert drag event position to root frame. (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 363
364 // Do a hit test at given point and return the HitTestResult. 364 // Do a hit test at given point and return the HitTestResult.
365 virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0; 365 virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0;
366 366
367 // Do a hit test equivalent to what would be done for a GestureTap event 367 // Do a hit test equivalent to what would be done for a GestureTap event
368 // that has width/height corresponding to the supplied |tapArea|. 368 // that has width/height corresponding to the supplied |tapArea|.
369 virtual WebHitTestResult hitTestResultForTap(const WebPoint& tapPoint, 369 virtual WebHitTestResult hitTestResultForTap(const WebPoint& tapPoint,
370 const WebSize& tapArea) = 0; 370 const WebSize& tapArea) = 0;
371 371
372 // Notifies the WebView that a drag has terminated. 372 // Notifies the WebView that a drag has terminated.
373 virtual void dragSourceEndedAt(const WebPoint& clientPoint, 373 virtual void dragSourceEndedAt(const WebPoint& pointInViewport,
374 const WebPoint& screenPoint, 374 const WebPoint& screenPoint,
375 WebDragOperation operation) = 0; 375 WebDragOperation operation) = 0;
376 376
377 // Notfies the WebView that the system drag and drop operation has ended. 377 // Notfies the WebView that the system drag and drop operation has ended.
378 virtual void dragSourceSystemDragEnded() = 0; 378 virtual void dragSourceSystemDragEnded() = 0;
379 379
380 // Callback methods when a drag-and-drop operation is trying to drop 380 // Callback methods when a drag-and-drop operation is trying to drop
381 // something on the WebView. 381 // something on the WebView.
382 virtual WebDragOperation dragTargetDragEnter( 382 virtual WebDragOperation dragTargetDragEnter(
383 const WebDragData&, 383 const WebDragData&,
384 const WebPoint& clientPoint, 384 const WebPoint& pointInViewport,
385 const WebPoint& screenPoint, 385 const WebPoint& screenPoint,
386 WebDragOperationsMask operationsAllowed, 386 WebDragOperationsMask operationsAllowed,
387 int modifiers) = 0; 387 int modifiers) = 0;
388 virtual WebDragOperation dragTargetDragOver( 388 virtual WebDragOperation dragTargetDragOver(
389 const WebPoint& clientPoint, 389 const WebPoint& pointInViewport,
390 const WebPoint& screenPoint, 390 const WebPoint& screenPoint,
391 WebDragOperationsMask operationsAllowed, 391 WebDragOperationsMask operationsAllowed,
392 int modifiers) = 0; 392 int modifiers) = 0;
393 virtual void dragTargetDragLeave() = 0; 393 virtual void dragTargetDragLeave() = 0;
394 virtual void dragTargetDrop(const WebDragData&, 394 virtual void dragTargetDrop(const WebDragData&,
395 const WebPoint& clientPoint, 395 const WebPoint& pointInViewport,
396 const WebPoint& screenPoint, 396 const WebPoint& screenPoint,
397 int modifiers) = 0; 397 int modifiers) = 0;
398 398
399 // Retrieves a list of spelling markers. 399 // Retrieves a list of spelling markers.
400 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0; 400 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0;
401 virtual void removeSpellingMarkersUnderWords( 401 virtual void removeSpellingMarkersUnderWords(
402 const WebVector<WebString>& words) = 0; 402 const WebVector<WebString>& words) = 0;
403 403
404 // Support for resource loading initiated by plugins ------------------- 404 // Support for resource loading initiated by plugins -------------------
405 405
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 // completed. 531 // completed.
532 WebWidget* widget() { return this; } 532 WebWidget* widget() { return this; }
533 533
534 protected: 534 protected:
535 ~WebView() {} 535 ~WebView() {}
536 }; 536 };
537 537
538 } // namespace blink 538 } // namespace blink
539 539
540 #endif 540 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698