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

Side by Side Diff: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java

Issue 2681933002: Add Java wrapper for RenderFrameHost (Closed)
Patch Set: Hold on to RFH main frame Created 3 years, 9 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 android.graphics.Bitmap; 7 import android.graphics.Bitmap;
8 import android.graphics.Rect; 8 import android.graphics.Rect;
9 import android.os.Handler; 9 import android.os.Handler;
10 import android.os.Parcelable; 10 import android.os.Parcelable;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 * @return Whether or not the native object associated with this WebContent is destroyed. 46 * @return Whether or not the native object associated with this WebContent is destroyed.
47 */ 47 */
48 boolean isDestroyed(); 48 boolean isDestroyed();
49 49
50 /** 50 /**
51 * @return The navigation controller associated with this WebContents. 51 * @return The navigation controller associated with this WebContents.
52 */ 52 */
53 NavigationController getNavigationController(); 53 NavigationController getNavigationController();
54 54
55 /** 55 /**
56 * @return The main frame associated with this WebContents.
57 */
58 RenderFrameHost getMainFrame();
59
60 /**
56 * @return The title for the current visible page. 61 * @return The title for the current visible page.
57 */ 62 */
58 String getTitle(); 63 String getTitle();
59 64
60 /** 65 /**
61 * @return The URL for the current visible page. 66 * @return The URL for the current visible page.
62 */ 67 */
63 String getVisibleUrl(); 68 String getVisibleUrl();
64 69
65 /** 70 /**
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 public void simulateRendererKilledForTesting(boolean wasOomProtected); 385 public void simulateRendererKilledForTesting(boolean wasOomProtected);
381 386
382 /** 387 /**
383 * Notifies the WebContents about the new persistent video status. It should be called whenever 388 * Notifies the WebContents about the new persistent video status. It should be called whenever
384 * the value changes. 389 * the value changes.
385 * 390 *
386 * @param value Whether there is a persistent video associated with this Web Contents. 391 * @param value Whether there is a persistent video associated with this Web Contents.
387 */ 392 */
388 public void setHasPersistentVideo(boolean value); 393 public void setHasPersistentVideo(boolean value);
389 } 394 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698