WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
92997
[Chromium] Add a stub for WebView::getTouchHighlightQuads()
https://bugs.webkit.org/show_bug.cgi?id=92997
Summary
[Chromium] Add a stub for WebView::getTouchHighlightQuads()
Peter Beverloo
Reported
2012-08-02 08:59:57 PDT
Patch coming up.
Attachments
Patch
(9.75 KB, patch)
2012-08-02 09:09 PDT
,
Peter Beverloo
no flags
Details
Formatted Diff
Diff
Patch
(9.39 KB, patch)
2012-08-02 09:37 PDT
,
Peter Beverloo
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Peter Beverloo
Comment 1
2012-08-02 09:09:22 PDT
Created
attachment 156104
[details]
Patch
Peter Beverloo
Comment 2
2012-08-02 09:10:16 PDT
I'm not sure about the #if-guards as no others are used in WebView.h. Should I remove them?
WebKit Review Bot
Comment 3
2012-08-02 09:11:38 PDT
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Adam Barth
Comment 4
2012-08-02 09:22:21 PDT
Comment on
attachment 156104
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=156104&action=review
> Source/Platform/chromium/public/WebTouchCandidatesInfo.h:48 > + WebTouchCandidatesInfo() > + : numberOfCandidates(0), > + : unitedBounds(), > + : smallestDimension(0)
This isn't quite right. Try: WebTouchCandidatesInfo() : numberOfCandidates(0) , smallestDimension(0)
> Source/WebKit/chromium/public/WebView.h:63 > +#if defined(OS_ANDROID)
These ifdefs aren't needed.
> Source/WebKit/chromium/public/WebView.h:474 > + // Touch ----------------------------------------------------------------
Two blank lines above section headings.
> Source/WebKit/chromium/public/WebView.h:476 > +#if defined(OS_ANDROID)
This #ifdef isn't needed.
> Source/WebKit/chromium/public/WebView.h:483 > + virtual WebVector<WebFloatQuad> getTouchHighlightQuads(const WebPoint&, > + int padding,
Should we use a WebRect instead?
> Source/WebKit/chromium/public/WebView.h:485 > + WebTouchCandidatesInfo* outTouchInfo, > + WebColor& outTapHighlightColor) = 0;
WebTouchCandidatesInfo* -> WebTouchCandidatesInfo& (we use non-const reference types for out parameters.
Peter Beverloo
Comment 5
2012-08-02 09:37:02 PDT
Comment on
attachment 156104
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=156104&action=review
Thank you for the review! Could you take a look at the updated patch too, please?
>> Source/Platform/chromium/public/WebTouchCandidatesInfo.h:48 >> + : smallestDimension(0) > > This isn't quite right. Try: > > WebTouchCandidatesInfo() > : numberOfCandidates(0) > , smallestDimension(0)
Uch, bad one. Thanks. I've added an include to this file in WebViewImpl.h to make sure that it's being compiled.
>> Source/WebKit/chromium/public/WebView.h:63 >> +#if defined(OS_ANDROID) > > These ifdefs aren't needed.
Done.
>> Source/WebKit/chromium/public/WebView.h:474 >> + // Touch ---------------------------------------------------------------- > > Two blank lines above section headings.
Done.
>> Source/WebKit/chromium/public/WebView.h:476 >> +#if defined(OS_ANDROID) > > This #ifdef isn't needed.
Done.
>> Source/WebKit/chromium/public/WebView.h:483 >> + int padding, > > Should we use a WebRect instead?
I'd prefer not to change the API too much if it's likely to change as it is. Tien-Ren will have a much better idea than I do about what is necessary here.
>> Source/WebKit/chromium/public/WebView.h:485 >> + WebColor& outTapHighlightColor) = 0; > > WebTouchCandidatesInfo* -> WebTouchCandidatesInfo& (we use non-const reference types for out parameters.
Done.
Peter Beverloo
Comment 6
2012-08-02 09:37:43 PDT
Created
attachment 156109
[details]
Patch
WebKit Review Bot
Comment 7
2012-08-02 10:40:43 PDT
Comment on
attachment 156109
[details]
Patch Clearing flags on attachment: 156109 Committed
r124478
: <
http://trac.webkit.org/changeset/124478
>
WebKit Review Bot
Comment 8
2012-08-02 10:40:48 PDT
All reviewed patches have been landed. Closing bug.
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