Bug 55541 - Expose some selection state fields in WKPage
Summary: Expose some selection state fields in WKPage
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Windows 7
: P2 Normal
Assignee: Jeff Miller
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-01 18:28 PST by Jeff Miller
Modified: 2011-03-02 07:37 PST (History)
0 users

See Also:


Attachments
Patch (3.49 KB, patch)
2011-03-01 18:34 PST, Jeff Miller
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Miller 2011-03-01 18:28:09 PST
Expose some selection state fields in WKPage
Comment 1 Jeff Miller 2011-03-01 18:29:55 PST
Adding WKPageCanDelete(), WKPageHasSelectedRange(), and WKPageIsContentEditable() so we can enable some Edit menu items properly on Windows.
Comment 2 Jeff Miller 2011-03-01 18:34:45 PST
Created attachment 84347 [details]
Patch
Comment 3 Darin Adler 2011-03-01 22:07:06 PST
Comment on attachment 84347 [details]
Patch

I’m not sure we really need WKPageCanDelete.
Comment 4 Jeff Miller 2011-03-02 06:54:40 PST
Committed r80125: <http://trac.webkit.org/changeset/80125>
Comment 5 Jeff Miller 2011-03-02 07:37:22 PST
(In reply to comment #3)
> (From update of attachment 84347 [details])
> I’m not sure we really need WKPageCanDelete.

I chose to leave this in to be explicit, and to match the WebKit1 API semantics better.