Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: ash/wm/shelf_layout_manager_unittest.cc

Issue 11421006: Desktop aura: Break aura::Window::SetParent in two. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ash_unittests Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/wm/panel_layout_manager_unittest.cc ('k') | ash/wm/toplevel_window_event_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698