Java Code Examples for org.chromium.chrome.browser.util.ViewUtils#gatherTransparentRegionsForOpaqueView()

The following examples show how to use org.chromium.chrome.browser.util.ViewUtils#gatherTransparentRegionsForOpaqueView() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ToolbarControlContainer.java    From AndroidChromium with Apache License 2.0 5 votes vote down vote up
@Override
public boolean gatherTransparentRegion(Region region) {
    // Reset the translation on the control container before attempting to compute the
    // transparent region.
    float translateY = getTranslationY();
    setTranslationY(0);

    ViewUtils.gatherTransparentRegionsForOpaqueView(this, region);

    setTranslationY(translateY);

    return true;
}
 
Example 2
Source File: ToolbarControlContainer.java    From 365browser with Apache License 2.0 5 votes vote down vote up
@Override
public boolean gatherTransparentRegion(Region region) {
    // Reset the translation on the control container before attempting to compute the
    // transparent region.
    float translateY = getTranslationY();
    setTranslationY(0);

    ViewUtils.gatherTransparentRegionsForOpaqueView(this, region);

    setTranslationY(translateY);

    return true;
}
 
Example 3
Source File: NewTabPageRecyclerView.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
@Override
public boolean gatherTransparentRegion(Region region) {
    ViewUtils.gatherTransparentRegionsForOpaqueView(this, region);
    return true;
}
 
Example 4
Source File: NewTabPageRecyclerView.java    From 365browser with Apache License 2.0 4 votes vote down vote up
@Override
public boolean gatherTransparentRegion(Region region) {
    ViewUtils.gatherTransparentRegionsForOpaqueView(this, region);
    return true;
}