Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: ash/ime/infolist_window.cc

Issue 413433002: Refactor BubbleDelegateView::use_focuseless() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit + rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/ime/candidate_window_view.cc ('k') | ash/ime/mode_indicator_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/ime/candidate_window_view.cc ('k') | ash/ime/mode_indicator_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698