OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |