WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
138284
Implement action menus for editable text
https://bugs.webkit.org/show_bug.cgi?id=138284
Summary
Implement action menus for editable text
Beth Dakin
Reported
2014-11-01 15:49:10 PDT
Implement action menus for editable text.
rdar://problem/18742323
Attachments
Patch
(11.76 KB, patch)
2014-11-01 16:21 PDT
,
Beth Dakin
thorton
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Beth Dakin
Comment 1
2014-11-01 16:21:18 PDT
Created
attachment 240797
[details]
Patch
WebKit Commit Bot
Comment 2
2014-11-01 16:22:52 PDT
Attachment 240797
[details]
did not pass style-queue: ERROR: Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:340: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 3
2014-11-01 17:10:35 PDT
Comment on
attachment 240797
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=240797&action=review
> Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:339 > +-(void)_paste:(id)sender
"copyText", but "paste"? copy can copy things that aren't text; can we go with _copy and _paste or _performCopy and _performPaste or something?
> Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:496 > + return hitTestResult;
.release() here, I think
> Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:503 > + _type = kWKActionMenuNone;
unfortunate that the 'none' case is duplicated now.
> Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:518 > + if (DDActionContext *actionContext = _hitTestResult.actionContext.get()) {
We should shuffle this out into a "defaultMenuItemsForDataDetectedItem" or something, so that these all look the same.
Beth Dakin
Comment 4
2014-11-03 10:27:41 PST
(In reply to
comment #3
)
> Comment on
attachment 240797
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=240797&action=review
> > > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:339 > > +-(void)_paste:(id)sender > > "copyText", but "paste"? copy can copy things that aren't text; can we go > with _copy and _paste or _performCopy and _performPaste or something? >
They are inconsistent. I do think that copy needs a more specific name because right now it will just copy the current selection. So perhaps copySelection is right for copy. paste still seems like the most accurate way to describe paste, but I suppose we could go with the somewhat redundant pasteFromPasteboard?! I'll think about it, but fix copy for sure.
> > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:496 > > + return hitTestResult; > > .release() here, I think >
Ah yes.
> > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:503 > > + _type = kWKActionMenuNone; > > unfortunate that the 'none' case is duplicated now. >
I know. It seems so crazy to have all the rest of it nested in an if though.
> > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:518 > > + if (DDActionContext *actionContext = _hitTestResult.actionContext.get()) { > > We should shuffle this out into a "defaultMenuItemsForDataDetectedItem" or > something, so that these all look the same.
Will do. Thanks you!
Beth Dakin
Comment 5
2014-11-03 10:39:02 PST
http://trac.webkit.org/changeset/175474
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug