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/shelf_layout_manager.h" | 5 #include "ash/wm/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" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 void UpdateAutoHideStateNow() { | 165 void UpdateAutoHideStateNow() { |
166 GetShelfLayoutManager()->UpdateAutoHideStateNow(); | 166 GetShelfLayoutManager()->UpdateAutoHideStateNow(); |
167 } | 167 } |
168 | 168 |
169 aura::Window* CreateTestWindow() { | 169 aura::Window* CreateTestWindow() { |
170 aura::Window* window = new aura::Window(NULL); | 170 aura::Window* window = new aura::Window(NULL); |
171 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); | 171 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); |
172 window->SetType(aura::client::WINDOW_TYPE_NORMAL); | 172 window->SetType(aura::client::WINDOW_TYPE_NORMAL); |
173 window->Init(ui::LAYER_TEXTURED); | 173 window->Init(ui::LAYER_TEXTURED); |
174 window->SetParent(NULL); | 174 SetDefaultParentByPrimaryRootWindow(window); |
175 return window; | 175 return window; |
176 } | 176 } |
177 | 177 |
178 // Overridden from AshTestBase: | 178 // Overridden from AshTestBase: |
179 virtual void SetUp() OVERRIDE { | 179 virtual void SetUp() OVERRIDE { |
180 CommandLine::ForCurrentProcess()->AppendSwitch( | 180 CommandLine::ForCurrentProcess()->AppendSwitch( |
181 ash::switches::kAshEnableTrayDragging); | 181 ash::switches::kAshEnableTrayDragging); |
182 test::AshTestBase::SetUp(); | 182 test::AshTestBase::SetUp(); |
183 } | 183 } |
184 private: | 184 private: |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); | 971 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); |
972 } else { | 972 } else { |
973 EXPECT_FALSE(shelf->IsVisible()); | 973 EXPECT_FALSE(shelf->IsVisible()); |
974 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 974 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
975 } | 975 } |
976 } | 976 } |
977 } | 977 } |
978 | 978 |
979 } // namespace internal | 979 } // namespace internal |
980 } // namespace ash | 980 } // namespace ash |
OLD | NEW |