| 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 "ui/chromeos/ime/candidate_window_view.h" | 5 #include "ui/chromeos/ime/candidate_window_view.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 : selected_candidate_index_in_page_(-1), | 152 : selected_candidate_index_in_page_(-1), |
| 153 should_show_at_composition_head_(false), | 153 should_show_at_composition_head_(false), |
| 154 should_show_upper_side_(false), | 154 should_show_upper_side_(false), |
| 155 was_candidate_window_open_(false) { | 155 was_candidate_window_open_(false) { |
| 156 set_can_activate(false); | 156 set_can_activate(false); |
| 157 set_parent_window(parent); | 157 set_parent_window(parent); |
| 158 set_margins(gfx::Insets()); | 158 set_margins(gfx::Insets()); |
| 159 | 159 |
| 160 SetBorder(views::Border::CreateSolidBorder( | 160 SetBorder(views::Border::CreateSolidBorder( |
| 161 1, | 161 1, |
| 162 GetNativeTheme()->theme->GetSystemColor( | 162 GetNativeTheme()->GetSystemColor( |
| 163 ui::NativeTheme::kColorId_MenuBorderColor))); | 163 ui::NativeTheme::kColorId_MenuBorderColor))); |
| 164 | 164 |
| 165 SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0)); | 165 SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0)); |
| 166 auxiliary_text_ = new InformationTextArea(gfx::ALIGN_RIGHT, 0); | 166 auxiliary_text_ = new InformationTextArea(gfx::ALIGN_RIGHT, 0); |
| 167 preedit_ = new InformationTextArea(gfx::ALIGN_LEFT, kMinPreeditAreaWidth); | 167 preedit_ = new InformationTextArea(gfx::ALIGN_LEFT, kMinPreeditAreaWidth); |
| 168 candidate_area_ = new views::View; | 168 candidate_area_ = new views::View; |
| 169 auxiliary_text_->SetVisible(false); | 169 auxiliary_text_->SetVisible(false); |
| 170 preedit_->SetVisible(false); | 170 preedit_->SetVisible(false); |
| 171 candidate_area_->SetVisible(false); | 171 candidate_area_->SetVisible(false); |
| 172 preedit_->SetBorderFromPosition(InformationTextArea::BOTTOM); | 172 preedit_->SetBorderFromPosition(InformationTextArea::BOTTOM); |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 for (size_t i = 0; i < candidate_views_.size(); ++i) { | 410 for (size_t i = 0; i < candidate_views_.size(); ++i) { |
| 411 if (sender == candidate_views_[i]) { | 411 if (sender == candidate_views_[i]) { |
| 412 FOR_EACH_OBSERVER(Observer, observers_, OnCandidateCommitted(i)); | 412 FOR_EACH_OBSERVER(Observer, observers_, OnCandidateCommitted(i)); |
| 413 return; | 413 return; |
| 414 } | 414 } |
| 415 } | 415 } |
| 416 } | 416 } |
| 417 | 417 |
| 418 } // namespace ime | 418 } // namespace ime |
| 419 } // namespace ui | 419 } // namespace ui |
| OLD | NEW |