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 <vector> | 5 #include <vector> |
6 #include "chrome/browser/ui/browser.h" | 6 #include "chrome/browser/ui/browser.h" |
7 #include "chrome/browser/ui/panels/base_panel_browser_test.h" | 7 #include "chrome/browser/ui/panels/base_panel_browser_test.h" |
8 #include "chrome/browser/ui/panels/docked_panel_strip.h" | 8 #include "chrome/browser/ui/panels/docked_panel_strip.h" |
9 #include "chrome/browser/ui/panels/native_panel.h" | 9 #include "chrome/browser/ui/panels/native_panel.h" |
10 #include "chrome/browser/ui/panels/overflow_panel_strip.h" | 10 #include "chrome/browser/ui/panels/overflow_panel_strip.h" |
11 #include "chrome/browser/ui/panels/panel.h" | 11 #include "chrome/browser/ui/panels/panel.h" |
12 #include "chrome/browser/ui/panels/panel_manager.h" | 12 #include "chrome/browser/ui/panels/panel_manager.h" |
13 #include "chrome/browser/ui/panels/panel_strip.h" | 13 #include "chrome/browser/ui/panels/panel_strip.h" |
14 #include "chrome/browser/ui/panels/panel_overflow_indicator.h" | 14 #include "chrome/browser/ui/panels/panel_overflow_indicator.h" |
15 #include "chrome/browser/ui/panels/panel_settings_menu_model.h" | |
16 #include "chrome/browser/ui/panels/test_panel_mouse_watcher.h" | 15 #include "chrome/browser/ui/panels/test_panel_mouse_watcher.h" |
17 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
18 #include "chrome/test/base/ui_test_utils.h" | 17 #include "chrome/test/base/ui_test_utils.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
20 | 19 |
21 namespace { | 20 namespace { |
22 | 21 |
23 // We override the default value for testing purpose. | 22 // We override the default value for testing purpose. |
24 const int kMaxVisibleOverflowPanelsForTesting = 3; | 23 const int kMaxVisibleOverflowPanelsForTesting = 3; |
25 const int kMaxVisibleOverflowPanelsOnHoverForTesting = 6; | 24 const int kMaxVisibleOverflowPanelsOnHoverForTesting = 6; |
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1789 // End full screen mode, expansion occurs again. | 1788 // End full screen mode, expansion occurs again. |
1790 overflow_strip->OnFullScreenModeChanged(false); | 1789 overflow_strip->OnFullScreenModeChanged(false); |
1791 EXPECT_TRUE(panel_manager->mouse_watcher()->IsActive()); | 1790 EXPECT_TRUE(panel_manager->mouse_watcher()->IsActive()); |
1792 MoveMouse(in_overflow_area); | 1791 MoveMouse(in_overflow_area); |
1793 EXPECT_GT(overflow_strip->current_display_width(), iconified_width); | 1792 EXPECT_GT(overflow_strip->current_display_width(), iconified_width); |
1794 MoveMouse(beyond_overflow_area); | 1793 MoveMouse(beyond_overflow_area); |
1795 EXPECT_EQ(iconified_width, overflow_strip->current_display_width()); | 1794 EXPECT_EQ(iconified_width, overflow_strip->current_display_width()); |
1796 | 1795 |
1797 panel_manager->CloseAll(); | 1796 panel_manager->CloseAll(); |
1798 } | 1797 } |
OLD | NEW |