Home | History | Annotate | Download | only in ime
      1 // Copyright 2014 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef ASH_IME_CANDIDATE_WINDOW_CONSTANTS_H_
      6 #define ASH_IME_CANDIDATE_WINDOW_CONSTANTS_H_
      7 
      8 namespace ash {
      9 namespace ime {
     10 
     11 // We'll use a bigger font size, so Chinese characters are more readable
     12 // in the candidate window.
     13 const int kFontSizeDelta = 2;
     14 
     15 // Currently the infolist window only supports Japanese font.
     16 #if defined(GOOGLE_CHROME_BUILD)
     17 const char kJapaneseFontName[] = "MotoyaG04Gothic";
     18 #else
     19 const char kJapaneseFontName[] = "IPAPGothic";
     20 #endif
     21 
     22 // The minimum width of candidate labels in the vertical candidate
     23 // window. We use this value to prevent the candidate window from being
     24 // too narrow when all candidates are short.
     25 const int kMinCandidateLabelWidth = 100;
     26 // The maximum width of candidate labels in the vertical candidate
     27 // window. We use this value to prevent the candidate window from being
     28 // too wide when one of candidates are long.
     29 const int kMaxCandidateLabelWidth = 500;
     30 // The minimum width of preedit area. We use this value to prevent the
     31 // candidate window from being too narrow when candidate lists are not shown.
     32 const int kMinPreeditAreaWidth = 134;
     33 
     34 // The width of the infolist indicator icon in the candidate window.
     35 const int kInfolistIndicatorIconWidth = 4;
     36 // The padding size of the infolist indicator icon in the candidate window.
     37 const int kInfolistIndicatorIconPadding = 2;
     38 
     39 }  // namespace ime
     40 }  // namespace ash
     41 
     42 #endif  // ASH_IME_CANDIDATE_WINDOW_CONSTANTS_H_
     43