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 "ash/wm/workspace/frame_caption_button_container_view.h" | 5 #include "ash/wm/caption_buttons/frame_caption_button_container_view.h" |
6 | 6 |
7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "grit/ash_resources.h" | 10 #include "grit/ash_resources.h" |
11 #include "ui/aura/root_window.h" | 11 #include "ui/aura/root_window.h" |
12 #include "ui/base/resource/resource_bundle.h" | 12 #include "ui/base/resource/resource_bundle.h" |
13 #include "ui/views/border.h" | 13 #include "ui/views/border.h" |
14 #include "ui/views/controls/button/custom_button.h" | 14 #include "ui/views/controls/button/custom_button.h" |
15 #include "ui/views/controls/button/image_button.h" | 15 #include "ui/views/controls/button/image_button.h" |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 container.Layout(); | 316 container.Layout(); |
317 FrameCaptionButtonContainerView::TestApi t(&container); | 317 FrameCaptionButtonContainerView::TestApi t(&container); |
318 EXPECT_TRUE(t.minimize_button()->visible()); | 318 EXPECT_TRUE(t.minimize_button()->visible()); |
319 EXPECT_TRUE(t.size_button()->visible()); | 319 EXPECT_TRUE(t.size_button()->visible()); |
320 EXPECT_TRUE(t.close_button()->visible()); | 320 EXPECT_TRUE(t.close_button()->visible()); |
321 EXPECT_TRUE(CheckButtonsAtEdges( | 321 EXPECT_TRUE(CheckButtonsAtEdges( |
322 &container, *t.minimize_button(), *t.close_button())); | 322 &container, *t.minimize_button(), *t.close_button())); |
323 } | 323 } |
324 | 324 |
325 } // namespace ash | 325 } // namespace ash |
OLD | NEW |