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

Issue 11825007: Fix the loading progress bar for Android. (Closed)

Created:
7 years, 11 months ago by Ted C
Modified:
7 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Jay Civelli
Visibility:
Public.

Description

Fix the loading progress bar for Android. Switch to using a load method that allows us to distinguish between frames to ensure we only update the loading progress bar on main frame loads. Also, clears the progress when starting a load to nofity the user earlier of a change. BUG=168368 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175974

Patch Set 1 #

Total comments: 4

Patch Set 2 : Switched to copy constructor #

Patch Set 3 : Failed upload #

Patch Set 4 : Made LoadProgressChanged no only Android #

Total comments: 1

Patch Set 5 : Switch LoadProgressChanged back to android only. #

Total comments: 2

Patch Set 6 : Use DidChangeLoadProgress #

Patch Set 7 : Rebase and removed whitespace change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -22 lines) Patch
M content/browser/android/web_contents_observer_android.h View 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/android/web_contents_observer_android.cc View 1 6 chunks +41 lines, -22 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/WebContentsObserverAndroid.java View 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Ted C
+dtrainor for observer changes +sky for changes to web_contents_impl.cc
7 years, 11 months ago (2013-01-08 22:15:11 UTC) #1
David Trainor- moved to gerrit
lgtm https://chromiumcodereview.appspot.com/11825007/diff/1/content/browser/android/web_contents_observer_android.cc File content/browser/android/web_contents_observer_android.cc (right): https://chromiumcodereview.appspot.com/11825007/diff/1/content/browser/android/web_contents_observer_android.cc#newcode149 content/browser/android/web_contents_observer_android.cc:149: ScopedJavaLocalRef<jobject> obj = weak_java_observer_.get(env); maybe use obj(...); (copy ...
7 years, 11 months ago (2013-01-08 22:22:17 UTC) #2
Ted C
https://codereview.chromium.org/11825007/diff/1/content/browser/android/web_contents_observer_android.cc File content/browser/android/web_contents_observer_android.cc (right): https://codereview.chromium.org/11825007/diff/1/content/browser/android/web_contents_observer_android.cc#newcode149 content/browser/android/web_contents_observer_android.cc:149: ScopedJavaLocalRef<jobject> obj = weak_java_observer_.get(env); On 2013/01/08 22:22:18, dtrainor wrote: ...
7 years, 11 months ago (2013-01-08 22:43:17 UTC) #3
sky
This seems wrong to me. Why is LoadProgressChanged android specific?
7 years, 11 months ago (2013-01-08 22:54:07 UTC) #4
Ted C
On 2013/01/08 22:54:07, sky wrote: > This seems wrong to me. Why is LoadProgressChanged android ...
7 years, 11 months ago (2013-01-08 23:04:44 UTC) #5
sky
On Tue, Jan 8, 2013 at 3:04 PM, <tedchoc@chromium.org> wrote: > On 2013/01/08 22:54:07, sky ...
7 years, 11 months ago (2013-01-09 00:42:36 UTC) #6
Ted C
On Tue, Jan 8, 2013 at 4:42 PM, Scott Violet <sky@chromium.org> wrote: > On Tue, ...
7 years, 11 months ago (2013-01-09 00:49:14 UTC) #7
sky
On Tue, Jan 8, 2013 at 4:49 PM, Ted Choc <tedchoc@chromium.org> wrote: > On Tue, ...
7 years, 11 months ago (2013-01-09 00:56:11 UTC) #8
Ted C
On 2013/01/09 00:56:11, sky wrote: > On Tue, Jan 8, 2013 at 4:49 PM, Ted ...
7 years, 11 months ago (2013-01-09 01:10:16 UTC) #9
Ted C
+Nilesh just in case there was a strong reason to make this Android only in ...
7 years, 11 months ago (2013-01-09 01:10:48 UTC) #10
nilesh
https://codereview.chromium.org/11825007/diff/11001/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): https://codereview.chromium.org/11825007/diff/11001/content/public/browser/web_contents_delegate.h#newcode123 content/public/browser/web_contents_delegate.h:123: virtual void LoadProgressChanged(WebContents* source, double progress) {} If I ...
7 years, 11 months ago (2013-01-09 01:23:26 UTC) #11
nilesh
Other platforms save (multiple?) IPC messages by not implementing this. I think this is why ...
7 years, 11 months ago (2013-01-09 01:32:46 UTC) #12
Ted C
Hmm...that is unfortunate. I wonder if it would be better to document LoadProgressChanged will only ...
7 years, 11 months ago (2013-01-09 01:34:34 UTC) #13
sky
Is LoadProgressTracker behind an ifdef? The two should be consistent. So, if we have an ...
7 years, 11 months ago (2013-01-09 16:57:18 UTC) #14
Ted C
The LoadProgressTracker is behind an ifdef, so I'll revert back to my previous change. On ...
7 years, 11 months ago (2013-01-09 16:59:53 UTC) #15
Ted C
Ok...rolled back to the previous version. PTAL
7 years, 11 months ago (2013-01-09 19:01:37 UTC) #16
sky
https://codereview.chromium.org/11825007/diff/15001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/11825007/diff/15001/content/browser/web_contents/web_contents_impl.cc#newcode1988 content/browser/web_contents/web_contents_impl.cc:1988: if (delegate_ && is_main_frame) Can this invoke DidChangeLoadProgress so ...
7 years, 11 months ago (2013-01-09 20:39:36 UTC) #17
Ted C
https://codereview.chromium.org/11825007/diff/15001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/11825007/diff/15001/content/browser/web_contents/web_contents_impl.cc#newcode1988 content/browser/web_contents/web_contents_impl.cc:1988: if (delegate_ && is_main_frame) On 2013/01/09 20:39:37, sky wrote: ...
7 years, 11 months ago (2013-01-09 21:26:00 UTC) #18
sky
LGTM
7 years, 11 months ago (2013-01-09 22:26:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedchoc@chromium.org/11825007/9012
7 years, 11 months ago (2013-01-09 22:41:54 UTC) #20
commit-bot: I haz the power
7 years, 11 months ago (2013-01-10 01:43:59 UTC) #21
Message was sent while issue was closed.
Change committed as 175974

Powered by Google App Engine
This is Rietveld 408576698