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

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: Removed unwanted headers Created 6 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 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;
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 ContentView are r esponsible for
Yaron 2014/07/22 20:49:06 s/Consumers of ContentView/Clients of NavigationCo
AKVT 2014/07/23 11:49:23 Done.
86 * ensuring the URL passed in is properly formatted (i.e. the scheme has bee n added if left
87 * off during user input).
88 *
89 * @param params Parameters for this load.
90 */
91 public void loadUrl(LoadUrlParams params);
92
93 /**
94 * Clears the ContentViewCore's page history in both the backwards and
Yaron 2014/07/22 20:49:06 s/ContentViewCore/NavigationController/
AKVT 2014/07/23 11:49:23 Done.
95 * forwards directions.
96 */
97 public void clearHistory();
98
99 /**
100 * Get a copy of the navigation history of the view.
Yaron 2014/07/22 20:49:06 Ok, I'll stop commenting on view-related changes.
AKVT 2014/07/23 11:49:23 Done.
101 * @return navigation history of the view.
102 */
103 public NavigationHistory getNavigationHistory();
104
105 /**
106 * Get the navigation history of the view from current navigation entry index
107 * with direction (forward/backward)
108 * @param isForward determines forward or backward from current index
109 * @param itemLimit maximum number of entries to be retrieved in specified
110 * diection.
111 * @return navigation history by keeping above constraints.
112 */
113 public NavigationHistory getDirectedNavigationHistory(boolean isForward, int itemLimit);
114
115 /**
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 getOriginalUrlForActiveNavigationEntry();
120
121 /**
122 * Clears SSL preferences for this WebContent Navigation Controller.
Yaron 2014/07/22 20:49:06 s/WebContent//
AKVT 2014/07/23 11:49:23 Done.
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