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

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

Issue 2397883002: Convert drag event position to root frame. (Closed)
Patch Set: 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 // Do a hit test at given point and return the HitTestResult. 363 // Do a hit test at given point and return the HitTestResult.
364 virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0; 364 virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0;
365 365
366 // Do a hit test equivalent to what would be done for a GestureTap event 366 // Do a hit test equivalent to what would be done for a GestureTap event
367 // that has width/height corresponding to the supplied |tapArea|. 367 // that has width/height corresponding to the supplied |tapArea|.
368 virtual WebHitTestResult hitTestResultForTap(const WebPoint& tapPoint, 368 virtual WebHitTestResult hitTestResultForTap(const WebPoint& tapPoint,
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( 372 virtual void dragSourceEndedAt(
373 const WebPoint& clientPoint, const WebPoint& screenPoint, 373 const WebPoint& pointInViewport, 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 379 // Callback methods when a drag-and-drop operation is trying to drop
380 // something on the WebView. 380 // something on the WebView.
381 virtual WebDragOperation dragTargetDragEnter( 381 virtual WebDragOperation dragTargetDragEnter(
382 const WebDragData&, 382 const WebDragData&,
383 const WebPoint& clientPoint, const WebPoint& screenPoint, 383 const WebPoint& pointInViewport, const WebPoint& screenPoint,
384 WebDragOperationsMask operationsAllowed, 384 WebDragOperationsMask operationsAllowed,
385 int modifiers) = 0; 385 int modifiers) = 0;
386 virtual WebDragOperation dragTargetDragOver( 386 virtual WebDragOperation dragTargetDragOver(
387 const WebPoint& clientPoint, const WebPoint& screenPoint, 387 const WebPoint& pointInViewport, const WebPoint& screenPoint,
388 WebDragOperationsMask operationsAllowed, 388 WebDragOperationsMask operationsAllowed,
389 int modifiers) = 0; 389 int modifiers) = 0;
390 virtual void dragTargetDragLeave() = 0; 390 virtual void dragTargetDragLeave() = 0;
391 virtual void dragTargetDrop( 391 virtual void dragTargetDrop(
392 const WebDragData&, 392 const WebDragData&,
393 const WebPoint& clientPoint, const WebPoint& screenPoint, 393 const WebPoint& pointInViewport, const WebPoint& screenPoint,
394 int modifiers) = 0; 394 int modifiers) = 0;
395 395
396 // Retrieves a list of spelling markers. 396 // Retrieves a list of spelling markers.
397 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0; 397 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0;
398 virtual void removeSpellingMarkersUnderWords(const WebVector<WebString>& wor ds) = 0; 398 virtual void removeSpellingMarkersUnderWords(const WebVector<WebString>& wor ds) = 0;
399 399
400 // Support for resource loading initiated by plugins ------------------- 400 // Support for resource loading initiated by plugins -------------------
401 401
402 // Returns next unused request identifier which is unique within the 402 // Returns next unused request identifier which is unique within the
403 // parent Page. 403 // parent Page.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 // completed. 528 // completed.
529 WebWidget* widget() { return this; } 529 WebWidget* widget() { return this; }
530 530
531 protected: 531 protected:
532 ~WebView() {} 532 ~WebView() {}
533 }; 533 };
534 534
535 } // namespace blink 535 } // namespace blink
536 536
537 #endif 537 #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