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/shelf/shelf_layout_manager.h" | 5 #include "ash/shelf/shelf_layout_manager.h" |
6 | 6 |
7 #include "ash/accelerators/accelerator_controller.h" | 7 #include "ash/accelerators/accelerator_controller.h" |
8 #include "ash/accelerators/accelerator_table.h" | 8 #include "ash/accelerators/accelerator_table.h" |
9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
10 #include "ash/display/display_manager.h" | 10 #include "ash/display/display_manager.h" |
11 #include "ash/focus_cycler.h" | 11 #include "ash/focus_cycler.h" |
12 #include "ash/root_window_controller.h" | 12 #include "ash/root_window_controller.h" |
13 #include "ash/session/session_state_delegate.h" | 13 #include "ash/session/session_state_delegate.h" |
14 #include "ash/shelf/shelf.h" | 14 #include "ash/shelf/shelf.h" |
15 #include "ash/shelf/shelf_layout_manager_observer.h" | 15 #include "ash/shelf/shelf_layout_manager_observer.h" |
16 #include "ash/shelf/shelf_view.h" | 16 #include "ash/shelf/shelf_view.h" |
17 #include "ash/shelf/shelf_widget.h" | 17 #include "ash/shelf/shelf_widget.h" |
18 #include "ash/shell.h" | 18 #include "ash/shell.h" |
19 #include "ash/shell_window_ids.h" | 19 #include "ash/shell_window_ids.h" |
20 #include "ash/system/status_area_widget.h" | 20 #include "ash/system/status_area_widget.h" |
21 #include "ash/system/tray/system_tray.h" | 21 #include "ash/system/tray/system_tray.h" |
22 #include "ash/system/tray/system_tray_item.h" | 22 #include "ash/system/tray/system_tray_item.h" |
23 #include "ash/test/ash_test_base.h" | 23 #include "ash/test/ash_test_base.h" |
24 #include "ash/test/shelf_test_api.h" | 24 #include "ash/test/shelf_test_api.h" |
25 #include "ash/wm/maximize_mode/maximize_mode_controller.h" | |
25 #include "ash/wm/window_state.h" | 26 #include "ash/wm/window_state.h" |
26 #include "ash/wm/window_util.h" | 27 #include "ash/wm/window_util.h" |
27 #include "base/command_line.h" | 28 #include "base/command_line.h" |
28 #include "base/strings/utf_string_conversions.h" | 29 #include "base/strings/utf_string_conversions.h" |
29 #include "ui/aura/client/aura_constants.h" | 30 #include "ui/aura/client/aura_constants.h" |
30 #include "ui/aura/test/event_generator.h" | 31 #include "ui/aura/test/event_generator.h" |
31 #include "ui/aura/window.h" | 32 #include "ui/aura/window.h" |
32 #include "ui/aura/window_event_dispatcher.h" | 33 #include "ui/aura/window_event_dispatcher.h" |
33 #include "ui/compositor/layer.h" | 34 #include "ui/compositor/layer.h" |
34 #include "ui/compositor/layer_animator.h" | 35 #include "ui/compositor/layer_animator.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
155 return; | 156 return; |
156 | 157 |
157 if (type == ui::ET_GESTURE_SCROLL_UPDATE) | 158 if (type == ui::ET_GESTURE_SCROLL_UPDATE) |
158 scroll_.Add(delta); | 159 scroll_.Add(delta); |
159 | 160 |
160 gfx::Rect shelf_bounds = GetShelfWidget()->GetWindowBoundsInScreen(); | 161 gfx::Rect shelf_bounds = GetShelfWidget()->GetWindowBoundsInScreen(); |
161 if (GetShelfLayoutManager()->IsHorizontalAlignment()) { | 162 if (GetShelfLayoutManager()->IsHorizontalAlignment()) { |
162 EXPECT_EQ(not_visible_bounds_.bottom(), shelf_bounds.bottom()); | 163 EXPECT_EQ(not_visible_bounds_.bottom(), shelf_bounds.bottom()); |
163 EXPECT_EQ(visible_bounds_.bottom(), shelf_bounds.bottom()); | 164 EXPECT_EQ(visible_bounds_.bottom(), shelf_bounds.bottom()); |
164 } else if (SHELF_ALIGNMENT_RIGHT == | 165 } else if (SHELF_ALIGNMENT_RIGHT == |
165 GetShelfLayoutManager()->GetAlignment()){ | 166 GetShelfLayoutManager()->GetAlignment()) { |
166 EXPECT_EQ(not_visible_bounds_.right(), shelf_bounds.right()); | 167 EXPECT_EQ(not_visible_bounds_.right(), shelf_bounds.right()); |
167 EXPECT_EQ(visible_bounds_.right(), shelf_bounds.right()); | 168 EXPECT_EQ(visible_bounds_.right(), shelf_bounds.right()); |
168 } else if (SHELF_ALIGNMENT_LEFT == | 169 } else if (SHELF_ALIGNMENT_LEFT == |
169 GetShelfLayoutManager()->GetAlignment()) { | 170 GetShelfLayoutManager()->GetAlignment()) { |
170 EXPECT_EQ(not_visible_bounds_.x(), shelf_bounds.x()); | 171 EXPECT_EQ(not_visible_bounds_.x(), shelf_bounds.x()); |
171 EXPECT_EQ(visible_bounds_.x(), shelf_bounds.x()); | 172 EXPECT_EQ(visible_bounds_.x(), shelf_bounds.x()); |
172 } | 173 } |
173 | 174 |
174 // if the shelf is being dimmed test dimmer bounds as well. | 175 // if the shelf is being dimmed test dimmer bounds as well. |
175 if (GetShelfWidget()->GetDimsShelf()) | 176 if (GetShelfWidget()->GetDimsShelf()) |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
871 views::Widget::InitParams params(views::Widget::InitParams::TYPE_WINDOW); | 872 views::Widget::InitParams params(views::Widget::InitParams::TYPE_WINDOW); |
872 params.bounds = gfx::Rect(0, 0, 200, 200); | 873 params.bounds = gfx::Rect(0, 0, 200, 200); |
873 params.context = CurrentContext(); | 874 params.context = CurrentContext(); |
874 // Widget is now owned by the parent window. | 875 // Widget is now owned by the parent window. |
875 widget->Init(params); | 876 widget->Init(params); |
876 widget->Maximize(); | 877 widget->Maximize(); |
877 widget->Show(); | 878 widget->Show(); |
878 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state()); | 879 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state()); |
879 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); | 880 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); |
880 | 881 |
881 shelf->OnMaximizeModeStarted(); | 882 Shell::GetInstance()->maximize_mode_controller()-> |
883 EnableMaximizeModeWindowManager(true); | |
882 // LayoutShelf() forces the animation to completion. | 884 // LayoutShelf() forces the animation to completion. |
883 shelf->LayoutShelf(); | 885 shelf->LayoutShelf(); |
884 | 886 |
885 // Drag mouse to bottom of screen. In contrast to normal operation the shelf | 887 // Drag mouse to bottom of screen. In contrast to normal operation the shelf |
886 // should remain visible. | 888 // should remain visible. |
887 generator.MoveMouseTo(0, 0); | 889 generator.MoveMouseTo(0, 0); |
888 generator.PressLeftButton(); | 890 generator.PressLeftButton(); |
889 generator.MoveMouseTo(0, root->bounds().bottom() - 1); | 891 generator.MoveMouseTo(0, root->bounds().bottom() - 1); |
890 UpdateAutoHideStateNow(); | 892 UpdateAutoHideStateNow(); |
891 EXPECT_EQ(SHELF_AUTO_HIDE_SHOWN, shelf->auto_hide_state()); | 893 EXPECT_EQ(SHELF_AUTO_HIDE_SHOWN, shelf->auto_hide_state()); |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1614 widget->Init(params); | 1616 widget->Init(params); |
1615 widget->Show(); | 1617 widget->Show(); |
1616 widget->Maximize(); | 1618 widget->Maximize(); |
1617 | 1619 |
1618 shelf->LayoutShelf(); | 1620 shelf->LayoutShelf(); |
1619 | 1621 |
1620 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); | 1622 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); |
1621 shelf->LayoutShelf(); | 1623 shelf->LayoutShelf(); |
1622 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); | 1624 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); |
1623 | 1625 |
1624 shelf->OnMaximizeModeStarted(); | 1626 Shell::GetInstance()->maximize_mode_controller()-> |
1627 EnableMaximizeModeWindowManager(true); | |
1625 shelf->LayoutShelf(); | 1628 shelf->LayoutShelf(); |
1626 EXPECT_EQ(SHELF_AUTO_HIDE_SHOWN, shelf->auto_hide_state()); | 1629 EXPECT_EQ(SHELF_AUTO_HIDE_SHOWN, shelf->auto_hide_state()); |
1627 | 1630 |
1628 aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow()); | 1631 aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow()); |
1629 generator.GestureEdgeSwipe(); | 1632 generator.GestureEdgeSwipe(); |
1630 | 1633 |
1631 EXPECT_EQ(SHELF_VISIBLE, shelf->visibility_state()); | 1634 EXPECT_EQ(SHELF_VISIBLE, shelf->visibility_state()); |
1632 } | 1635 } |
1633 | 1636 |
1634 #if defined(OS_WIN) | 1637 #if defined(OS_WIN) |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1953 status_area_widget->GetWindowBoundsInScreen().CenterPoint(); | 1956 status_area_widget->GetWindowBoundsInScreen().CenterPoint(); |
1954 generator.MoveMouseTo(center.x(), center.y()); | 1957 generator.MoveMouseTo(center.x(), center.y()); |
1955 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); | 1958 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); |
1956 EXPECT_TRUE(shelf->IsVisible()); | 1959 EXPECT_TRUE(shelf->IsVisible()); |
1957 if (!i) { | 1960 if (!i) { |
1958 // In our first iteration we make sure there is no bubble. | 1961 // In our first iteration we make sure there is no bubble. |
1959 tray->CloseSystemBubble(); | 1962 tray->CloseSystemBubble(); |
1960 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 1963 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
1961 } else { | 1964 } else { |
1962 // In our second iteration we show a bubble. | 1965 // In our second iteration we show a bubble. |
1963 TestItem *item = new TestItem; | 1966 TestItem* item = new TestItem; |
jonross
2014/05/29 15:24:42
cpplint
| |
1964 tray->AddTrayItem(item); | 1967 tray->AddTrayItem(item); |
1965 tray->ShowNotificationView(item); | 1968 tray->ShowNotificationView(item); |
1966 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); | 1969 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); |
1967 } | 1970 } |
1968 // Move the pointer over the edge of the shelf. | 1971 // Move the pointer over the edge of the shelf. |
1969 generator.MoveMouseTo( | 1972 generator.MoveMouseTo( |
1970 center.x(), status_area_widget->GetWindowBoundsInScreen().y() - 8); | 1973 center.x(), status_area_widget->GetWindowBoundsInScreen().y() - 8); |
1971 shelf->UpdateVisibilityState(); | 1974 shelf->UpdateVisibilityState(); |
1972 if (i) { | 1975 if (i) { |
1973 EXPECT_TRUE(shelf->IsVisible()); | 1976 EXPECT_TRUE(shelf->IsVisible()); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2005 | 2008 |
2006 w1->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); | 2009 w1->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); |
2007 EXPECT_EQ(SHELF_BACKGROUND_MAXIMIZED, GetShelfWidget()->GetBackgroundType()); | 2010 EXPECT_EQ(SHELF_BACKGROUND_MAXIMIZED, GetShelfWidget()->GetBackgroundType()); |
2008 w1.reset(); | 2011 w1.reset(); |
2009 EXPECT_EQ(SHELF_BACKGROUND_DEFAULT, GetShelfWidget()->GetBackgroundType()); | 2012 EXPECT_EQ(SHELF_BACKGROUND_DEFAULT, GetShelfWidget()->GetBackgroundType()); |
2010 } | 2013 } |
2011 | 2014 |
2012 // Verify that the shelf doesn't have the opaque background if it's auto-hide | 2015 // Verify that the shelf doesn't have the opaque background if it's auto-hide |
2013 // status. | 2016 // status. |
2014 TEST_F(ShelfLayoutManagerTest, ShelfBackgroundColorAutoHide) { | 2017 TEST_F(ShelfLayoutManagerTest, ShelfBackgroundColorAutoHide) { |
2015 EXPECT_EQ(SHELF_BACKGROUND_DEFAULT, GetShelfWidget ()->GetBackgroundType()); | 2018 EXPECT_EQ(SHELF_BACKGROUND_DEFAULT, GetShelfWidget()->GetBackgroundType()); |
jonross
2014/05/29 15:24:42
cpplint
| |
2016 | 2019 |
2017 GetShelfLayoutManager()->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); | 2020 GetShelfLayoutManager()->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); |
2018 scoped_ptr<aura::Window> w1(CreateTestWindow()); | 2021 scoped_ptr<aura::Window> w1(CreateTestWindow()); |
2019 w1->Show(); | 2022 w1->Show(); |
2020 wm::ActivateWindow(w1.get()); | 2023 wm::ActivateWindow(w1.get()); |
2021 EXPECT_EQ(SHELF_BACKGROUND_OVERLAP, GetShelfWidget()->GetBackgroundType()); | 2024 EXPECT_EQ(SHELF_BACKGROUND_OVERLAP, GetShelfWidget()->GetBackgroundType()); |
2022 w1->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); | 2025 w1->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); |
2023 EXPECT_EQ(SHELF_BACKGROUND_OVERLAP, GetShelfWidget()->GetBackgroundType()); | 2026 EXPECT_EQ(SHELF_BACKGROUND_OVERLAP, GetShelfWidget()->GetBackgroundType()); |
2024 } | 2027 } |
2025 | 2028 |
2026 // Verify that setting the shelf's auto hide mode in maximize mode does not | 2029 // Verify that setting the shelf's auto hide mode in maximize mode does not |
2027 // hide. | 2030 // hide. |
2028 TEST_F(ShelfLayoutManagerTest, DoesNotHideInMaximizeMode) { | 2031 TEST_F(ShelfLayoutManagerTest, DoesNotHideInMaximizeMode) { |
2029 EXPECT_EQ(SHELF_BACKGROUND_DEFAULT, GetShelfWidget()->GetBackgroundType()); | 2032 EXPECT_EQ(SHELF_BACKGROUND_DEFAULT, GetShelfWidget()->GetBackgroundType()); |
2030 | 2033 |
2031 GetShelfLayoutManager()->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); | 2034 GetShelfLayoutManager()->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); |
2032 scoped_ptr<aura::Window> w1(CreateTestWindow()); | 2035 scoped_ptr<aura::Window> w1(CreateTestWindow()); |
2033 w1->Show(); | 2036 w1->Show(); |
2034 ShelfLayoutManager* shelf = GetShelfLayoutManager(); | 2037 ShelfLayoutManager* shelf = GetShelfLayoutManager(); |
2035 | 2038 |
2036 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); | 2039 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); |
2037 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state()); | 2040 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state()); |
2038 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); | 2041 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); |
2039 | 2042 |
2040 GetShelfLayoutManager()->OnMaximizeModeStarted(); | 2043 Shell::GetInstance()->maximize_mode_controller()-> |
2044 EnableMaximizeModeWindowManager(true); | |
2041 EXPECT_EQ(SHELF_VISIBLE, shelf->visibility_state()); | 2045 EXPECT_EQ(SHELF_VISIBLE, shelf->visibility_state()); |
2042 EXPECT_EQ(SHELF_AUTO_HIDE_SHOWN, shelf->auto_hide_state()); | 2046 EXPECT_EQ(SHELF_AUTO_HIDE_SHOWN, shelf->auto_hide_state()); |
2043 | 2047 |
2044 // Setting the state again should have no impact. | 2048 // Setting the state again should have no impact. |
2045 GetShelfLayoutManager()->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); | 2049 GetShelfLayoutManager()->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); |
2046 EXPECT_EQ(SHELF_VISIBLE, shelf->visibility_state()); | 2050 EXPECT_EQ(SHELF_VISIBLE, shelf->visibility_state()); |
2047 EXPECT_EQ(SHELF_AUTO_HIDE_SHOWN, shelf->auto_hide_state()); | 2051 EXPECT_EQ(SHELF_AUTO_HIDE_SHOWN, shelf->auto_hide_state()); |
2048 | 2052 |
2049 GetShelfLayoutManager()->OnMaximizeModeEnded(); | 2053 Shell::GetInstance()->maximize_mode_controller()-> |
2054 EnableMaximizeModeWindowManager(false); | |
2050 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state()); | 2055 EXPECT_EQ(SHELF_AUTO_HIDE, shelf->visibility_state()); |
2051 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); | 2056 EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); |
2052 } | 2057 } |
2053 | 2058 |
2054 #if defined(OS_CHROMEOS) | 2059 #if defined(OS_CHROMEOS) |
2055 #define MAYBE_StatusAreaHitBoxCoversEdge StatusAreaHitBoxCoversEdge | 2060 #define MAYBE_StatusAreaHitBoxCoversEdge StatusAreaHitBoxCoversEdge |
2056 #else | 2061 #else |
2057 #define MAYBE_StatusAreaHitBoxCoversEdge DISABLED_StatusAreaHitBoxCoversEdge | 2062 #define MAYBE_StatusAreaHitBoxCoversEdge DISABLED_StatusAreaHitBoxCoversEdge |
2058 #endif | 2063 #endif |
2059 | 2064 |
2060 // Verify the hit bounds of the status area extend to the edge of the shelf. | 2065 // Verify the hit bounds of the status area extend to the edge of the shelf. |
2061 TEST_F(ShelfLayoutManagerTest, MAYBE_StatusAreaHitBoxCoversEdge) { | 2066 TEST_F(ShelfLayoutManagerTest, MAYBE_StatusAreaHitBoxCoversEdge) { |
2062 UpdateDisplay("400x400"); | 2067 UpdateDisplay("400x400"); |
2063 ShelfLayoutManager* shelf = GetShelfLayoutManager(); | 2068 ShelfLayoutManager* shelf = GetShelfLayoutManager(); |
2064 StatusAreaWidget* status_area_widget = | 2069 StatusAreaWidget* status_area_widget = |
2065 Shell::GetPrimaryRootWindowController()->shelf()->status_area_widget(); | 2070 Shell::GetPrimaryRootWindowController()->shelf()->status_area_widget(); |
2066 aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow()); | 2071 aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow()); |
2067 generator.MoveMouseTo(399,399); | 2072 generator.MoveMouseTo(399, 399); |
jonross
2014/05/29 15:24:42
cpplint
| |
2068 | 2073 |
2069 // Test bottom right pixel for bottom alignment. | 2074 // Test bottom right pixel for bottom alignment. |
2070 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 2075 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
2071 generator.ClickLeftButton(); | 2076 generator.ClickLeftButton(); |
2072 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); | 2077 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); |
2073 generator.ClickLeftButton(); | 2078 generator.ClickLeftButton(); |
2074 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 2079 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
2075 | 2080 |
2076 // Test bottom right pixel for right alignment. | 2081 // Test bottom right pixel for right alignment. |
2077 shelf->SetAlignment(SHELF_ALIGNMENT_RIGHT); | 2082 shelf->SetAlignment(SHELF_ALIGNMENT_RIGHT); |
2078 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 2083 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
2079 generator.ClickLeftButton(); | 2084 generator.ClickLeftButton(); |
2080 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); | 2085 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); |
2081 generator.ClickLeftButton(); | 2086 generator.ClickLeftButton(); |
2082 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 2087 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
2083 | 2088 |
2084 // Test bottom left pixel for left alignment. | 2089 // Test bottom left pixel for left alignment. |
2085 generator.MoveMouseTo(0, 399); | 2090 generator.MoveMouseTo(0, 399); |
2086 shelf->SetAlignment(SHELF_ALIGNMENT_LEFT); | 2091 shelf->SetAlignment(SHELF_ALIGNMENT_LEFT); |
2087 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 2092 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
2088 generator.ClickLeftButton(); | 2093 generator.ClickLeftButton(); |
2089 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); | 2094 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); |
2090 generator.ClickLeftButton(); | 2095 generator.ClickLeftButton(); |
2091 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 2096 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
2092 } | 2097 } |
2093 | 2098 |
2094 } // namespace ash | 2099 } // namespace ash |
OLD | NEW |