| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/frame_painter.h" | 5 #include "ash/wm/frame_painter.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.h" |
| 9 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
| 10 #include "ash/wm/property_util.h" | 10 #include "ash/wm/property_util.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "grit/ui_resources.h" | 12 #include "grit/ash_resources.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "ui/aura/root_window.h" | 14 #include "ui/aura/root_window.h" |
| 15 #include "ui/base/hit_test.h" | 15 #include "ui/base/hit_test.h" |
| 16 #include "ui/gfx/screen.h" | 16 #include "ui/gfx/screen.h" |
| 17 #include "ui/views/controls/button/image_button.h" | 17 #include "ui/views/controls/button/image_button.h" |
| 18 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
| 19 #include "ui/views/widget/widget_delegate.h" | 19 #include "ui/views/widget/widget_delegate.h" |
| 20 #include "ui/views/window/non_client_view.h" | 20 #include "ui/views/window/non_client_view.h" |
| 21 | 21 |
| 22 using views::Widget; | 22 using views::Widget; |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 EXPECT_EQ(HTRIGHT, | 222 EXPECT_EQ(HTRIGHT, |
| 223 p1.NonClientHitTest(frame, gfx::Point(screen.width() / 2, | 223 p1.NonClientHitTest(frame, gfx::Point(screen.width() / 2, |
| 224 screen.height() / 2))); | 224 screen.height() / 2))); |
| 225 // A hit into the middle lower area should generate right - not bottom&right. | 225 // A hit into the middle lower area should generate right - not bottom&right. |
| 226 EXPECT_EQ(HTRIGHT, | 226 EXPECT_EQ(HTRIGHT, |
| 227 p1.NonClientHitTest(frame, gfx::Point(screen.width() / 2, | 227 p1.NonClientHitTest(frame, gfx::Point(screen.width() / 2, |
| 228 screen.height() - 1))); | 228 screen.height() - 1))); |
| 229 } | 229 } |
| 230 | 230 |
| 231 } // namespace ash | 231 } // namespace ash |
| OLD | NEW |