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

Side by Side Diff: components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java

Issue 2363533002: Add mojom for WindowOpenDisposition (Closed)
Patch Set: . Created 4 years, 3 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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.components.web_contents_delegate_android; 5 package org.chromium.components.web_contents_delegate_android;
6 6
7 import android.view.KeyEvent; 7 import android.view.KeyEvent;
8 8
9 import org.chromium.base.annotations.CalledByNative; 9 import org.chromium.base.annotations.CalledByNative;
10 import org.chromium.base.annotations.JNINamespace; 10 import org.chromium.base.annotations.JNINamespace;
(...skipping 17 matching lines...) Expand all
28 28
29 // The most recent load progress callback received from WebContents, as a pe rcentage. 29 // The most recent load progress callback received from WebContents, as a pe rcentage.
30 // Initialize to 100 to indicate that we're not in a loading state. 30 // Initialize to 100 to indicate that we're not in a loading state.
31 private int mMostRecentProgress = 100; 31 private int mMostRecentProgress = 100;
32 32
33 public int getMostRecentProgress() { 33 public int getMostRecentProgress() {
34 return mMostRecentProgress; 34 return mMostRecentProgress;
35 } 35 }
36 36
37 /** 37 /**
38 * @param disposition The new tab disposition as per the constants i n 38 * @param disposition The new tab disposition, defined in
39 * org.chromium.ui.WindowOpenDisposition (See 39 * //ui/base/mojo/window_open_disposition.mojom.
40 * window_open_disposition_list.h for the enumera tion definitions).
41 * @param isRendererInitiated Whether or not the renderer initiated this act ion. 40 * @param isRendererInitiated Whether or not the renderer initiated this act ion.
42 */ 41 */
43 @CalledByNative 42 @CalledByNative
44 public void openNewTab(String url, String extraHeaders, ResourceRequestBody postData, 43 public void openNewTab(String url, String extraHeaders, ResourceRequestBody postData,
45 int disposition, boolean isRendererInitiated) { 44 int disposition, boolean isRendererInitiated) {
46 } 45 }
47 46
48 @CalledByNative 47 @CalledByNative
49 public void activateContents() { 48 public void activateContents() {
50 } 49 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 147
149 @CalledByNative 148 @CalledByNative
150 public void toggleFullscreenModeForTab(boolean enterFullscreen) { 149 public void toggleFullscreenModeForTab(boolean enterFullscreen) {
151 } 150 }
152 151
153 @CalledByNative 152 @CalledByNative
154 public boolean isFullscreenForTabOrPending() { 153 public boolean isFullscreenForTabOrPending() {
155 return false; 154 return false;
156 } 155 }
157 } 156 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698