OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <stddef.h> |
| 6 |
| 7 #include "base/macros.h" |
5 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
6 #include "ui/base/hit_test.h" | 9 #include "ui/base/hit_test.h" |
7 #include "ui/views/bubble/bubble_border.h" | 10 #include "ui/views/bubble/bubble_border.h" |
8 #include "ui/views/bubble/bubble_frame_view.h" | 11 #include "ui/views/bubble/bubble_frame_view.h" |
9 #include "ui/views/controls/button/checkbox.h" | 12 #include "ui/views/controls/button/checkbox.h" |
10 #include "ui/views/controls/button/label_button.h" | 13 #include "ui/views/controls/button/label_button.h" |
11 #include "ui/views/test/views_test_base.h" | 14 #include "ui/views/test/views_test_base.h" |
12 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
13 #include "ui/views/window/dialog_client_view.h" | 16 #include "ui/views/window/dialog_client_view.h" |
14 #include "ui/views/window/dialog_delegate.h" | 17 #include "ui/views/window/dialog_delegate.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 // Giving the default test dialog a title will yield the same bounds. | 257 // Giving the default test dialog a title will yield the same bounds. |
255 dialog()->set_title(base::ASCIIToUTF16("Title")); | 258 dialog()->set_title(base::ASCIIToUTF16("Title")); |
256 dialog()->GetWidget()->UpdateWindowTitle(); | 259 dialog()->GetWidget()->UpdateWindowTitle(); |
257 EXPECT_EQ(frame1->GetPreferredSize().height(), | 260 EXPECT_EQ(frame1->GetPreferredSize().height(), |
258 frame2->GetPreferredSize().height()); | 261 frame2->GetPreferredSize().height()); |
259 | 262 |
260 dialog2->TearDown(); | 263 dialog2->TearDown(); |
261 } | 264 } |
262 | 265 |
263 } // namespace views | 266 } // namespace views |
OLD | NEW |