OLD | NEW |
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.chrome.browser; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import android.app.Activity; | 7 import android.app.Activity; |
8 import android.content.Context; | 8 import android.content.Context; |
9 import android.graphics.Bitmap; | 9 import android.graphics.Bitmap; |
10 import android.graphics.Color; | 10 import android.graphics.Color; |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 } | 245 } |
246 if ((flags & INVALIDATE_TYPE_URL) != 0) { | 246 if ((flags & INVALIDATE_TYPE_URL) != 0) { |
247 for (TabObserver observer : mObservers) observer.onUrlUpdated(Ta
b.this); | 247 for (TabObserver observer : mObservers) observer.onUrlUpdated(Ta
b.this); |
248 } | 248 } |
249 } | 249 } |
250 | 250 |
251 @Override | 251 @Override |
252 public void visibleSSLStateChanged() { | 252 public void visibleSSLStateChanged() { |
253 for (TabObserver observer : mObservers) observer.onSSLStateUpdated(T
ab.this); | 253 for (TabObserver observer : mObservers) observer.onSSLStateUpdated(T
ab.this); |
254 } | 254 } |
| 255 |
| 256 @Override |
| 257 public void webContentsCreated(long sourceWebContents, long openerRender
FrameId, |
| 258 String frameName, String targetUrl, long newWebContents) { |
| 259 for (TabObserver observer : mObservers) { |
| 260 observer.webContentsCreated(Tab.this, sourceWebContents, openerR
enderFrameId, |
| 261 frameName, targetUrl, newWebContents); |
| 262 } |
| 263 } |
255 } | 264 } |
256 | 265 |
257 private class TabContextMenuPopulator extends ContextMenuPopulatorWrapper { | 266 private class TabContextMenuPopulator extends ContextMenuPopulatorWrapper { |
258 public TabContextMenuPopulator(ContextMenuPopulator populator) { | 267 public TabContextMenuPopulator(ContextMenuPopulator populator) { |
259 super(populator); | 268 super(populator); |
260 } | 269 } |
261 | 270 |
262 @Override | 271 @Override |
263 public void buildContextMenu(ContextMenu menu, Context context, ContextM
enuParams params) { | 272 public void buildContextMenu(ContextMenu menu, Context context, ContextM
enuParams params) { |
264 super.buildContextMenu(menu, context, params); | 273 super.buildContextMenu(menu, context, params); |
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 private native void nativeDestroyWebContents(long nativeTabAndroid, boolean
deleteNative); | 1229 private native void nativeDestroyWebContents(long nativeTabAndroid, boolean
deleteNative); |
1221 private native Profile nativeGetProfileAndroid(long nativeTabAndroid); | 1230 private native Profile nativeGetProfileAndroid(long nativeTabAndroid); |
1222 private native int nativeLoadUrl(long nativeTabAndroid, String url, String e
xtraHeaders, | 1231 private native int nativeLoadUrl(long nativeTabAndroid, String url, String e
xtraHeaders, |
1223 byte[] postData, int transition, String referrerUrl, int referrerPol
icy, | 1232 byte[] postData, int transition, String referrerUrl, int referrerPol
icy, |
1224 boolean isRendererInitiated); | 1233 boolean isRendererInitiated); |
1225 private native void nativeSetActiveNavigationEntryTitleForUrl(long nativeTab
Android, String url, | 1234 private native void nativeSetActiveNavigationEntryTitleForUrl(long nativeTab
Android, String url, |
1226 String title); | 1235 String title); |
1227 private native boolean nativePrint(long nativeTabAndroid); | 1236 private native boolean nativePrint(long nativeTabAndroid); |
1228 private native Bitmap nativeGetDefaultFavicon(long nativeTabAndroid); | 1237 private native Bitmap nativeGetDefaultFavicon(long nativeTabAndroid); |
1229 } | 1238 } |
OLD | NEW |