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

Issue 975293004: Start caching the theme color in web_contents (Closed)

Created:
5 years, 9 months ago by Yusuf
Modified:
5 years, 9 months ago
Reviewers:
Ted C, no sievers
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, nasko+codewatch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This implements APIs plumbing theme color changes to java side and cached it in web_contents_impl. Fixes the reset and publish mechanism where we now wait for the first visually non empty paint to publish the color, making sure we can reset it on page load begin and have time enough to get the color update. Once this is in, we can remove the workarounds on the java side for the reset. BUG=435768 Committed: https://crrev.com/d41c5f99c2937d00bb234a75387c7329998b8a7f Cr-Commit-Position: refs/heads/master@{#319377}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Caching on web_contents_impl now #

Total comments: 4

Patch Set 3 : Made the default transparent and started caching last sent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -2 lines) Patch
M content/browser/web_contents/web_contents_android.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 5 chunks +19 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContents.java View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
Yusuf
5 years, 9 months ago (2015-03-04 21:44:50 UTC) #2
Yusuf
5 years, 9 months ago (2015-03-04 21:49:51 UTC) #4
no sievers
https://codereview.chromium.org/975293004/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/975293004/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode2774 content/browser/web_contents/web_contents_impl.cc:2774: rwhv->SetThemeColor(theme_color); Why don't you just cache it in here? ...
5 years, 9 months ago (2015-03-04 23:00:46 UTC) #5
Yusuf
https://codereview.chromium.org/975293004/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/975293004/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode2774 content/browser/web_contents/web_contents_impl.cc:2774: rwhv->SetThemeColor(theme_color); On 2015/03/04 23:00:46, sievers wrote: > Why don't ...
5 years, 9 months ago (2015-03-04 23:26:30 UTC) #6
no sievers
https://codereview.chromium.org/975293004/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/975293004/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode2774 content/browser/web_contents/web_contents_impl.cc:2774: rwhv->SetThemeColor(theme_color); On 2015/03/04 23:26:29, Yusuf wrote: > On 2015/03/04 ...
5 years, 9 months ago (2015-03-04 23:37:43 UTC) #7
Yusuf
https://codereview.chromium.org/975293004/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/975293004/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode2774 content/browser/web_contents/web_contents_impl.cc:2774: rwhv->SetThemeColor(theme_color); On 2015/03/04 23:37:42, sievers wrote: > On 2015/03/04 ...
5 years, 9 months ago (2015-03-04 23:38:56 UTC) #8
no sievers
It would be nice if we could have WebContents trigger NotifyNavigationStateChanged(INVALIDATE_TYPE_THEME_COLOR) when we know the ...
5 years, 9 months ago (2015-03-05 01:23:39 UTC) #9
Yusuf
Changed to caching in web_contents. We always reset on load and then publish once there ...
5 years, 9 months ago (2015-03-05 20:04:24 UTC) #10
no sievers
https://codereview.chromium.org/975293004/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/975293004/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode131 content/browser/web_contents/web_contents_impl.cc:131: const SkColor kDefaultThemeColor = 0xFFF2F2F2; It would be nice ...
5 years, 9 months ago (2015-03-05 20:18:41 UTC) #11
Yusuf
https://codereview.chromium.org/975293004/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/975293004/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode131 content/browser/web_contents/web_contents_impl.cc:131: const SkColor kDefaultThemeColor = 0xFFF2F2F2; On 2015/03/05 20:18:41, sievers ...
5 years, 9 months ago (2015-03-05 22:05:15 UTC) #12
no sievers
lgtm
5 years, 9 months ago (2015-03-05 22:38:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/975293004/40001
5 years, 9 months ago (2015-03-05 22:40:13 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-06 00:14:36 UTC) #16
commit-bot: I haz the power
5 years, 9 months ago (2015-03-06 00:15:57 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d41c5f99c2937d00bb234a75387c7329998b8a7f
Cr-Commit-Position: refs/heads/master@{#319377}

Powered by Google App Engine
This is Rietveld 408576698