OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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.chrome.browser; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import android.view.ContextMenu; | 7 import android.view.ContextMenu; |
8 | 8 |
9 import org.chromium.content.browser.ContentViewCore; | 9 import org.chromium.content.browser.ContentViewCore; |
10 | 10 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 */ | 111 */ |
112 void onUpdateUrl(Tab tab, String url); | 112 void onUpdateUrl(Tab tab, String url); |
113 | 113 |
114 /** | 114 /** |
115 * Called when the {@link Tab} should enter or leave fullscreen mode. | 115 * Called when the {@link Tab} should enter or leave fullscreen mode. |
116 * @param tab The notifying {@link Tab}. | 116 * @param tab The notifying {@link Tab}. |
117 * @param enable Whether or not to enter fullscreen mode. | 117 * @param enable Whether or not to enter fullscreen mode. |
118 */ | 118 */ |
119 void onToggleFullscreenMode(Tab tab, boolean enable); | 119 void onToggleFullscreenMode(Tab tab, boolean enable); |
120 | 120 |
121 // WebContentsObserverAndroid methods --------------------------------------
------------------- | 121 // WebContentsObserver methods ---------------------------------------------
------------ |
122 | 122 |
123 /** | 123 /** |
124 * Called when an error occurs while loading a page and/or the page fails to
load. | 124 * Called when an error occurs while loading a page and/or the page fails to
load. |
125 * @param tab The notifying {@link Tab}. | 125 * @param tab The notifying {@link Tab}. |
126 * @param isProvisionalLoad Whether the failed load occurred during the prov
isional load. | 126 * @param isProvisionalLoad Whether the failed load occurred during the prov
isional load. |
127 * @param isMainFrame Whether failed load happened for the main frame. | 127 * @param isMainFrame Whether failed load happened for the main frame. |
128 * @param errorCode Code for the occurring error. | 128 * @param errorCode Code for the occurring error. |
129 * @param description The description for the error. | 129 * @param description The description for the error. |
130 * @param failingUrl The url that was loading when the error occurred
. | 130 * @param failingUrl The url that was loading when the error occurred
. |
131 */ | 131 */ |
(...skipping 15 matching lines...) Expand all Loading... |
147 public void onDidStartProvisionalLoadForFrame( | 147 public void onDidStartProvisionalLoadForFrame( |
148 Tab tab, long frameId, long parentFrameId, boolean isMainFrame, Stri
ng validatedUrl, | 148 Tab tab, long frameId, long parentFrameId, boolean isMainFrame, Stri
ng validatedUrl, |
149 boolean isErrorPage, boolean isIframeSrcdoc); | 149 boolean isErrorPage, boolean isIframeSrcdoc); |
150 | 150 |
151 /** | 151 /** |
152 * Called when the theme color is changed | 152 * Called when the theme color is changed |
153 * @param color the new color in ARGB format. | 153 * @param color the new color in ARGB format. |
154 */ | 154 */ |
155 public void onDidChangeThemeColor(int color); | 155 public void onDidChangeThemeColor(int color); |
156 } | 156 } |
OLD | NEW |