0
Files
src/android_webview
Rouslan Solomakhin 5d6db44d95 Convert PaymentRequestTestWebPageContents to builder-like pattern
Before this patch, the interface for PaymentRequestTestWebPageContents
was difficult to extend, because the test page parameters were being
passed into its constructor and build() method. Typical usage for this
class was:
  new PaymentRequestTestWebPageContents(methodOne, methodTwo)
          .build(/* multiplePaymentMethods= */ true);

This patch removes parameters from the PaymentRequestTestWebPageContents
class constructor and build() method and, instead, adds a builder-like
method addMethod(), which can be called multiple times in a row, before
building the test checkout web page.

After this patch, the PaymentRequestTestWebPageContents class is easier
to extend with new functionality, such as shipping address or contact
information support. The new usage for this class is:
  new PaymentRequestTestWebPageContents().addMethod(methodOne)
                                         .addMethod(methodTwo)
                                         .build();

Fixed: 401515769
Change-Id: If68063c1bded1508001fd8b39c5c9fe97bbcb71b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6335797
Reviewed-by: Slobodan Pejic <slobodan@chromium.org>
Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1430980}
2025-03-11 10:26:44 -07:00
..
2025-02-21 03:57:49 -08:00
2025-03-06 04:59:43 -08:00
2025-02-20 10:26:56 -08:00

Android WebView

Android WebView is an Android system component for displaying web content. WebView (and the related Android classes) are implemented by the code in the //android_webview/ folder.

This directory contains the Android WebView implementation, as well as the implementation for the AndroidX Webkit support library.

Overview for Chromium team members and contributors

Please see WebView Architecture.

Want to use WebView in an Android app?

Please consult our API documentation and app development guides:

Want to build and install WebView on a device?

See our Chromium developer documentation.

Public mailing lists