| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/dialog_example.h" | 5 #include "ui/views/examples/dialog_example.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "ui/views/bubble/bubble_dialog_delegate.h" | 9 #include "ui/views/bubble/bubble_dialog_delegate.h" |
| 10 #include "ui/views/controls/button/checkbox.h" | 10 #include "ui/views/controls/button/checkbox.h" |
| 11 #include "ui/views/controls/button/label_button.h" | 11 #include "ui/views/controls/button/label_button.h" |
| 12 #include "ui/views/controls/button/md_text_button.h" | 12 #include "ui/views/controls/button/md_text_button.h" |
| 13 #include "ui/views/controls/combobox/combobox.h" | 13 #include "ui/views/controls/combobox/combobox.h" |
| 14 #include "ui/views/controls/label.h" | 14 #include "ui/views/controls/label.h" |
| 15 #include "ui/views/controls/textfield/textfield.h" | 15 #include "ui/views/controls/textfield/textfield.h" |
| 16 #include "ui/views/layout/fill_layout.h" | 16 #include "ui/views/layout/fill_layout.h" |
| 17 #include "ui/views/layout/grid_layout.h" | 17 #include "ui/views/layout/grid_layout.h" |
| 18 #include "ui/views/layout/layout_constants.h" | |
| 19 #include "ui/views/layout/layout_provider.h" | 18 #include "ui/views/layout/layout_provider.h" |
| 20 #include "ui/views/widget/widget.h" | 19 #include "ui/views/widget/widget.h" |
| 21 #include "ui/views/window/dialog_client_view.h" | 20 #include "ui/views/window/dialog_client_view.h" |
| 22 | 21 |
| 23 using base::ASCIIToUTF16; | 22 using base::ASCIIToUTF16; |
| 24 | 23 |
| 25 namespace views { | 24 namespace views { |
| 26 namespace examples { | 25 namespace examples { |
| 27 namespace { | 26 namespace { |
| 28 | 27 |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 #endif | 326 #endif |
| 328 show_->SetEnabled(enable); | 327 show_->SetEnabled(enable); |
| 329 if (!enable && GetModalType() == ui::MODAL_TYPE_CHILD) | 328 if (!enable && GetModalType() == ui::MODAL_TYPE_CHILD) |
| 330 PrintStatus("MODAL_TYPE_CHILD can't be used with non-bubbles."); | 329 PrintStatus("MODAL_TYPE_CHILD can't be used with non-bubbles."); |
| 331 if (!enable && GetModalType() == ui::MODAL_TYPE_SYSTEM) | 330 if (!enable && GetModalType() == ui::MODAL_TYPE_SYSTEM) |
| 332 PrintStatus("MODAL_TYPE_SYSTEM isn't supported on Mac."); | 331 PrintStatus("MODAL_TYPE_SYSTEM isn't supported on Mac."); |
| 333 } | 332 } |
| 334 | 333 |
| 335 } // namespace examples | 334 } // namespace examples |
| 336 } // namespace views | 335 } // namespace views |
| OLD | NEW |