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

Issue 7053022: Use the WebKit default fonts when specifying generic font families. (Closed)

Created:
9 years, 7 months ago by brettw
Modified:
9 years, 7 months ago
Reviewers:
yzshen1
CC:
chromium-reviews, piman+watch_chromium.org, jam, darin-cc_chromium.org, Jói
Visibility:
Public.

Description

Use the WebKit default fonts when specifying generic font families. This pipes through a new preferences object that the font system can use. It now picks up these faces as well as the default font size. Clarify this behavior in the interface. TEST=manual (font example included). BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86870

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 9

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -30 lines) Patch
M content/ppapi_plugin/ppapi_thread.h View 1 2 2 chunks +8 lines, -7 lines 0 comments Download
M content/renderer/pepper_plugin_delegate_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper_plugin_delegate_impl.cc View 1 2 6 chunks +13 lines, -3 lines 0 comments Download
M ppapi/c/dev/ppb_font_dev.h View 1 2 1 chunk +16 lines, -3 lines 0 comments Download
M ppapi/examples/font/simple_font.cc View 1 2 2 chunks +55 lines, -4 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/host_dispatcher.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M ppapi/proxy/host_dispatcher.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 2 3 5 chunks +14 lines, -0 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 2 3 3 chunks +17 lines, -1 line 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 chunks +14 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_font_proxy.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
A ppapi/shared_impl/ppapi_preferences.h View 1 chunk +30 lines, -0 lines 0 comments Download
A ppapi/shared_impl/ppapi_preferences.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M ppapi/shared_impl/webkit_forwarding.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_font_impl.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/webkit_forwarding_impl.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/webkit_forwarding_impl.cc View 1 2 6 chunks +52 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
brettw
9 years, 7 months ago (2011-05-25 21:47:37 UTC) #1
yzshen1
Hi, Brett. It looks great, just a few nits... http://codereview.chromium.org/7053022/diff/6003/content/renderer/pepper_plugin_delegate_impl.cc File content/renderer/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/7053022/diff/6003/content/renderer/pepper_plugin_delegate_impl.cc#newcode1330 content/renderer/pepper_plugin_delegate_impl.cc:1330: ...
9 years, 7 months ago (2011-05-25 23:40:10 UTC) #2
yzshen1
One more comment: I am not familiar with WebPreferences, but is it possible that the ...
9 years, 7 months ago (2011-05-25 23:52:08 UTC) #3
brettw
I changed it so we can only set the prefs once, and added a comment ...
9 years, 7 months ago (2011-05-26 17:29:48 UTC) #4
yzshen1
9 years, 7 months ago (2011-05-26 17:49:51 UTC) #5
LGTM

Thanks!

http://codereview.chromium.org/7053022/diff/6003/ppapi/examples/font/simple_f...
File ppapi/examples/font/simple_font.cc (right):

http://codereview.chromium.org/7053022/diff/6003/ppapi/examples/font/simple_f...
ppapi/examples/font/simple_font.cc:96: snprintf(buf, sizeof(buf), "%s = %s
%dpt",
Sounds good to me.

On 2011/05/26 17:29:49, brettw wrote:
> Darn. Since this is just an example and I'd rather keep it simple, I think
I'll
> just use sprintf.

Powered by Google App Engine
This is Rietveld 408576698