NavigationClient.java revision 1320f92c476a1ad9d19dba2a48c72b75566198e9
1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5package org.chromium.content.browser; 6 7import org.chromium.content_public.browser.NavigationHistory; 8 9/** 10 * Provides functionality needed to query and page history and the ability to access 11 * items in the history. 12 */ 13public interface NavigationClient { 14 15 /** 16 * Get a directed copy of the navigation history of the view. 17 * @param isForward Whether the returned history should be entries after the current entry. 18 * @param itemLimit The limit on the number of items included in the history. 19 * @return A directed navigation for the page. 20 */ 21 public NavigationHistory getDirectedNavigationHistory(boolean isForward, int itemLimit); 22 23 /** 24 * Navigates to the specified index in the navigation entry for this page. 25 * @param index The navigation index to navigate to. 26 */ 27 public void goToNavigationIndex(int index); 28} 29