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

Unified Diff: chrome/browser/chromeos/input_method/candidate_window.cc

Issue 8572002: Show the candidate window always on top. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/candidate_window.cc
diff --git a/chrome/browser/chromeos/input_method/candidate_window.cc b/chrome/browser/chromeos/input_method/candidate_window.cc
index 4c35f53995e208242b75fe9a4fe9c493576a7846..dd451dd7caf8804b507395c904997f4640db9104 100644
--- a/chrome/browser/chromeos/input_method/candidate_window.cc
+++ b/chrome/browser/chromeos/input_method/candidate_window.cc
@@ -1673,8 +1673,10 @@ void CandidateWindowController::Impl::CreateView() {
// Create a non-decorated frame.
frame_.reset(new views::Widget);
// The size is initially zero.
- frame_->Init(
- views::Widget::InitParams(views::Widget::InitParams::TYPE_POPUP));
+ views::Widget::InitParams params(views::Widget::InitParams::TYPE_POPUP);
+ // Show the candidate window always on top
+ params.keep_on_top = true;
+ frame_->Init(params);
// Create the candidate window.
candidate_window_ = new CandidateWindowView(frame_.get());
@@ -1686,8 +1688,7 @@ void CandidateWindowController::Impl::CreateView() {
// Create the infolist window.
infolist_frame_.reset(new views::Widget);
- infolist_frame_->Init(
- views::Widget::InitParams(views::Widget::InitParams::TYPE_POPUP));
+ infolist_frame_->Init(params);
infolist_window_ = new InfolistWindowView(
infolist_frame_.get(), frame_.get());
infolist_window_->Init();
« 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