org.chromium.chrome.browser.widget.ToolbarProgressBar Java Examples
The following examples show how to use
org.chromium.chrome.browser.widget.ToolbarProgressBar.
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 | 4 votes |
@Override protected void onFinishInflate() { super.onFinishInflate(); mProgressBar = (ToolbarProgressBar) findViewById(R.id.progress); if (mProgressBar != null) { removeView(mProgressBar); mProgressBar.prepareForAttach(mToolbarHeightWithoutShadow); if (isNativeLibraryReady()) mProgressBar.initializeAnimation(); } mMenuButton = (TintedImageButton) findViewById(R.id.menu_button); mMenuBadge = (ImageView) findViewById(R.id.menu_badge); mMenuButtonWrapper = findViewById(R.id.menu_button_wrapper); // Initialize the provider to an empty version to avoid null checking everywhere. mToolbarDataProvider = new ToolbarDataProvider() { @Override public boolean isIncognito() { return false; } @Override public Tab getTab() { return null; } @Override public String getText() { return null; } @Override public NewTabPage getNewTabPageForCurrentTab() { return null; } @Override public int getPrimaryColor() { return 0; } @Override public boolean isUsingBrandColor() { return false; } }; }
Example #2
Source File: ToolbarLayout.java From delion with Apache License 2.0 | 4 votes |
/** * @return The {@link ProgressBar} this layout uses. */ ToolbarProgressBar getProgressBar() { return mProgressBar; }
Example #3
Source File: ToolbarControlContainer.java From delion with Apache License 2.0 | 4 votes |
@Override public void getProgressBarDrawingInfo(DrawingInfo drawingInfoOut) { // TODO(yusufo): Avoid casting to the layout without making the interface bigger. ToolbarProgressBar progressBar = ((ToolbarLayout) mToolbar).getProgressBar(); if (progressBar != null) progressBar.getDrawingInfo(drawingInfoOut); }
Example #4
Source File: ToolbarLayout.java From AndroidChromium with Apache License 2.0 | 4 votes |
@Override protected void onFinishInflate() { super.onFinishInflate(); mProgressBar = (ToolbarProgressBar) findViewById(R.id.progress); if (mProgressBar != null) { removeView(mProgressBar); mProgressBar.prepareForAttach(getProgressBarTopMargin()); if (isNativeLibraryReady()) mProgressBar.initializeAnimation(); } mMenuButton = (TintedImageButton) findViewById(R.id.menu_button); mMenuBadge = (ImageView) findViewById(R.id.menu_badge); mMenuButtonWrapper = findViewById(R.id.menu_button_wrapper); // Initialize the provider to an empty version to avoid null checking everywhere. mToolbarDataProvider = new ToolbarDataProvider() { @Override public boolean isIncognito() { return false; } @Override public Tab getTab() { return null; } @Override public String getText() { return null; } @Override public NewTabPage getNewTabPageForCurrentTab() { return null; } @Override public int getPrimaryColor() { return 0; } @Override public boolean isUsingBrandColor() { return false; } }; }
Example #5
Source File: ToolbarLayout.java From AndroidChromium with Apache License 2.0 | 4 votes |
/** * @return The {@link ProgressBar} this layout uses. */ ToolbarProgressBar getProgressBar() { return mProgressBar; }
Example #6
Source File: ToolbarControlContainer.java From AndroidChromium with Apache License 2.0 | 4 votes |
@Override public void getProgressBarDrawingInfo(DrawingInfo drawingInfoOut) { // TODO(yusufo): Avoid casting to the layout without making the interface bigger. ToolbarProgressBar progressBar = ((ToolbarLayout) mToolbar).getProgressBar(); if (progressBar != null) progressBar.getDrawingInfo(drawingInfoOut); }
Example #7
Source File: BottomToolbarPhone.java From 365browser with Apache License 2.0 | 4 votes |
@Override protected ToolbarProgressBar createProgressBar() { return new ToolbarProgressBar( getContext(), getProgressBarHeight(), getProgressBarTopMargin(), true); }
Example #8
Source File: ToolbarLayout.java From 365browser with Apache License 2.0 | 4 votes |
/** * @return A progress bar for Chrome to use. */ protected ToolbarProgressBar createProgressBar() { return new ToolbarProgressBar( getContext(), getProgressBarHeight(), getProgressBarTopMargin(), false); }
Example #9
Source File: ToolbarLayout.java From 365browser with Apache License 2.0 | 4 votes |
/** * @return The {@link ProgressBar} this layout uses. */ @VisibleForTesting public ToolbarProgressBar getProgressBar() { return mProgressBar; }
Example #10
Source File: ToolbarControlContainer.java From 365browser with Apache License 2.0 | 4 votes |
@Override public void getProgressBarDrawingInfo(DrawingInfo drawingInfoOut) { // TODO(yusufo): Avoid casting to the layout without making the interface bigger. ToolbarProgressBar progressBar = ((ToolbarLayout) mToolbar).getProgressBar(); if (progressBar != null) progressBar.getDrawingInfo(drawingInfoOut); }