Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Side by Side Diff: ui/views/examples/dialog_example.cc

Issue 2904443006: Views/Harmony Remove references to ui/views/layout/layout_constants.h (Closed)
Patch Set: Remove includes of layout_constants.h from ui/views Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 #endif 325 #endif
327 show_->SetEnabled(enable); 326 show_->SetEnabled(enable);
328 if (!enable && GetModalType() == ui::MODAL_TYPE_CHILD) 327 if (!enable && GetModalType() == ui::MODAL_TYPE_CHILD)
329 PrintStatus("MODAL_TYPE_CHILD can't be used with non-bubbles."); 328 PrintStatus("MODAL_TYPE_CHILD can't be used with non-bubbles.");
330 if (!enable && GetModalType() == ui::MODAL_TYPE_SYSTEM) 329 if (!enable && GetModalType() == ui::MODAL_TYPE_SYSTEM)
331 PrintStatus("MODAL_TYPE_SYSTEM isn't supported on Mac."); 330 PrintStatus("MODAL_TYPE_SYSTEM isn't supported on Mac.");
332 } 331 }
333 332
334 } // namespace examples 333 } // namespace examples
335 } // namespace views 334 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698