WebContents.java revision 116680a4aac90f2aa7413d9095a592090648e557
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 3// found in the LICENSE file. 4 5package org.chromium.content_public.browser; 6 7/** 8 * The WebContents Java wrapper to allow communicating with the native WebContents object. 9 */ 10public interface WebContents { 11 /** 12 * @return The navigation controller associated with this WebContents. 13 */ 14 NavigationController getNavigationController(); 15 16 /** 17 * @return The title for the current visible page. 18 */ 19 String getTitle(); 20 21 /** 22 * @return The URL for the current visible page. 23 */ 24 String getVisibleUrl(); 25 26 /** 27 * Stop any pending navigation. 28 */ 29 void stop(); 30 31 /** 32 * Inserts css into main frame's document. 33 */ 34 void insertCSS(String css); 35} 36