- add sources.
[platform/framework/web/crosswalk.git] / src / content / public / android / java / src / org / chromium / content / browser / NavigationClient.java
1 // Copyright (c) 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
5 package org.chromium.content.browser;
6
7 /**
8  * Provides functionality needed to query and page history and the ability to access
9  * items in the history.
10  */
11 public interface NavigationClient {
12
13     /**
14      * Get a directed copy of the navigation history of the view.
15      * @param isForward Whether the returned history should be entries after the current entry.
16      * @param itemLimit The limit on the number of items included in the history.
17      * @return A directed navigation for the page.
18      */
19     public NavigationHistory getDirectedNavigationHistory(boolean isForward, int itemLimit);
20
21     /**
22      * Navigates to the specified index in the navigation entry for this page.
23      * @param index The navigation index to navigate to.
24      */
25     public void goToNavigationIndex(int index);
26 }