Commit e2229208 authored by Sky Malice's avatar Sky Malice Committed by Commit Bot

Rename cardrenderer to xsurface.

Bug: 1050094
Change-Id: I3abcd08318fd6a0f8e6fccc95664da59f37f168c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2051737
Commit-Queue: Sky Malice <skym@chromium.org>
Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Reviewed-by: default avatarJustin DeWitt <dewittj@chromium.org>
Reviewed-by: default avatarCathy Li <chili@chromium.org>
Cr-Commit-Position: refs/heads/master@{#741440}
parent 725a8ec0
This feature contains interfaces used by downstream code. Changes will likely
cause build failures. Please do not TBR changes through without engaging OWNERS.
...@@ -6,7 +6,7 @@ import("//build/config/android/rules.gni") ...@@ -6,7 +6,7 @@ import("//build/config/android/rules.gni")
android_library("java") { android_library("java") {
sources = [ sources = [
"android/java/src/org/chromium/chrome/browser/cardrenderer/CardRendererAdapter.java", "android/java/src/org/chromium/chrome/browser/xsurface/SurfaceAdapter.java",
"android/java/src/org/chromium/chrome/browser/cardrenderer/CardRendererAdapterFactory.java", "android/java/src/org/chromium/chrome/browser/xsurface/SurfaceAdapterFactory.java",
] ]
} }
This feature provides the conceptual ability to create and host a surface that
is configured externally, an "external surface". Some off device source will
build and assemble content into opaque data from the client's perspective. When
this data is handed to xfeature, native views will be provided back, allowing a
highly performant and interactive page or part of a page that is also completely
data driven.
Note that this location defines mostly just the interfaces for this feature. The
bulk of the actual implemnetation is provided by downstream. This means that
changes to these interfaces will likely cause downstream build failures. Please
do not TBR changes through without engaging OWNERS.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
package org.chromium.chrome.browser.cardrenderer; package org.chromium.chrome.browser.xsurface;
import android.view.View; import android.view.View;
...@@ -10,7 +10,7 @@ import android.view.View; ...@@ -10,7 +10,7 @@ import android.view.View;
* Creates, owns, and manages an exposed view. Can be rebound to a given implementation specific * Creates, owns, and manages an exposed view. Can be rebound to a given implementation specific
* payload. * payload.
*/ */
public interface CardRendererAdapter { public interface SurfaceAdapter {
/** /**
* Rebinds the associated view to the given payload. * Rebinds the associated view to the given payload.
* @param protoPayload The payload that should describe what the view should do. * @param protoPayload The payload that should describe what the view should do.
......
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
package org.chromium.chrome.browser.cardrenderer; package org.chromium.chrome.browser.xsurface;
import android.content.Context; import android.content.Context;
/** /**
* Creates CardRendererAdapters on demand. * Creates SurfaceAdapters on demand.
*/ */
public interface CardRendererAdapterFactory { public interface SurfaceAdapterFactory {
/** /**
* Creates a new adapter backed by a shared set of dependencies with other adapters. * Creates a new adapter backed by a shared set of dependencies with other adapters.
* @param context The context that any new Android UI objects should be created within. * @param context The context that any new Android UI objects should be created within.
* @return A new wrapper capable of making view objects. * @return A new wrapper capable of making view objects.
*/ */
CardRendererAdapter createCardRendererAdapter(Context context); SurfaceAdapter createSurfaceAdapter(Context context);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment