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

Issue 142523003: Renames gfx::FontList::Derive* family. (Closed)

Created:
6 years, 11 months ago by Yuki
Modified:
6 years, 10 months ago
CC:
chromium-reviews, asanka, tfarina, benjhayden+dwatch_chromium.org, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Renames gfx::FontList::Derive* family. 1. Removes obsolete methods. - DeriveFontList(font_style) # The method name and argument are not clear compared to other versions. Use DeriveWithStyle(style) below instead. - DeriveFontListWithSize(absolute_size) # Don't specify the absolute size. 2. Renames very long named methods. - DeriveFontListWithSizeDeltaAndStyle => Derive - DeriveFontListWithSizeDelta => DeriveWithSizeDelta - new method => DeriveWithStyle Since DeriveFontListWithSizeDeltaAndStyle is used more often than DeriveFontListWithSizeDelta, so give the former a shorter name. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248131

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Synced. #

Patch Set 3 : Addressed comments and more fixes. #

Total comments: 11

Patch Set 4 : Synced. #

Patch Set 5 : Addressed review comments. #

Patch Set 6 : Synced. #

Patch Set 7 : Changed sticky key indicators to use LargeFont. #

Total comments: 12

Patch Set 8 : Changed to mutable reference. #

Patch Set 9 : Synced. #

Patch Set 10 : Synced. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -152 lines) Patch
M ash/ime/infolist_window.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ash/ime/infolist_window.cc View 1 2 3 4 5 7 chunks +12 lines, -16 lines 0 comments Download
M ash/sticky_keys/sticky_keys_overlay.cc View 1 2 3 4 5 6 3 chunks +5 lines, -3 lines 0 comments Download
M build/android/pylib/gtest/filter/ui_unittests_disabled View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M ui/app_list/views/speech_view.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -8 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 4 1 chunk +10 lines, -10 lines 0 comments Download
M ui/gfx/font_list.h View 1 2 3 4 1 chunk +13 lines, -11 lines 0 comments Download
M ui/gfx/font_list.cc View 1 2 3 4 2 chunks +21 lines, -20 lines 0 comments Download
M ui/gfx/font_list_unittest.cc View 1 2 3 4 2 chunks +17 lines, -66 lines 0 comments Download
M ui/gfx/render_text.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/gfx/render_text.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gfx/render_text_pango.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/text_example.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (0 generated)
Yuki
As Mike suggested before, I'm now planning to rename FontList::DeriveFontListWithSizeDeltaAndStyle() to Derive(). Could you guys ...
6 years, 11 months ago (2014-01-20 09:26:25 UTC) #1
Alexei Svitkine (slow)
I think it would be cleaner to switch the GetStringWidth() changes to their own CL ...
6 years, 11 months ago (2014-01-20 15:38:10 UTC) #2
Yuki
I'll separate this CL into two as suggested. Will work on non-const ref issue in ...
6 years, 11 months ago (2014-01-20 16:43:24 UTC) #3
msw
Just one additional nit beyond what Alexei said. https://codereview.chromium.org/142523003/diff/30001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/142523003/diff/30001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode267 chrome/browser/ui/views/location_bar/location_bar_view.cc:267: if ...
6 years, 11 months ago (2014-01-21 19:31:11 UTC) #4
Yuki
https://codereview.chromium.org/142523003/diff/30001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/142523003/diff/30001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode267 chrome/browser/ui/views/location_bar/location_bar_view.cc:267: if (current_font_size < desired_font_size) { On 2014/01/21 19:31:12, msw ...
6 years, 11 months ago (2014-01-23 15:24:19 UTC) #5
msw
LGTM with a couple nits https://codereview.chromium.org/142523003/diff/160001/ui/gfx/font_list_unittest.cc File ui/gfx/font_list_unittest.cc (right): https://codereview.chromium.org/142523003/diff/160001/ui/gfx/font_list_unittest.cc#newcode211 ui/gfx/font_list_unittest.cc:211: FontList font_list = FontList("Arial,Sans ...
6 years, 11 months ago (2014-01-23 17:56:44 UTC) #6
Alexei Svitkine (slow)
Please update the CL description. Also, it seems a lot of callsites seem to call ...
6 years, 11 months ago (2014-01-23 18:47:54 UTC) #7
Yuki
https://codereview.chromium.org/142523003/diff/160001/ash/ime/infolist_window.cc File ash/ime/infolist_window.cc (right): https://codereview.chromium.org/142523003/diff/160001/ash/ime/infolist_window.cc#newcode173 ash/ime/infolist_window.cc:173: title_font_list_(gfx::Font(kJapaneseFontName, kFontSizeDelta + 15)), On 2014/01/23 18:47:54, Alexei Svitkine ...
6 years, 11 months ago (2014-01-24 10:23:19 UTC) #8
Alexei Svitkine (slow)
https://codereview.chromium.org/142523003/diff/160001/ash/sticky_keys/sticky_keys_overlay.cc File ash/sticky_keys/sticky_keys_overlay.cc (right): https://codereview.chromium.org/142523003/diff/160001/ash/sticky_keys/sticky_keys_overlay.cc#newcode75 ash/sticky_keys/sticky_keys_overlay.cc:75: SetFontList(font_list().DeriveWithSizeDelta(4)); On 2014/01/24 10:23:20, Yuki wrote: > On 2014/01/23 ...
6 years, 11 months ago (2014-01-24 15:53:41 UTC) #9
Yuki
https://codereview.chromium.org/142523003/diff/160001/ash/sticky_keys/sticky_keys_overlay.cc File ash/sticky_keys/sticky_keys_overlay.cc (right): https://codereview.chromium.org/142523003/diff/160001/ash/sticky_keys/sticky_keys_overlay.cc#newcode75 ash/sticky_keys/sticky_keys_overlay.cc:75: SetFontList(font_list().DeriveWithSizeDelta(4)); On 2014/01/24 15:53:41, Alexei Svitkine wrote: > On ...
6 years, 11 months ago (2014-01-27 07:03:49 UTC) #10
Alexei Svitkine (slow)
LGTM https://codereview.chromium.org/142523003/diff/160001/ash/sticky_keys/sticky_keys_overlay.cc File ash/sticky_keys/sticky_keys_overlay.cc (right): https://codereview.chromium.org/142523003/diff/160001/ash/sticky_keys/sticky_keys_overlay.cc#newcode75 ash/sticky_keys/sticky_keys_overlay.cc:75: SetFontList(font_list().DeriveWithSizeDelta(4)); On 2014/01/27 07:03:49, Yuki wrote: > On ...
6 years, 11 months ago (2014-01-27 16:00:38 UTC) #11
Yuki
Hi Tim, Could you take a look at a discussion at https://codereview.chromium.org/142523003/diff2/160001:480001/ash/sticky_keys/sticky_keys_overlay.cc#oldcode75 ? I'm going ...
6 years, 11 months ago (2014-01-27 16:32:07 UTC) #12
Tim Song
I got the 18px font size from the mock designs. The screenshots aren't working for ...
6 years, 11 months ago (2014-01-27 18:56:14 UTC) #13
Yuki
On 2014/01/27 18:56:14, Tim Song wrote: > I got the 18px font size from the ...
6 years, 11 months ago (2014-01-28 03:44:00 UTC) #14
Tim Song
Let me check with the designer if this is okay.
6 years, 10 months ago (2014-01-28 19:26:43 UTC) #15
Tim Song
Okay, I talked to a designer, and it looks like I will need to update ...
6 years, 10 months ago (2014-01-29 18:23:05 UTC) #16
Yuki
On 2014/01/29 18:23:05, Tim Song wrote: > Okay, I talked to a designer, and it ...
6 years, 10 months ago (2014-01-30 02:58:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yukishiino@chromium.org/142523003/480001
6 years, 10 months ago (2014-01-30 02:58:53 UTC) #18
Yuki
Add more owner reviewers. Could you guys review this CL? komatsu: ash/ime/ xiyuan: ui/app_list/ tony: ...
6 years, 10 months ago (2014-01-30 03:31:29 UTC) #19
Hiro Komatsu
On 2014/01/30 03:31:29, Yuki wrote: > Add more owner reviewers. > Could you guys review ...
6 years, 10 months ago (2014-01-30 03:35:55 UTC) #20
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=47144
6 years, 10 months ago (2014-01-30 03:40:46 UTC) #21
xiyuan
+mukai for the speech view label font size change. Mukai, the CL changes from absolute ...
6 years, 10 months ago (2014-01-30 03:49:27 UTC) #22
Jun Mukai
https://codereview.chromium.org/142523003/diff/480001/ui/app_list/views/speech_view.cc File ui/app_list/views/speech_view.cc (right): https://codereview.chromium.org/142523003/diff/480001/ui/app_list/views/speech_view.cc#newcode118 ui/app_list/views/speech_view.cc:118: ui::ResourceBundle* bundle = &ui::ResourceBundle::GetSharedInstance(); On 2014/01/30 03:49:27, xiyuan wrote: ...
6 years, 10 months ago (2014-01-30 04:02:37 UTC) #23
Jun Mukai
https://codereview.chromium.org/142523003/diff/480001/ui/app_list/views/speech_view.cc File ui/app_list/views/speech_view.cc (right): https://codereview.chromium.org/142523003/diff/480001/ui/app_list/views/speech_view.cc#newcode120 ui/app_list/views/speech_view.cc:120: base::string16(), bundle->GetFontList(ui::ResourceBundle::LargeFont)); On 2014/01/30 04:02:37, Jun Mukai wrote: > ...
6 years, 10 months ago (2014-01-30 04:10:10 UTC) #24
xiyuan
https://codereview.chromium.org/142523003/diff/480001/ui/app_list/views/speech_view.cc File ui/app_list/views/speech_view.cc (right): https://codereview.chromium.org/142523003/diff/480001/ui/app_list/views/speech_view.cc#newcode120 ui/app_list/views/speech_view.cc:120: base::string16(), bundle->GetFontList(ui::ResourceBundle::LargeFont)); On 2014/01/30 04:10:10, Jun Mukai wrote: > ...
6 years, 10 months ago (2014-01-30 05:18:35 UTC) #25
Yuki
https://codereview.chromium.org/142523003/diff/480001/ui/app_list/views/speech_view.cc File ui/app_list/views/speech_view.cc (right): https://codereview.chromium.org/142523003/diff/480001/ui/app_list/views/speech_view.cc#newcode118 ui/app_list/views/speech_view.cc:118: ui::ResourceBundle* bundle = &ui::ResourceBundle::GetSharedInstance(); On 2014/01/30 04:02:37, Jun Mukai ...
6 years, 10 months ago (2014-01-30 05:30:34 UTC) #26
Jun Mukai
https://codereview.chromium.org/142523003/diff/480001/ui/app_list/views/speech_view.cc File ui/app_list/views/speech_view.cc (right): https://codereview.chromium.org/142523003/diff/480001/ui/app_list/views/speech_view.cc#newcode118 ui/app_list/views/speech_view.cc:118: ui::ResourceBundle* bundle = &ui::ResourceBundle::GetSharedInstance(); On 2014/01/30 05:30:35, Yuki wrote: ...
6 years, 10 months ago (2014-01-30 06:00:55 UTC) #27
Yuki
https://codereview.chromium.org/142523003/diff/480001/ui/app_list/views/speech_view.cc File ui/app_list/views/speech_view.cc (right): https://codereview.chromium.org/142523003/diff/480001/ui/app_list/views/speech_view.cc#newcode118 ui/app_list/views/speech_view.cc:118: ui::ResourceBundle* bundle = &ui::ResourceBundle::GetSharedInstance(); On 2014/01/30 06:00:56, Jun Mukai ...
6 years, 10 months ago (2014-01-30 06:29:55 UTC) #28
Yuki
+sadrul for ui/views/
6 years, 10 months ago (2014-01-30 06:33:06 UTC) #29
sadrul
ui/views/ lgtm
6 years, 10 months ago (2014-01-30 06:34:21 UTC) #30
Jun Mukai
sorry for taking time. lgtm.
6 years, 10 months ago (2014-01-30 06:39:27 UTC) #31
xiyuan
app_list LGTM
6 years, 10 months ago (2014-01-30 07:08:21 UTC) #32
tony
ui/base/resource LGTM. As for the pointer vs reference issue, it would probably be nice to ...
6 years, 10 months ago (2014-01-30 18:44:45 UTC) #33
tfarina
For the ResourceBundle issue I have crbug.com/289640 filed. On Thu, Jan 30, 2014 at 4:44 ...
6 years, 10 months ago (2014-01-30 22:58:58 UTC) #34
tfarina
On Thu, Jan 30, 2014 at 4:44 PM, <tony@chromium.org> wrote: > ui/base/resource LGTM. > > ...
6 years, 10 months ago (2014-01-31 01:40:57 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yukishiino@chromium.org/142523003/590001
6 years, 10 months ago (2014-01-31 02:35:14 UTC) #36
commit-bot: I haz the power
Change committed as 248131
6 years, 10 months ago (2014-01-31 05:31:55 UTC) #37
commit-bot: I haz the power
6 years, 10 months ago (2014-01-31 05:32:04 UTC) #38
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698