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

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

Issue 2501213002: Drag-and-drop: dragSourceEndedAt, dragSourceSystemDragEnded (Closed)
Patch Set: Rebased. Added check for !GetWebWidget(). Created 4 years, 1 month 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
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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // Data exchange ------------------------------------------------------- 361 // Data exchange -------------------------------------------------------
362 362
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.
372 virtual void dragSourceEndedAt(const WebPoint& pointInViewport,
373 const WebPoint& screenPoint,
374 WebDragOperation operation) = 0;
375
376 // Notfies the WebView that the system drag and drop operation has ended.
377 virtual void dragSourceSystemDragEnded() = 0;
378
379 // Retrieves a list of spelling markers. 371 // Retrieves a list of spelling markers.
380 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0; 372 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0;
381 virtual void removeSpellingMarkersUnderWords( 373 virtual void removeSpellingMarkersUnderWords(
382 const WebVector<WebString>& words) = 0; 374 const WebVector<WebString>& words) = 0;
383 375
384 // Support for resource loading initiated by plugins ------------------- 376 // Support for resource loading initiated by plugins -------------------
385 377
386 // Returns next unused request identifier which is unique within the 378 // Returns next unused request identifier which is unique within the
387 // parent Page. 379 // parent Page.
388 virtual unsigned long createUniqueIdentifierForRequest() = 0; 380 virtual unsigned long createUniqueIdentifierForRequest() = 0;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 // completed. 503 // completed.
512 WebWidget* widget() { return this; } 504 WebWidget* widget() { return this; }
513 505
514 protected: 506 protected:
515 ~WebView() {} 507 ~WebView() {}
516 }; 508 };
517 509
518 } // namespace blink 510 } // namespace blink
519 511
520 #endif 512 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698