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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
244 for (TabObserver observer : mObservers) observer.onTitleUpdated( Tab.this); | 244 for (TabObserver observer : mObservers) observer.onTitleUpdated( Tab.this); |
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 } |
Bernhard Bauer
2014/11/13 09:38:02
Empty line between methods.
AKVT
2014/11/13 09:48:55
Done.
| |
255 @Override | |
256 public void webContentsCreated(long sourceWebContents, long openerRender FrameId, | |
257 String frameName, String targetUrl, long newWebContents) { | |
258 for (TabObserver observer : mObservers) observer.webContentsCreated( Tab.this, | |
Bernhard Bauer
2014/11/13 09:38:03
You can only leave out braces if the whole things
AKVT
2014/11/13 09:48:54
Done.
| |
259 sourceWebContents, openerRenderFrameId, frameName, targetUrl , newWebContents); | |
260 } | |
255 } | 261 } |
256 | 262 |
257 private class TabContextMenuPopulator extends ContextMenuPopulatorWrapper { | 263 private class TabContextMenuPopulator extends ContextMenuPopulatorWrapper { |
258 public TabContextMenuPopulator(ContextMenuPopulator populator) { | 264 public TabContextMenuPopulator(ContextMenuPopulator populator) { |
259 super(populator); | 265 super(populator); |
260 } | 266 } |
261 | 267 |
262 @Override | 268 @Override |
263 public void buildContextMenu(ContextMenu menu, Context context, ContextM enuParams params) { | 269 public void buildContextMenu(ContextMenu menu, Context context, ContextM enuParams params) { |
264 super.buildContextMenu(menu, context, params); | 270 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); | 1226 private native void nativeDestroyWebContents(long nativeTabAndroid, boolean deleteNative); |
1221 private native Profile nativeGetProfileAndroid(long nativeTabAndroid); | 1227 private native Profile nativeGetProfileAndroid(long nativeTabAndroid); |
1222 private native int nativeLoadUrl(long nativeTabAndroid, String url, String e xtraHeaders, | 1228 private native int nativeLoadUrl(long nativeTabAndroid, String url, String e xtraHeaders, |
1223 byte[] postData, int transition, String referrerUrl, int referrerPol icy, | 1229 byte[] postData, int transition, String referrerUrl, int referrerPol icy, |
1224 boolean isRendererInitiated); | 1230 boolean isRendererInitiated); |
1225 private native void nativeSetActiveNavigationEntryTitleForUrl(long nativeTab Android, String url, | 1231 private native void nativeSetActiveNavigationEntryTitleForUrl(long nativeTab Android, String url, |
1226 String title); | 1232 String title); |
1227 private native boolean nativePrint(long nativeTabAndroid); | 1233 private native boolean nativePrint(long nativeTabAndroid); |
1228 private native Bitmap nativeGetDefaultFavicon(long nativeTabAndroid); | 1234 private native Bitmap nativeGetDefaultFavicon(long nativeTabAndroid); |
1229 } | 1235 } |
OLD | NEW |