chrome/browser/chromeos/input_method/candidate_window_view.cc
// Creates the candidate label, and returns it (never returns NULL).
// The label text is not set in this function.
Creates the candidate label, and returns it (never returns NULL).
The label text is not set in this function.
Creates the candidate label and returns it ( never returns NULL ) . The label text is not set in this function .
views::Label* CreateCandidateLabel(
    InputMethodLookupTable::Orientation orientation) {
  views::Label* candidate_label = NULL;
  if (orientation == InputMethodLookupTable::kVertical) {
    candidate_label = new VerticalCandidateLabel;
  } else {
    candidate_label = new views::Label;
  }
  candidate_label->SetFont(
      candidate_label->font().DeriveFont(kFontSizeDelta));
  candidate_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
  return candidate_label;
}
views :: Label * CreateCandidateLabel ( InputMethodLookupTable :: Orientation orientation ) { views :: Label * candidate_label = NULL ; if ( orientation == InputMethodLookupTable :: kVertical ) { candidate_label = new VerticalCandidateLabel ; } else { candidate_label = new views :: Label ; } candidate_label -> SetFont ( candidate_label -> font ( ) . DeriveFont ( kFontSizeDelta ) ) ; candidate_label -> SetHorizontalAlignment ( gfx :: ALIGN_LEFT ) ; return candidate_label ; }
Creates the candidate label, and returns it (never returns NULL).
Creates the candidate label and returns it ( never returns NULL ) .
// Create the candidate label. The label will be added to |this| as a // child view, hence it's deleted when |this| is deleted. // Change the font size.