OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/ime/infolist_window.h" | 5 #include "ash/ime/infolist_window.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ime/candidate_window_constants.h" | 10 #include "ash/ime/candidate_window_constants.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 /////////////////////////////////////////////////////////////////////////////// | 166 /////////////////////////////////////////////////////////////////////////////// |
167 // InfolistWindow | 167 // InfolistWindow |
168 | 168 |
169 InfolistWindow::InfolistWindow(views::View* candidate_window, | 169 InfolistWindow::InfolistWindow(views::View* candidate_window, |
170 const std::vector<ui::InfolistEntry>& entries) | 170 const std::vector<ui::InfolistEntry>& entries) |
171 : views::BubbleDelegateView(candidate_window, views::BubbleBorder::NONE), | 171 : views::BubbleDelegateView(candidate_window, views::BubbleBorder::NONE), |
172 title_font_list_(gfx::Font(kJapaneseFontName, kFontSizeDelta + 15)), | 172 title_font_list_(gfx::Font(kJapaneseFontName, kFontSizeDelta + 15)), |
173 description_font_list_(gfx::Font(kJapaneseFontName, | 173 description_font_list_(gfx::Font(kJapaneseFontName, |
174 kFontSizeDelta + 11)) { | 174 kFontSizeDelta + 11)) { |
175 set_use_focusless(true); | 175 set_can_activate(false); |
176 set_accept_events(false); | 176 set_accept_events(false); |
177 set_margins(gfx::Insets()); | 177 set_margins(gfx::Insets()); |
178 | 178 |
179 set_background( | 179 set_background( |
180 views::Background::CreateSolidBackground(GetNativeTheme()->GetSystemColor( | 180 views::Background::CreateSolidBackground(GetNativeTheme()->GetSystemColor( |
181 ui::NativeTheme::kColorId_WindowBackground))); | 181 ui::NativeTheme::kColorId_WindowBackground))); |
182 SetBorder(views::Border::CreateSolidBorder( | 182 SetBorder(views::Border::CreateSolidBorder( |
183 1, | 183 1, |
184 GetNativeTheme()->GetSystemColor( | 184 GetNativeTheme()->GetSystemColor( |
185 ui::NativeTheme::kColorId_MenuBorderColor))); | 185 ui::NativeTheme::kColorId_MenuBorderColor))); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 show_hide_timer_.Stop(); | 271 show_hide_timer_.Stop(); |
272 GetWidget()->Close(); | 272 GetWidget()->Close(); |
273 } | 273 } |
274 | 274 |
275 void InfolistWindow::WindowClosing() { | 275 void InfolistWindow::WindowClosing() { |
276 show_hide_timer_.Stop(); | 276 show_hide_timer_.Stop(); |
277 } | 277 } |
278 | 278 |
279 } // namespace ime | 279 } // namespace ime |
280 } // namespace ash | 280 } // namespace ash |
OLD | NEW |