| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/examples/vector_example.h" | 5 #include "ui/views/examples/vector_example.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/macros.h" |
| 9 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "build/build_config.h" |
| 11 #include "ui/gfx/paint_vector_icon.h" | 15 #include "ui/gfx/paint_vector_icon.h" |
| 12 #include "ui/gfx/vector_icons_public.h" | 16 #include "ui/gfx/vector_icons_public.h" |
| 13 #include "ui/views/border.h" | 17 #include "ui/views/border.h" |
| 14 #include "ui/views/controls/button/blue_button.h" | 18 #include "ui/views/controls/button/blue_button.h" |
| 15 #include "ui/views/controls/button/button.h" | 19 #include "ui/views/controls/button/button.h" |
| 16 #include "ui/views/controls/image_view.h" | 20 #include "ui/views/controls/image_view.h" |
| 17 #include "ui/views/controls/textfield/textfield.h" | 21 #include "ui/views/controls/textfield/textfield.h" |
| 18 #include "ui/views/controls/textfield/textfield_controller.h" | 22 #include "ui/views/controls/textfield/textfield_controller.h" |
| 19 #include "ui/views/layout/box_layout.h" | 23 #include "ui/views/layout/box_layout.h" |
| 20 #include "ui/views/layout/fill_layout.h" | 24 #include "ui/views/layout/fill_layout.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 159 |
| 156 VectorExample::~VectorExample() {} | 160 VectorExample::~VectorExample() {} |
| 157 | 161 |
| 158 void VectorExample::CreateExampleView(View* container) { | 162 void VectorExample::CreateExampleView(View* container) { |
| 159 container->SetLayoutManager(new FillLayout()); | 163 container->SetLayoutManager(new FillLayout()); |
| 160 container->AddChildView(new VectorIconGallery()); | 164 container->AddChildView(new VectorIconGallery()); |
| 161 } | 165 } |
| 162 | 166 |
| 163 } // namespace examples | 167 } // namespace examples |
| 164 } // namespace views | 168 } // namespace views |
| OLD | NEW |