Bug 91801 - [Chromium] Add WebView::zoomToFindInPageRect for Android
Summary: [Chromium] Add WebView::zoomToFindInPageRect for Android
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adam Barth
URL:
Keywords:
Depends on:
Blocks: 91661
  Show dependency treegraph
 
Reported: 2012-07-19 16:58 PDT by Adam Barth
Modified: 2012-07-20 12:08 PDT (History)
7 users (show)

See Also:


Attachments
Patch (4.12 KB, patch)
2012-07-19 17:01 PDT, Adam Barth
no flags Details | Formatted Diff | Diff
Patch for landing (5.60 KB, patch)
2012-07-20 10:35 PDT, Adam Barth
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Barth 2012-07-19 16:58:35 PDT
[Chromium] Add WebView::zoomToFindInPageRect for Android
Comment 1 Adam Barth 2012-07-19 17:01:16 PDT
Created attachment 153380 [details]
Patch
Comment 2 WebKit Review Bot 2012-07-19 21:06:31 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.
Comment 3 Adam Barth 2012-07-20 09:54:22 PDT
Anyone care to review this patch?  It's relatively straightforward.
Comment 4 Tony Chang 2012-07-20 10:06:02 PDT
Comment on attachment 153380 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=153380&action=review

> Source/WebKit/chromium/src/WebViewImpl.cpp:1087
> +    double durationSec = isDoubleTap ? 0.25 : 0;

Nit: Should we move .25 into a named constant? Also, durationSec -> durationSeconds
Comment 5 Darin Fisher (:fishd, Google) 2012-07-20 10:10:18 PDT
Comment on attachment 153380 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=153380&action=review

> Source/WebKit/chromium/src/WebViewImpl.cpp:1076
> +void WebViewImpl::animateZoomAroundPoint(const IntPoint& point, AutoZoomType zoomType)

nit: methods defined in the .cpp file should be listed in the same order as they appear in the .h file :-)
Comment 6 Adam Barth 2012-07-20 10:15:59 PDT
(In reply to comment #5)
> (From update of attachment 153380 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=153380&action=review
> 
> > Source/WebKit/chromium/src/WebViewImpl.cpp:1076
> > +void WebViewImpl::animateZoomAroundPoint(const IntPoint& point, AutoZoomType zoomType)
> 
> nit: methods defined in the .cpp file should be listed in the same order as they appear in the .h file :-)

I was afraid you were going to say that.  That's a big job for WebViewImpl.cpp.  :)

I've tried to put these diffs in the same location in the file as they exist in the chromium-android branch to make it easier for the folks doing the merges from trunk to the branch.

I'll make you a deal: once we've unforked WebViewImpl.cpp, I'll fix the function ordering for the entire file.
Comment 7 Adam Barth 2012-07-20 10:35:23 PDT
Created attachment 153537 [details]
Patch for landing
Comment 8 WebKit Review Bot 2012-07-20 11:19:56 PDT
Comment on attachment 153537 [details]
Patch for landing

Clearing flags on attachment: 153537

Committed r123241: <http://trac.webkit.org/changeset/123241>
Comment 9 WebKit Review Bot 2012-07-20 11:20:01 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 Darin Fisher (:fishd, Google) 2012-07-20 12:08:05 PDT
(In reply to comment #6)
> I'll make you a deal: once we've unforked WebViewImpl.cpp, I'll fix the function ordering for the entire file.

OK, no worries.