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

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

Issue 323943002: Specifies use_focusless flag to InfolistWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | 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);
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698