OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/utf_string_conversions.h" | 5 #include "base/strings/utf_string_conversions.h" |
6 #include "ui/views/bubble/bubble_border.h" | 6 #include "ui/views/bubble/bubble_border.h" |
7 #include "ui/views/bubble/bubble_delegate.h" | 7 #include "ui/views/bubble/bubble_delegate.h" |
8 #include "ui/views/controls/label.h" | 8 #include "ui/views/controls/label.h" |
9 #include "ui/views/layout/fill_layout.h" | 9 #include "ui/views/layout/fill_layout.h" |
10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 namespace shell { | 13 namespace shell { |
14 | 14 |
15 struct BubbleConfig { | 15 struct BubbleConfig { |
(...skipping 22 matching lines...) Expand all Loading... |
38 BubbleConfig config; | 38 BubbleConfig config; |
39 config.label = ASCIIToUTF16("PointyBubble"); | 39 config.label = ASCIIToUTF16("PointyBubble"); |
40 config.anchor_view = anchor_view; | 40 config.anchor_view = anchor_view; |
41 config.arrow = views::BubbleBorder::TOP_LEFT; | 41 config.arrow = views::BubbleBorder::TOP_LEFT; |
42 ExampleBubbleDelegateView* bubble = new ExampleBubbleDelegateView(config); | 42 ExampleBubbleDelegateView* bubble = new ExampleBubbleDelegateView(config); |
43 views::BubbleDelegateView::CreateBubble(bubble)->Show(); | 43 views::BubbleDelegateView::CreateBubble(bubble)->Show(); |
44 } | 44 } |
45 | 45 |
46 } // namespace shell | 46 } // namespace shell |
47 } // namespace ash | 47 } // namespace ash |
OLD | NEW |