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

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

Issue 1528153004: Look Up on Force Touch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 const WebSize& tapArea) = 0; 335 const WebSize& tapArea) = 0;
336 336
337 // Copy to the clipboard the image located at a particular point in the 337 // Copy to the clipboard the image located at a particular point in the
338 // WebView (if there is such an image) 338 // WebView (if there is such an image)
339 virtual void copyImageAt(const WebPoint&) = 0; 339 virtual void copyImageAt(const WebPoint&) = 0;
340 340
341 // Save as the image located at a particular point in the 341 // Save as the image located at a particular point in the
342 // WebView (if there is such an image) 342 // WebView (if there is such an image)
343 virtual void saveImageAt(const WebPoint&) = 0; 343 virtual void saveImageAt(const WebPoint&) = 0;
344 344
345 // Selects the word at a particular point in the WebView if available.
346 // Returns true if a word has been selected.
347 virtual bool selectWordIfAnyAt(const WebPoint&) = 0;
348
345 // Notifies the WebView that a drag has terminated. 349 // Notifies the WebView that a drag has terminated.
346 virtual void dragSourceEndedAt( 350 virtual void dragSourceEndedAt(
347 const WebPoint& clientPoint, const WebPoint& screenPoint, 351 const WebPoint& clientPoint, const WebPoint& screenPoint,
348 WebDragOperation operation) = 0; 352 WebDragOperation operation) = 0;
349 353
350 // Notfies the WebView that the system drag and drop operation has ended. 354 // Notfies the WebView that the system drag and drop operation has ended.
351 virtual void dragSourceSystemDragEnded() = 0; 355 virtual void dragSourceSystemDragEnded() = 0;
352 356
353 // Callback methods when a drag-and-drop operation is trying to drop 357 // Callback methods when a drag-and-drop operation is trying to drop
354 // something on the WebView. 358 // something on the WebView.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 // context's ability to deal with that failure gracefully can be tested. 494 // context's ability to deal with that failure gracefully can be tested.
491 virtual void forceNextDrawingBufferCreationToFail() = 0; 495 virtual void forceNextDrawingBufferCreationToFail() = 0;
492 496
493 protected: 497 protected:
494 ~WebView() {} 498 ~WebView() {}
495 }; 499 };
496 500
497 } // namespace blink 501 } // namespace blink
498 502
499 #endif 503 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698