New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: surface more webContents
text selection commands
#37978
Conversation
15298eb
to
ff41c53
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codebytere can we add tests for the new methods?
@jkleinsc they're all visual changes which can't really be tested unfortunately. |
ff41c53
to
e58ad49
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM
Release Notes Persisted
|
I was unable to backport this PR to "25-x-y" cleanly; |
/trop run backport-to 25-x-y |
The backport process for this PR has been manually initiated - sending your PR to |
I have automatically backported this PR to "25-x-y", please check out #38362 |
/trop run backport-to 24-x-y |
The backport process for this PR has been manually initiated - sending your PR to |
I have automatically backported this PR to "24-x-y", please check out #38365 |
Description of Change
Refs CL:2785611
Refs CL:4258445
Refs CR:1205033005
We've generally exposed the set of
WebContents
commands that handle text selection and manipulation, and within the last few years Chromium has added a few more that are likely to be useful to developers. Namely:Checklist
npm test
passesRelease Notes
Notes: Expose
webContents
methods to center text selection, scroll to the page bottom and top, as well as adjust selected text.