Java Code Examples for org.chromium.chrome.browser.UrlConstants#NTP_URL

The following examples show how to use org.chromium.chrome.browser.UrlConstants#NTP_URL . 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: ToolbarManager.java    From delion with Apache License 2.0 5 votes vote down vote up
@Override
public void openHomepage() {
    Tab currentTab = mToolbarModel.getTab();
    if (currentTab == null) return;
    Context context = mToolbar.getContext();
    String homePageUrl = HomepageManager.getHomepageUri(context);
    if (TextUtils.isEmpty(homePageUrl)) {
        homePageUrl = UrlConstants.NTP_URL;
    }
    currentTab.loadUrl(new LoadUrlParams(homePageUrl, PageTransition.HOME_PAGE));
}
 
Example 2
Source File: ToolbarManager.java    From AndroidChromium with Apache License 2.0 5 votes vote down vote up
@Override
public void openHomepage() {
    RecordUserAction.record("Home");

    Tab currentTab = mToolbarModel.getTab();
    if (currentTab == null) return;
    Context context = mToolbar.getContext();
    String homePageUrl = HomepageManager.getHomepageUri(context);
    if (TextUtils.isEmpty(homePageUrl)) {
        homePageUrl = UrlConstants.NTP_URL;
    }
    currentTab.loadUrl(new LoadUrlParams(homePageUrl, PageTransition.HOME_PAGE));
}
 
Example 3
Source File: ToolbarManager.java    From 365browser with Apache License 2.0 5 votes vote down vote up
@Override
public void openHomepage() {
    RecordUserAction.record("Home");

    Tab currentTab = mToolbarModel.getTab();
    if (currentTab == null) return;
    Context context = mToolbar.getContext();
    String homePageUrl = HomepageManager.getHomepageUri(context);
    if (TextUtils.isEmpty(homePageUrl)) {
        homePageUrl = UrlConstants.NTP_URL;
    }
    currentTab.loadUrl(new LoadUrlParams(homePageUrl, PageTransition.HOME_PAGE));
}
 
Example 4
Source File: IncognitoNewTabPage.java    From delion with Apache License 2.0 4 votes vote down vote up
@Override
public String getUrl() {
    return UrlConstants.NTP_URL;
}
 
Example 5
Source File: NewTabPage.java    From delion with Apache License 2.0 4 votes vote down vote up
@Override
public String getUrl() {
    return UrlConstants.NTP_URL;
}
 
Example 6
Source File: IncognitoNewTabPage.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
@Override
public String getUrl() {
    return UrlConstants.NTP_URL;
}
 
Example 7
Source File: NewTabPage.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
@Override
public String getUrl() {
    return UrlConstants.NTP_URL;
}
 
Example 8
Source File: IncognitoNewTabPage.java    From 365browser with Apache License 2.0 4 votes vote down vote up
@Override
public String getUrl() {
    return UrlConstants.NTP_URL;
}
 
Example 9
Source File: ChromeHomeNewTabPageBase.java    From 365browser with Apache License 2.0 4 votes vote down vote up
@Override
public String getUrl() {
    return UrlConstants.NTP_URL;
}
 
Example 10
Source File: NewTabPage.java    From 365browser with Apache License 2.0 4 votes vote down vote up
@Override
public String getUrl() {
    return UrlConstants.NTP_URL;
}