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

Issue 278173005: Removing listening for repaints (OnUpdateRect) from OverscrollNavigationOverlay. (Closed)

Created:
6 years, 7 months ago by mfomitchev
Modified:
6 years, 6 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

The overlay is now dismissed after the first non-empty paint or the page load, whichever comes first. Removed all listening for repaints (OnUpdateRect). Also updated the code for overlay fadeout to avoid the need to repaint the overlay layer before the animation is started - we now fadeout the WindowSlider's layer if it was the one being shown when the fadeout was started. BUG=NONE Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273961

Patch Set 1 #

Total comments: 1

Patch Set 2 : Adding load listening back to support in-page navigations properly. #

Total comments: 6

Patch Set 3 : Updating a comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -140 lines) Patch
M content/browser/web_contents/aura/overscroll_navigation_overlay.h View 1 2 4 chunks +9 lines, -18 lines 0 comments Download
M content/browser/web_contents/aura/overscroll_navigation_overlay.cc View 1 2 8 chunks +23 lines, -72 lines 0 comments Download
M content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc View 1 2 6 chunks +5 lines, -27 lines 0 comments Download
M content/browser/web_contents/aura/window_slider.h View 1 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/web_contents/aura/window_slider.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/web_contents/aura/window_slider_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura_browsertest.cc View 1 2 3 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
mfomitchev
Sadrul, can you please take a look? Thanks! https://codereview.chromium.org/278173005/diff/1/content/browser/web_contents/web_contents_view_aura_browsertest.cc File content/browser/web_contents/web_contents_view_aura_browsertest.cc (right): https://codereview.chromium.org/278173005/diff/1/content/browser/web_contents/web_contents_view_aura_browsertest.cc#newcode215 content/browser/web_contents/web_contents_view_aura_browsertest.cc:215: RenderViewHostTester::TestOnMessageReceived(rvh, ...
6 years, 7 months ago (2014-05-14 17:46:34 UTC) #1
sadrul
I seem to remember we don't get a first-paint message for in-page navigations. Can you ...
6 years, 7 months ago (2014-05-14 18:20:46 UTC) #2
mfomitchev
You are right, it's broken for GMail. WHat do you think is the best way ...
6 years, 7 months ago (2014-05-14 19:34:37 UTC) #3
sadrul
On 2014/05/14 19:34:37, mfomitchev wrote: > You are right, it's broken for GMail. > WHat ...
6 years, 7 months ago (2014-05-15 21:36:35 UTC) #4
mfomitchev
On 2014/05/15 21:36:35, sadrul wrote: > PaintObserver as it was wasn't great, and was relatively ...
6 years, 7 months ago (2014-05-15 21:45:50 UTC) #5
sadrul
On 2014/05/15 21:45:50, mfomitchev wrote: > On 2014/05/15 21:36:35, sadrul wrote: > > PaintObserver as ...
6 years, 7 months ago (2014-05-20 16:58:09 UTC) #6
mfomitchev
Ok, I just got rid of OnUpdateRect (and that was actually a bit more tricky ...
6 years, 7 months ago (2014-05-21 17:37:23 UTC) #7
sadrul
https://codereview.chromium.org/278173005/diff/20001/content/browser/web_contents/aura/overscroll_navigation_overlay.cc File content/browser/web_contents/aura/overscroll_navigation_overlay.cc (left): https://codereview.chromium.org/278173005/diff/20001/content/browser/web_contents/aura/overscroll_navigation_overlay.cc#oldcode304 content/browser/web_contents/aura/overscroll_navigation_overlay.cc:304: void OverscrollNavigationOverlay::DocumentOnLoadCompletedInMainFrame() { This is related to document loading. ...
6 years, 7 months ago (2014-05-27 16:48:28 UTC) #8
mfomitchev
https://codereview.chromium.org/278173005/diff/20001/content/browser/web_contents/aura/overscroll_navigation_overlay.cc File content/browser/web_contents/aura/overscroll_navigation_overlay.cc (left): https://codereview.chromium.org/278173005/diff/20001/content/browser/web_contents/aura/overscroll_navigation_overlay.cc#oldcode304 content/browser/web_contents/aura/overscroll_navigation_overlay.cc:304: void OverscrollNavigationOverlay::DocumentOnLoadCompletedInMainFrame() { It was helping dismiss the page ...
6 years, 7 months ago (2014-05-27 21:21:05 UTC) #9
sadrul
LGTM!
6 years, 6 months ago (2014-05-30 15:33:12 UTC) #10
mfomitchev
@sky - can you please review as the owner? Thanks!
6 years, 6 months ago (2014-05-30 15:34:44 UTC) #11
sky
LGTM
6 years, 6 months ago (2014-05-30 16:40:40 UTC) #12
mfomitchev
The CQ bit was checked by mfomitchev@chromium.org
6 years, 6 months ago (2014-05-30 17:40:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/278173005/40001
6 years, 6 months ago (2014-05-30 17:46:58 UTC) #14
commit-bot: I haz the power
6 years, 6 months ago (2014-05-31 00:40:25 UTC) #15
Message was sent while issue was closed.
Change committed as 273961

Powered by Google App Engine
This is Rietveld 408576698