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

Issue 329943004: Implementation of brand-color (Closed)

Created:
6 years, 6 months ago by michaelbai
Modified:
6 years, 5 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, jamesr, Nate Chapin, kenneth.christiansen, rwlbuis, sof
Visibility:
Public.

Description

Implementation of brand-color Add APIs - WebFrame::brandColor() to get the brand color. - WebFrameClinet::didChangeBrandColor to notify the brand color change. BUG=383941 Intent to implement and ship link https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/nzRY-h_-_ig Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176142

Patch Set 1 #

Total comments: 9

Patch Set 2 : add RuntimeEnabledFeatures #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : Sync #

Patch Set 5 : #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -0 lines) Patch
M Source/core/dom/Document.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 2 chunks +14 lines, -0 lines 6 comments Download
M Source/core/html/HTMLMetaElement-in.cpp View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M Source/core/loader/EmptyClients.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/FrameLoaderClient.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/web/WebDocument.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A Source/web/tests/data/brand_color_test.html View 1 1 chunk +8 lines, -0 lines 7 comments Download
M public/web/WebDocument.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M public/web/WebFrameClient.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
michaelbai
This is new patch solely for brand-color, in the meanwhile, I am working on whatwg ...
6 years, 6 months ago (2014-06-12 23:47:58 UTC) #1
abarth-chromium
Thanks! This CL is definitely on the right track. A couple minor comments below. Also, ...
6 years, 6 months ago (2014-06-13 05:40:42 UTC) #2
michaelbai
Thanks for quick response, I have a qq for moving brandColor() to WebDocument, see my ...
6 years, 6 months ago (2014-06-13 15:55:06 UTC) #3
abarth-chromium
On 2014/06/13 at 15:55:06, michaelbai wrote: > I added this method here because > - ...
6 years, 6 months ago (2014-06-13 17:12:16 UTC) #4
michaelbai
PTAL, here a major change Use RuntimeEnabledFeature to guard the code, as didChangeBrandColor will pop ...
6 years, 6 months ago (2014-06-13 19:56:51 UTC) #5
abarth-chromium
https://codereview.chromium.org/329943004/diff/20001/Source/platform/RuntimeEnabledFeatures.in File Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/329943004/diff/20001/Source/platform/RuntimeEnabledFeatures.in#newcode32 Source/platform/RuntimeEnabledFeatures.in:32: // This is enabled by Android only. We can ...
6 years, 6 months ago (2014-06-13 22:06:58 UTC) #6
abarth-chromium
https://codereview.chromium.org/329943004/diff/20001/Source/platform/RuntimeEnabledFeatures.in File Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/329943004/diff/20001/Source/platform/RuntimeEnabledFeatures.in#newcode33 Source/platform/RuntimeEnabledFeatures.in:33: BrandColor LGTM if you set this to status=experimental and ...
6 years, 6 months ago (2014-06-13 22:07:55 UTC) #7
michaelbai
https://codereview.chromium.org/329943004/diff/20001/Source/platform/RuntimeEnabledFeatures.in File Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/329943004/diff/20001/Source/platform/RuntimeEnabledFeatures.in#newcode33 Source/platform/RuntimeEnabledFeatures.in:33: BrandColor On 2014/06/13 22:07:55, abarth wrote: > LGTM if ...
6 years, 6 months ago (2014-06-13 23:11:38 UTC) #8
michaelbai
The CQ bit was checked by michaelbai@chromium.org
6 years, 6 months ago (2014-06-13 23:43:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/329943004/100001
6 years, 6 months ago (2014-06-13 23:44:19 UTC) #10
commit-bot: I haz the power
Change committed as 176142
6 years, 6 months ago (2014-06-14 01:09:02 UTC) #11
pdr.
On 2014/06/14 01:09:02, I haz the power (commit-bot) wrote: > Change committed as 176142 I ...
6 years, 6 months ago (2014-06-14 01:17:03 UTC) #12
michaelbai
On 2014/06/14 01:17:03, pdr wrote: > On 2014/06/14 01:09:02, I haz the power (commit-bot) wrote: ...
6 years, 6 months ago (2014-06-14 01:28:49 UTC) #13
pdr.
On 2014/06/14 01:28:49, michaelbai wrote: > On 2014/06/14 01:17:03, pdr wrote: > > On 2014/06/14 ...
6 years, 6 months ago (2014-06-14 01:41:05 UTC) #14
michaelbai
I asked account to update wiki, and hasn't gotten any response. On Fri, Jun 13, ...
6 years, 6 months ago (2014-06-14 01:49:05 UTC) #15
abarth-chromium
On 2014/06/14 at 01:41:05, pdr wrote: > I'm not asking for this to be reverted ...
6 years, 6 months ago (2014-06-14 02:44:10 UTC) #16
esprehn
https://codereview.chromium.org/329943004/diff/100001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/329943004/diff/100001/Source/core/dom/Document.cpp#newcode4746 Source/core/dom/Document.cpp:4746: for (HTMLMetaElement* metaElement = head() ? Traversal<HTMLMetaElement>::firstChild(*head()) : 0; ...
6 years, 6 months ago (2014-06-19 10:37:04 UTC) #17
michaelbai
Thanks for the comments, please see my response inline. https://codereview.chromium.org/329943004/diff/100001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/329943004/diff/100001/Source/core/dom/Document.cpp#newcode4746 Source/core/dom/Document.cpp:4746: ...
6 years, 6 months ago (2014-06-19 16:42:51 UTC) #18
esprehn
https://codereview.chromium.org/329943004/diff/100001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/329943004/diff/100001/Source/core/dom/Document.cpp#newcode4746 Source/core/dom/Document.cpp:4746: for (HTMLMetaElement* metaElement = head() ? Traversal<HTMLMetaElement>::firstChild(*head()) : 0; ...
6 years, 6 months ago (2014-06-19 18:02:21 UTC) #19
michaelbai
esprehn@ Thanks for your comments, here is the update - Last brand-color is my typo, ...
6 years, 6 months ago (2014-06-20 19:45:34 UTC) #20
eseidel
It's really unfortunate that this CL is needed at all. Ideally the web platform should ...
6 years, 5 months ago (2014-06-30 20:59:50 UTC) #21
michaelbai
6 years, 5 months ago (2014-06-30 21:30:33 UTC) #22
Message was sent while issue was closed.
On 2014/06/30 20:59:50, eseidel wrote:
> It's really unfortunate that this CL is needed at all.  Ideally the web
platform
> should expose a better way to parse colors.
> 
>
http://stackoverflow.com/questions/11068240/what-is-the-most-efficient-way-to...

Sorry, I don't understand your point, the given link is about parsing color by
javascript, what I did here is to notify the color to browser.

Powered by Google App Engine
This is Rietveld 408576698