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

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

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: Rebased. 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 const WebSize& tapArea) = 0; 372 const WebSize& tapArea) = 0;
373 373
374 // Notifies the WebView that a drag has terminated. 374 // Notifies the WebView that a drag has terminated.
375 virtual void dragSourceEndedAt(const WebPoint& pointInViewport, 375 virtual void dragSourceEndedAt(const WebPoint& pointInViewport,
376 const WebPoint& screenPoint, 376 const WebPoint& screenPoint,
377 WebDragOperation operation) = 0; 377 WebDragOperation operation) = 0;
378 378
379 // Notfies the WebView that the system drag and drop operation has ended. 379 // Notfies the WebView that the system drag and drop operation has ended.
380 virtual void dragSourceSystemDragEnded() = 0; 380 virtual void dragSourceSystemDragEnded() = 0;
381 381
382 // Callback methods when a drag-and-drop operation is trying to drop
383 // something on the WebView.
384 virtual WebDragOperation dragTargetDragEnter(
385 const WebDragData&,
386 const WebPoint& pointInViewport,
387 const WebPoint& screenPoint,
388 WebDragOperationsMask operationsAllowed,
389 int modifiers) = 0;
390 virtual WebDragOperation dragTargetDragOver(
391 const WebPoint& pointInViewport,
392 const WebPoint& screenPoint,
393 WebDragOperationsMask operationsAllowed,
394 int modifiers) = 0;
395 virtual void dragTargetDragLeave() = 0;
396 virtual void dragTargetDrop(const WebDragData&,
397 const WebPoint& pointInViewport,
398 const WebPoint& screenPoint,
399 int modifiers) = 0;
400
401 // Retrieves a list of spelling markers. 382 // Retrieves a list of spelling markers.
402 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0; 383 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0;
403 virtual void removeSpellingMarkersUnderWords( 384 virtual void removeSpellingMarkersUnderWords(
404 const WebVector<WebString>& words) = 0; 385 const WebVector<WebString>& words) = 0;
405 386
406 // Support for resource loading initiated by plugins ------------------- 387 // Support for resource loading initiated by plugins -------------------
407 388
408 // Returns next unused request identifier which is unique within the 389 // Returns next unused request identifier which is unique within the
409 // parent Page. 390 // parent Page.
410 virtual unsigned long createUniqueIdentifierForRequest() = 0; 391 virtual unsigned long createUniqueIdentifierForRequest() = 0;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 // completed. 514 // completed.
534 WebWidget* widget() { return this; } 515 WebWidget* widget() { return this; }
535 516
536 protected: 517 protected:
537 ~WebView() {} 518 ~WebView() {}
538 }; 519 };
539 520
540 } // namespace blink 521 } // namespace blink
541 522
542 #endif 523 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698