Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java

Issue 1381003004: Better distinguish didFinishLoad and didStopLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.tab; 5 package org.chromium.chrome.browser.tab;
6 6
7 import android.annotation.TargetApi; 7 import android.annotation.TargetApi;
8 import android.app.ActivityManager; 8 import android.app.ActivityManager;
9 import android.content.Context; 9 import android.content.Context;
10 import android.content.Intent; 10 import android.content.Intent;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 findMatchRectsDetails.rects[index] = rect; 178 findMatchRectsDetails.rects[index] = rect;
179 } 179 }
180 180
181 @Override 181 @Override
182 public void onLoadProgressChanged(int progress) { 182 public void onLoadProgressChanged(int progress) {
183 if (!mTab.isLoading()) return; 183 if (!mTab.isLoading()) return;
184 mTab.notifyLoadProgress(mTab.getProgress()); 184 mTab.notifyLoadProgress(mTab.getProgress());
185 } 185 }
186 186
187 @Override 187 @Override
188 public void onLoadStarted() { 188 public void onLoadStarted(boolean toDifferentDocument) {
189 RewindableIterator<TabObserver> observers = mTab.getTabObservers(); 189 mTab.onLoadStarted(toDifferentDocument);
190 while (observers.hasNext()) {
191 observers.next().onLoadStarted(mTab);
192 }
193 } 190 }
194 191
195 @Override 192 @Override
196 public void onLoadStopped() { 193 public void onLoadStopped() {
197 RewindableIterator<TabObserver> observers = mTab.getTabObservers(); 194 mTab.onLoadStopped();
198 while (observers.hasNext()) {
199 observers.next().onLoadStopped(mTab);
200 }
201 } 195 }
202 196
203 @Override 197 @Override
204 public void onUpdateUrl(String url) { 198 public void onUpdateUrl(String url) {
205 RewindableIterator<TabObserver> observers = mTab.getTabObservers(); 199 RewindableIterator<TabObserver> observers = mTab.getTabObservers();
206 while (observers.hasNext()) { 200 while (observers.hasNext()) {
207 observers.next().onUpdateUrl(mTab, url); 201 observers.next().onUpdateUrl(mTab, url);
208 } 202 }
209 } 203 }
210 204
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 */ 479 */
486 private boolean isCapturingVideo() { 480 private boolean isCapturingVideo() {
487 return !mTab.isClosing() && nativeIsCapturingVideo(mTab.getWebContents() ); 481 return !mTab.isClosing() && nativeIsCapturingVideo(mTab.getWebContents() );
488 } 482 }
489 483
490 private static native void nativeOnRendererUnresponsive(WebContents webConte nts); 484 private static native void nativeOnRendererUnresponsive(WebContents webConte nts);
491 private static native void nativeOnRendererResponsive(WebContents webContent s); 485 private static native void nativeOnRendererResponsive(WebContents webContent s);
492 private static native boolean nativeIsCapturingAudio(WebContents webContents ); 486 private static native boolean nativeIsCapturingAudio(WebContents webContents );
493 private static native boolean nativeIsCapturingVideo(WebContents webContents ); 487 private static native boolean nativeIsCapturingVideo(WebContents webContents );
494 } 488 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698