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/candidate_window_view.h" | 5 #include "ui/chromeos/ime/candidate_window_view.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "ash/ime/candidate_view.h" | |
10 #include "ash/ime/candidate_window_constants.h" | |
11 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "ui/chromeos/ime/candidate_view.h" |
| 11 #include "ui/chromeos/ime/candidate_window_constants.h" |
12 #include "ui/gfx/color_utils.h" | 12 #include "ui/gfx/color_utils.h" |
13 #include "ui/gfx/screen.h" | 13 #include "ui/gfx/screen.h" |
14 #include "ui/native_theme/native_theme.h" | 14 #include "ui/native_theme/native_theme.h" |
15 #include "ui/views/background.h" | 15 #include "ui/views/background.h" |
16 #include "ui/views/border.h" | 16 #include "ui/views/border.h" |
17 #include "ui/views/bubble/bubble_frame_view.h" | 17 #include "ui/views/bubble/bubble_frame_view.h" |
18 #include "ui/views/controls/label.h" | 18 #include "ui/views/controls/label.h" |
19 #include "ui/views/layout/box_layout.h" | 19 #include "ui/views/layout/box_layout.h" |
20 #include "ui/views/layout/fill_layout.h" | 20 #include "ui/views/layout/fill_layout.h" |
21 #include "ui/wm/core/window_animations.h" | 21 #include "ui/wm/core/window_animations.h" |
22 | 22 |
23 namespace ash { | 23 namespace ui { |
24 namespace ime { | 24 namespace ime { |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 class CandidateWindowBorder : public views::BubbleBorder { | 28 class CandidateWindowBorder : public views::BubbleBorder { |
29 public: | 29 public: |
30 explicit CandidateWindowBorder(gfx::NativeView parent) | 30 explicit CandidateWindowBorder(gfx::NativeView parent) |
31 : views::BubbleBorder(views::BubbleBorder::TOP_CENTER, | 31 : views::BubbleBorder(views::BubbleBorder::TOP_CENTER, |
32 views::BubbleBorder::NO_SHADOW, | 32 views::BubbleBorder::NO_SHADOW, |
33 SK_ColorTRANSPARENT), | 33 SK_ColorTRANSPARENT), |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 const ui::Event& event) { | 396 const ui::Event& event) { |
397 for (size_t i = 0; i < candidate_views_.size(); ++i) { | 397 for (size_t i = 0; i < candidate_views_.size(); ++i) { |
398 if (sender == candidate_views_[i]) { | 398 if (sender == candidate_views_[i]) { |
399 FOR_EACH_OBSERVER(Observer, observers_, OnCandidateCommitted(i)); | 399 FOR_EACH_OBSERVER(Observer, observers_, OnCandidateCommitted(i)); |
400 return; | 400 return; |
401 } | 401 } |
402 } | 402 } |
403 } | 403 } |
404 | 404 |
405 } // namespace ime | 405 } // namespace ime |
406 } // namespace ash | 406 } // namespace ui |
OLD | NEW |