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

Unified Diff: webkit/api/public/WebBindings.h

Issue 360006: Implementation of PlainTextController.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/api/public/WebRange.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/public/WebBindings.h
===================================================================
--- webkit/api/public/WebBindings.h (revision 30898)
+++ webkit/api/public/WebBindings.h (working copy)
@@ -37,6 +37,7 @@
namespace WebKit {
class WebDragData;
+ class WebRange;
// A haphazard collection of functions for dealing with plugins.
class WebBindings {
@@ -127,12 +128,16 @@
// and is accessible based on context execution frames and their security origins and
// WebKit clipboard access policy. If so, return the event id and the clipboard data (WebDragData).
// This only works with V8. If compiled without V8, it'll always return false.
- WEBKIT_API static bool getDragData(NPObject* event, int* eventId, WebDragData*);
+ WEBKIT_API static bool getDragData(NPObject* event, int* eventId, WebDragData* data);
// Invoke the event access policy checks listed above with GetDragData(). No need for clipboard
// data or event_id outputs, just confirm the given npobj is the current & accessible drag event.
// This only works with V8. If compiled without V8, it'll always return false.
WEBKIT_API static bool isDragEvent(NPObject* event);
+
+ // Return true (success) if the given npobj is a range object.
+ // If so, return that range as a WebRange object.
+ WEBKIT_API static bool getRange(NPObject* npobj, WebRange* range);
};
} // namespace WebKit
« no previous file with comments | « no previous file | webkit/api/public/WebRange.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698