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/mode_indicator_view.h" | 5 #include "ui/chromeos/ime/mode_indicator_view.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/display/display.h" | 9 #include "ui/display/display.h" |
10 #include "ui/display/screen.h" | 10 #include "ui/display/screen.h" |
11 #include "ui/views/bubble/bubble_delegate.h" | 11 #include "ui/views/bubble/bubble_dialog_delegate.h" |
msw
2016/04/26 18:07:30
nit: not needed (in header).
Evan Stade
2016/04/26 21:23:01
Done.
| |
12 #include "ui/views/bubble/bubble_frame_view.h" | 12 #include "ui/views/bubble/bubble_frame_view.h" |
13 #include "ui/views/controls/label.h" | 13 #include "ui/views/controls/label.h" |
14 #include "ui/views/layout/fill_layout.h" | 14 #include "ui/views/layout/fill_layout.h" |
15 #include "ui/wm/core/window_animations.h" | 15 #include "ui/wm/core/window_animations.h" |
16 | 16 |
17 namespace ui { | 17 namespace ui { |
18 namespace ime { | 18 namespace ime { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 views::BubbleFrameView* frame = new ModeIndicatorFrameView(margins()); | 97 views::BubbleFrameView* frame = new ModeIndicatorFrameView(margins()); |
98 // arrow adjustment in BubbleDialogDelegateView is unnecessary because arrow | 98 // arrow adjustment in BubbleDialogDelegateView is unnecessary because arrow |
99 // of this bubble is always center. | 99 // of this bubble is always center. |
100 frame->SetBubbleBorder(std::unique_ptr<views::BubbleBorder>( | 100 frame->SetBubbleBorder(std::unique_ptr<views::BubbleBorder>( |
101 new views::BubbleBorder(arrow(), shadow(), color()))); | 101 new views::BubbleBorder(arrow(), shadow(), color()))); |
102 return frame; | 102 return frame; |
103 } | 103 } |
104 | 104 |
105 } // namespace ime | 105 } // namespace ime |
106 } // namespace ui | 106 } // namespace ui |
OLD | NEW |