chrome/browser/chromeos/input_method/candidate_window_view.cc
// Creates the shortcut label, and returns it (never returns NULL).
// The label text is not set in this function.
Creates the shortcut label, and returns it (never returns NULL).
The label text is not set in this function.
Creates the shortcut label and returns it ( never returns NULL ) . The label text is not set in this function .
views::Label* CreateShortcutLabel(
    InputMethodLookupTable::Orientation orientation) {
  views::Label* shortcut_label = new views::Label;
  if (orientation == InputMethodLookupTable::kVertical) {
    shortcut_label->SetFont(
        shortcut_label->font().DeriveFont(kFontSizeDelta, gfx::Font::BOLD));
  } else {
    shortcut_label->SetFont(
        shortcut_label->font().DeriveFont(kFontSizeDelta));
  }
  shortcut_label->SetEnabledColor(kShortcutColor);
  shortcut_label->SetDisabledColor(kDisabledShortcutColor);
  return shortcut_label;
}
views :: Label * CreateShortcutLabel ( InputMethodLookupTable :: Orientation orientation ) { views :: Label * shortcut_label = new views :: Label ; if ( orientation == InputMethodLookupTable :: kVertical ) { shortcut_label -> SetFont ( shortcut_label -> font ( ) . DeriveFont ( kFontSizeDelta , gfx :: Font :: BOLD ) ) ; } else { shortcut_label -> SetFont ( shortcut_label -> font ( ) . DeriveFont ( kFontSizeDelta ) ) ; } shortcut_label -> SetEnabledColor ( kShortcutColor ) ; shortcut_label -> SetDisabledColor ( kDisabledShortcutColor ) ; return shortcut_label ; }
Creates the shortcut label, and returns it (never returns NULL).
Creates the shortcut label and returns it ( never returns NULL ) .
// Create the shortcut label. The label will be owned by // |wrapped_shortcut_label|, hence it's deleted when // |wrapped_shortcut_label| is deleted. // TODO(satorux): Maybe we need to use language specific fonts for // candidate_label, like Chinese font for Chinese input method?