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

Side by Side Diff: content/public/android/java/src/org/chromium/content_public/browser/NavigationController.java

Issue 406023002: Restructuring NavigationController functionalities from ContentViewCore to NavigationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the unit test build break Created 6 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.content_public.browser; 5 package org.chromium.content_public.browser;
Yaron 2014/07/25 16:05:56 Note the package. This is part of the public inter
AKVT 2014/07/26 14:25:08 Thank you. I have made changes accordingly, but I
Yaron 2014/07/28 22:43:39 I think what you have is good.
6 6
7 import org.chromium.content.browser.LoadUrlParams;
8 import org.chromium.content.browser.NavigationHistory;
9
7 /** 10 /**
8 * The NavigationController Java wrapper to allow communicating with the native 11 * The NavigationController Java wrapper to allow communicating with the native
9 * NavigationController object. 12 * NavigationController object.
10 */ 13 */
11 public interface NavigationController { 14 public interface NavigationController {
12 /** 15 /**
13 * @return Whether back navigation is possible from the "current entry". 16 * @return Whether back navigation is possible from the "current entry".
14 */ 17 */
15 boolean canGoBack(); 18 boolean canGoBack();
16 19
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 73
71 /** 74 /**
72 * Cancel the pending reload. 75 * Cancel the pending reload.
73 */ 76 */
74 public void cancelPendingReload(); 77 public void cancelPendingReload();
75 78
76 /** 79 /**
77 * Continue the pending reload. 80 * Continue the pending reload.
78 */ 81 */
79 public void continuePendingReload(); 82 public void continuePendingReload();
83
84 /**
85 * Load url without fixing up the url string. Consumers of NavigationControl ler are
86 * responsible for ensuring the URL passed in is properly formatted (i.e. th e
87 * scheme has been added if left off during user input).
88 * @param params Parameters for this load.
89 */
90 public void loadUrl(LoadUrlParams params);
91
92 /**
93 * Clears NavigationController's page history in both backwards and
94 * forwards directions.
95 */
96 public void clearHistory();
97
98 /**
99 * Get a copy of the navigation history of NavigationController.
100 * @return navigation history of NavigationController.
101 */
102 public NavigationHistory getNavigationHistory();
103
104 /**
105 * Get the navigation history of NavigationController from current navigation entry index
106 * with direction (forward/backward)
107 * @param isForward determines forward or backward from current index
108 * @param itemLimit maximum number of entries to be retrieved in specified
109 * diection.
110 * @return navigation history by keeping above constraints.
111 */
112 public NavigationHistory getDirectedNavigationHistory(boolean isForward, int itemLimit);
113
114 /**
115 * Get Original URL for current Navigation entry of NavigationController.
116 * @return The original request URL for the current navigation entry, or nul l if there is no
117 * current entry.
118 */
119 public String getOriginalUrlForVisibleNavigationEntry();
120
121 /**
122 * Clears SSL preferences for this NavigationController.
123 */
124 public void clearSslPreferences();
125
126 /**
127 * Get whether or not we're using a desktop user agent for the currently loa ded page.
128 * @return true, if use a desktop user agent and false for a mobile one.
129 */
130 public boolean getUseDesktopUserAgent();
131
132 /**
133 * Set whether or not we're using a desktop user agent for the currently loa ded page.
134 * @param override If true, use a desktop user agent. Use a mobile one othe rwise.
135 * @param reloadOnChange Reload the page if the UA has changed.
136 */
137 public void setUseDesktopUserAgent(boolean override, boolean reloadOnChange) ;
80 } 138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698