OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/views/touchui/touch_editing_menu.h" | 5 #include "ui/views/touchui/touch_editing_menu.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "ui/base/l10n/l10n_util.h" | 8 #include "ui/base/l10n/l10n_util.h" |
9 #include "ui/base/resource/resource_bundle.h" | 9 #include "ui/base/resource/resource_bundle.h" |
10 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
11 #include "ui/gfx/font_list.h" | 11 #include "ui/gfx/font_list.h" |
12 #include "ui/gfx/insets.h" | 12 #include "ui/gfx/geometry/insets.h" |
13 #include "ui/gfx/text_utils.h" | 13 #include "ui/gfx/text_utils.h" |
14 #include "ui/strings/grit/ui_strings.h" | 14 #include "ui/strings/grit/ui_strings.h" |
15 #include "ui/views/bubble/bubble_border.h" | 15 #include "ui/views/bubble/bubble_border.h" |
16 #include "ui/views/bubble/bubble_frame_view.h" | 16 #include "ui/views/bubble/bubble_frame_view.h" |
17 #include "ui/views/controls/button/custom_button.h" | 17 #include "ui/views/controls/button/custom_button.h" |
18 #include "ui/views/controls/button/label_button.h" | 18 #include "ui/views/controls/button/label_button.h" |
19 #include "ui/views/layout/box_layout.h" | 19 #include "ui/views/layout/box_layout.h" |
20 #include "ui/views/widget/widget.h" | 20 #include "ui/views/widget/widget.h" |
21 | 21 |
22 namespace { | 22 namespace { |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 const gfx::FontList& font_list = | 148 const gfx::FontList& font_list = |
149 ui::ResourceBundle::GetSharedInstance().GetFontList( | 149 ui::ResourceBundle::GetSharedInstance().GetFontList( |
150 ui::ResourceBundle::SmallFont); | 150 ui::ResourceBundle::SmallFont); |
151 button->SetFontList(font_list); | 151 button->SetFontList(font_list); |
152 button->SetHorizontalAlignment(gfx::ALIGN_CENTER); | 152 button->SetHorizontalAlignment(gfx::ALIGN_CENTER); |
153 button->set_tag(tag); | 153 button->set_tag(tag); |
154 return button; | 154 return button; |
155 } | 155 } |
156 | 156 |
157 } // namespace views | 157 } // namespace views |
OLD | NEW |