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

The following examples show how to use org.chromium.chrome.browser.util.ViewUtils#getRelativeDrawPosition() . 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: ToolbarLayout.java    From delion with Apache License 2.0 5 votes vote down vote up
@Override
public void getLocationBarContentRect(Rect outRect) {
    View container = getLocationBar().getContainerView();
    outRect.set(container.getPaddingLeft(), container.getPaddingTop(),
            container.getWidth() - container.getPaddingRight(),
            container.getHeight() - container.getPaddingBottom());
    ViewUtils.getRelativeDrawPosition(
            this, getLocationBar().getContainerView(), mTempPosition);
    outRect.offset(mTempPosition[0], mTempPosition[1]);
}
 
Example 2
Source File: ToolbarLayout.java    From AndroidChromium with Apache License 2.0 5 votes vote down vote up
@Override
public void getLocationBarContentRect(Rect outRect) {
    View container = getLocationBar().getContainerView();
    outRect.set(container.getPaddingLeft(), container.getPaddingTop(),
            container.getWidth() - container.getPaddingRight(),
            container.getHeight() - container.getPaddingBottom());
    ViewUtils.getRelativeDrawPosition(
            this, getLocationBar().getContainerView(), mTempPosition);
    outRect.offset(mTempPosition[0], mTempPosition[1]);
}
 
Example 3
Source File: ToolbarLayout.java    From 365browser with Apache License 2.0 5 votes vote down vote up
@Override
public void getLocationBarContentRect(Rect outRect) {
    View container = getLocationBar().getContainerView();
    outRect.set(container.getPaddingLeft(), container.getPaddingTop(),
            container.getWidth() - container.getPaddingRight(),
            container.getHeight() - container.getPaddingBottom());
    ViewUtils.getRelativeDrawPosition(
            this, getLocationBar().getContainerView(), mTempPosition);
    outRect.offset(mTempPosition[0], mTempPosition[1]);
}
 
Example 4
Source File: ToolbarLayout.java    From delion with Apache License 2.0 4 votes vote down vote up
@Override
public void getPositionRelativeToContainer(View containerView, int[] position) {
    ViewUtils.getRelativeDrawPosition(containerView, this, position);
}
 
Example 5
Source File: ToolbarLayout.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
@Override
public void getPositionRelativeToContainer(View containerView, int[] position) {
    ViewUtils.getRelativeDrawPosition(containerView, this, position);
}
 
Example 6
Source File: ToolbarLayout.java    From 365browser with Apache License 2.0 4 votes vote down vote up
@Override
public void getPositionRelativeToContainer(View containerView, int[] position) {
    ViewUtils.getRelativeDrawPosition(containerView, this, position);
}