OLD | NEW |
1 // Copyright (c) 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.CalledByNative; | 9 import org.chromium.base.CalledByNative; |
10 import org.chromium.base.JNINamespace; | 10 import org.chromium.base.JNINamespace; |
11 import org.chromium.content.browser.ContentViewCore; | 11 import org.chromium.content.browser.ContentViewCore; |
(...skipping 28 matching lines...) Expand all Loading... |
40 | 40 |
41 // The most recent load progress callback received from WebContents, as a pe
rcentage. | 41 // The most recent load progress callback received from WebContents, as a pe
rcentage. |
42 // Initialize to 100 to indicate that we're not in a loading state. | 42 // Initialize to 100 to indicate that we're not in a loading state. |
43 private int mMostRecentProgress = 100; | 43 private int mMostRecentProgress = 100; |
44 | 44 |
45 public int getMostRecentProgress() { | 45 public int getMostRecentProgress() { |
46 return mMostRecentProgress; | 46 return mMostRecentProgress; |
47 } | 47 } |
48 | 48 |
49 /** | 49 /** |
50 * @param disposition The new tab disposition as per the constants in | 50 * @param disposition The new tab disposition as per the constants i
n |
51 * org.chromium.ui.WindowOpenDisposition (See window_open
_disposition_list.h | 51 * org.chromium.ui.WindowOpenDisposition (See |
52 * for the enumeration definitions). | 52 * window_open_disposition_list.h for the enumera
tion definitions). |
| 53 * @param isRendererInitiated Whether or not the renderer initiated this act
ion. |
53 */ | 54 */ |
54 @CalledByNative | 55 @CalledByNative |
55 public void openNewTab(String url, String extraHeaders, byte[] postData, int
disposition) { | 56 public void openNewTab(String url, String extraHeaders, byte[] postData, int
disposition, |
| 57 boolean isRendererInitiated) { |
56 } | 58 } |
57 | 59 |
58 @CalledByNative | 60 @CalledByNative |
59 public void activateContents() { | 61 public void activateContents() { |
60 } | 62 } |
61 | 63 |
62 @CalledByNative | 64 @CalledByNative |
63 public void closeContents() { | 65 public void closeContents() { |
64 } | 66 } |
65 | 67 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 144 |
143 @CalledByNative | 145 @CalledByNative |
144 public void toggleFullscreenModeForTab(boolean enterFullscreen) { | 146 public void toggleFullscreenModeForTab(boolean enterFullscreen) { |
145 } | 147 } |
146 | 148 |
147 @CalledByNative | 149 @CalledByNative |
148 public boolean isFullscreenForTabOrPending() { | 150 public boolean isFullscreenForTabOrPending() { |
149 return false; | 151 return false; |
150 } | 152 } |
151 } | 153 } |
OLD | NEW |