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); |
| 176 set_accept_events(false); |
175 set_margins(gfx::Insets()); | 177 set_margins(gfx::Insets()); |
176 | 178 |
177 set_background( | 179 set_background( |
178 views::Background::CreateSolidBackground(GetNativeTheme()->GetSystemColor( | 180 views::Background::CreateSolidBackground(GetNativeTheme()->GetSystemColor( |
179 ui::NativeTheme::kColorId_WindowBackground))); | 181 ui::NativeTheme::kColorId_WindowBackground))); |
180 SetBorder(views::Border::CreateSolidBorder( | 182 SetBorder(views::Border::CreateSolidBorder( |
181 1, | 183 1, |
182 GetNativeTheme()->GetSystemColor( | 184 GetNativeTheme()->GetSystemColor( |
183 ui::NativeTheme::kColorId_MenuBorderColor))); | 185 ui::NativeTheme::kColorId_MenuBorderColor))); |
184 | 186 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 show_hide_timer_.Stop(); | 271 show_hide_timer_.Stop(); |
270 GetWidget()->Close(); | 272 GetWidget()->Close(); |
271 } | 273 } |
272 | 274 |
273 void InfolistWindow::WindowClosing() { | 275 void InfolistWindow::WindowClosing() { |
274 show_hide_timer_.Stop(); | 276 show_hide_timer_.Stop(); |
275 } | 277 } |
276 | 278 |
277 } // namespace ime | 279 } // namespace ime |
278 } // namespace ash | 280 } // namespace ash |
OLD | NEW |