Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java

Issue 2144423002: [Offline Pages] Fixing bookmarking offline page will save file path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more related changes. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.omnibox; 5 package org.chromium.chrome.browser.omnibox;
6 6
7 import static org.chromium.chrome.browser.toolbar.ToolbarPhone.URL_FOCUS_CHANGE_ ANIMATION_DURATION_MS; 7 import static org.chromium.chrome.browser.toolbar.ToolbarPhone.URL_FOCUS_CHANGE_ ANIMATION_DURATION_MS;
8 8
9 import android.Manifest; 9 import android.Manifest;
10 import android.animation.Animator; 10 import android.animation.Animator;
(...skipping 2035 matching lines...) Expand 10 before | Expand all | Expand 10 after
2046 } 2046 }
2047 2047
2048 /** 2048 /**
2049 * Gets the URL of the web page in the tab. When displaying offline page it gets the URL of the 2049 * Gets the URL of the web page in the tab. When displaying offline page it gets the URL of the
2050 * original page. 2050 * original page.
2051 */ 2051 */
2052 private String getOnlineUrlFromTab() { 2052 private String getOnlineUrlFromTab() {
2053 Tab currentTab = getCurrentTab(); 2053 Tab currentTab = getCurrentTab();
2054 if (currentTab == null) return ""; 2054 if (currentTab == null) return "";
2055 if (currentTab.isOfflinePage()) { 2055 if (currentTab.isOfflinePage()) {
2056 return currentTab.getOfflinePageOriginalUrl().trim(); 2056 return currentTab.getOriginalUrl().trim();
2057 } 2057 }
2058 return currentTab.getUrl().trim(); 2058 return currentTab.getUrl().trim();
2059 } 2059 }
2060 2060
2061 /** 2061 /**
2062 * Changes the text on the url bar 2062 * Changes the text on the url bar
2063 * @param originalText The original text (URL or search terms) for copy/cut. 2063 * @param originalText The original text (URL or search terms) for copy/cut.
2064 * @param displayText The text (URL or search terms) for user display. 2064 * @param displayText The text (URL or search terms) for user display.
2065 * @return Whether the URL was changed as a result of this call. 2065 * @return Whether the URL was changed as a result of this call.
2066 */ 2066 */
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2431 public View getContainerView() { 2431 public View getContainerView() {
2432 return this; 2432 return this;
2433 } 2433 }
2434 2434
2435 @Override 2435 @Override
2436 public void setTitleToPageTitle() { } 2436 public void setTitleToPageTitle() { }
2437 2437
2438 @Override 2438 @Override
2439 public void setShowTitle(boolean showTitle) { } 2439 public void setShowTitle(boolean showTitle) { }
2440 } 2440 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698