| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/frame/default_header_painter.h" | 5 #include "ash/frame/default_header_painter.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" | 9 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| 11 #include "ash/test/ash_test_base.h" | 11 #include "ash/test/ash_test_base.h" |
| 12 #include "ash/wm/window_state.h" | 12 #include "ash/wm/common/window_state.h" |
| 13 #include "ui/gfx/font_list.h" | 13 #include "ui/gfx/font_list.h" |
| 14 #include "ui/views/test/test_views.h" | 14 #include "ui/views/test/test_views.h" |
| 15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
| 16 #include "ui/views/window/non_client_view.h" | 16 #include "ui/views/window/non_client_view.h" |
| 17 | 17 |
| 18 using ash::HeaderPainter; | 18 using ash::HeaderPainter; |
| 19 using views::NonClientFrameView; | 19 using views::NonClientFrameView; |
| 20 using views::Widget; | 20 using views::Widget; |
| 21 | 21 |
| 22 namespace ash { | 22 namespace ash { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // Check not so light or dark colors. | 89 // Check not so light or dark colors. |
| 90 painter.SetFrameColors(SkColorSetRGB(70, 70, 70), | 90 painter.SetFrameColors(SkColorSetRGB(70, 70, 70), |
| 91 SkColorSetRGB(200, 200, 200)); | 91 SkColorSetRGB(200, 200, 200)); |
| 92 painter.mode_ = HeaderPainter::MODE_ACTIVE; | 92 painter.mode_ = HeaderPainter::MODE_ACTIVE; |
| 93 EXPECT_TRUE(painter.ShouldUseLightImages()); | 93 EXPECT_TRUE(painter.ShouldUseLightImages()); |
| 94 painter.mode_ = HeaderPainter::MODE_INACTIVE; | 94 painter.mode_ = HeaderPainter::MODE_INACTIVE; |
| 95 EXPECT_FALSE(painter.ShouldUseLightImages()); | 95 EXPECT_FALSE(painter.ShouldUseLightImages()); |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace ash | 98 } // namespace ash |
| OLD | NEW |