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

Issue 11428070: Some required fixes for HTMLViewer rotate (Closed)

Created:
8 years ago by boliu
Modified:
8 years ago
Reviewers:
joth
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Some required fixes for HTMLViewer rotate * View system calls onDetachedFromWindow after HTMLViewer already calle destroy so need a check in onDetachedFromWindow. * PageID in restored entries needs to be reset (0-indexed). * Need to call NavigationController::LoadIfNecessary after calling Restore to actually load the restored page. * Need to call onTitleUpdated callback since title is restored and the callback is optimized out inside chromium. BUG= TBR=joth@chromium.org Android only change. Ran through android trybots. NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170484

Patch Set 1 #

Patch Set 2 : Call onResume in onAttachedToWindow, instead of LoadIfNecessary directly. #

Total comments: 3

Patch Set 3 : Fix title callback. Merge new test intol existing title test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -7 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 chunks +20 lines, -6 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/SaveRestoreStateTest.java View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java View 2 chunks +10 lines, -0 lines 0 comments Download
M android_webview/native/state_serializer.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
joth
lgtm https://codereview.chromium.org/11428070/diff/1005/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/11428070/diff/1005/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode582 android_webview/java/src/org/chromium/android_webview/AwContents.java:582: onResume(); This would seem clearer as if (!mIsPaused) ...
8 years ago (2012-11-29 05:56:14 UTC) #1
boliu
This is not ready to land yet since the test is not passing. May remove ...
8 years ago (2012-11-29 06:14:02 UTC) #2
boliu
Patch Set 3 TBR=joth
8 years ago (2012-11-30 17:20:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/11428070/6001
8 years ago (2012-11-30 18:04:38 UTC) #4
commit-bot: I haz the power
8 years ago (2012-11-30 18:05:17 UTC) #5
Message was sent while issue was closed.
Change committed as 170484

Powered by Google App Engine
This is Rietveld 408576698