OLD | NEW |
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 /** | 7 /** |
8 * The NavigationController Java wrapper to allow communicating with the native | 8 * The NavigationController Java wrapper to allow communicating with the native |
9 * NavigationController object. | 9 * NavigationController object. |
10 */ | 10 */ |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 /** | 71 /** |
72 * Cancel the pending reload. | 72 * Cancel the pending reload. |
73 */ | 73 */ |
74 public void cancelPendingReload(); | 74 public void cancelPendingReload(); |
75 | 75 |
76 /** | 76 /** |
77 * Continue the pending reload. | 77 * Continue the pending reload. |
78 */ | 78 */ |
79 public void continuePendingReload(); | 79 public void continuePendingReload(); |
| 80 |
| 81 /** |
| 82 * Load url without fixing up the url string. Consumers of NavigationControl
ler are |
| 83 * responsible for ensuring the URL passed in is properly formatted (i.e. th
e |
| 84 * scheme has been added if left off during user input). |
| 85 * @param params Parameters for this load. |
| 86 */ |
| 87 public void loadUrl(LoadUrlParams params); |
| 88 |
| 89 /** |
| 90 * Clears NavigationController's page history in both backwards and |
| 91 * forwards directions. |
| 92 */ |
| 93 public void clearHistory(); |
| 94 |
| 95 /** |
| 96 * Get a copy of the navigation history of NavigationController. |
| 97 * @return navigation history of NavigationController. |
| 98 */ |
| 99 public NavigationHistory getNavigationHistory(); |
| 100 |
| 101 /** |
| 102 * Get the navigation history of NavigationController from current navigation
entry index |
| 103 * with direction (forward/backward) |
| 104 * @param isForward determines forward or backward from current index |
| 105 * @param itemLimit maximum number of entries to be retrieved in specified |
| 106 * diection. |
| 107 * @return navigation history by keeping above constraints. |
| 108 */ |
| 109 public NavigationHistory getDirectedNavigationHistory(boolean isForward, int
itemLimit); |
| 110 |
| 111 /** |
| 112 * Get Original URL for current Navigation entry of NavigationController. |
| 113 * @return The original request URL for the current navigation entry, or nul
l if there is no |
| 114 * current entry. |
| 115 */ |
| 116 public String getOriginalUrlForVisibleNavigationEntry(); |
| 117 |
| 118 /** |
| 119 * Clears SSL preferences for this NavigationController. |
| 120 */ |
| 121 public void clearSslPreferences(); |
| 122 |
| 123 /** |
| 124 * Get whether or not we're using a desktop user agent for the currently loa
ded page. |
| 125 * @return true, if use a desktop user agent and false for a mobile one. |
| 126 */ |
| 127 public boolean getUseDesktopUserAgent(); |
| 128 |
| 129 /** |
| 130 * Set whether or not we're using a desktop user agent for the currently loa
ded page. |
| 131 * @param override If true, use a desktop user agent. Use a mobile one othe
rwise. |
| 132 * @param reloadOnChange Reload the page if the UA has changed. |
| 133 */ |
| 134 public void setUseDesktopUserAgent(boolean override, boolean reloadOnChange)
; |
80 } | 135 } |
OLD | NEW |