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

Side by Side Diff: ash/test/ash_test_base.cc

Issue 115153002: wm: public window_types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/test/ash_test_base.h" 5 #include "ash/test/ash_test_base.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_switches.h" 10 #include "ash/ash_switches.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 const gfx::Rect& bounds) { 233 const gfx::Rect& bounds) {
234 return CreateTestWindowInShellWithDelegate( 234 return CreateTestWindowInShellWithDelegate(
235 new aura::test::ColorTestWindowDelegate(color), id, bounds); 235 new aura::test::ColorTestWindowDelegate(color), id, bounds);
236 } 236 }
237 237
238 aura::Window* AshTestBase::CreateTestWindowInShellWithDelegate( 238 aura::Window* AshTestBase::CreateTestWindowInShellWithDelegate(
239 aura::WindowDelegate* delegate, 239 aura::WindowDelegate* delegate,
240 int id, 240 int id,
241 const gfx::Rect& bounds) { 241 const gfx::Rect& bounds) {
242 return CreateTestWindowInShellWithDelegateAndType( 242 return CreateTestWindowInShellWithDelegateAndType(
243 delegate, 243 delegate, ui::wm::WINDOW_TYPE_NORMAL, id, bounds);
244 aura::client::WINDOW_TYPE_NORMAL,
245 id,
246 bounds);
247 } 244 }
248 245
249 aura::Window* AshTestBase::CreateTestWindowInShellWithDelegateAndType( 246 aura::Window* AshTestBase::CreateTestWindowInShellWithDelegateAndType(
250 aura::WindowDelegate* delegate, 247 aura::WindowDelegate* delegate,
251 aura::client::WindowType type, 248 ui::wm::WindowType type,
252 int id, 249 int id,
253 const gfx::Rect& bounds) { 250 const gfx::Rect& bounds) {
254 aura::Window* window = new aura::Window(delegate); 251 aura::Window* window = new aura::Window(delegate);
255 window->set_id(id); 252 window->set_id(id);
256 window->SetType(type); 253 window->SetType(type);
257 window->Init(ui::LAYER_TEXTURED); 254 window->Init(ui::LAYER_TEXTURED);
258 window->Show(); 255 window->Show();
259 256
260 if (bounds.IsEmpty()) { 257 if (bounds.IsEmpty()) {
261 ParentWindowInPrimaryRootWindow(window); 258 ParentWindowInPrimaryRootWindow(window);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 331
335 void AshTestBase::UnblockUserSession() { 332 void AshTestBase::UnblockUserSession() {
336 Shell::GetInstance()->session_state_delegate()->UnlockScreen(); 333 Shell::GetInstance()->session_state_delegate()->UnlockScreen();
337 SetSessionStarted(true); 334 SetSessionStarted(true);
338 SetUserAddingScreenRunning(false); 335 SetUserAddingScreenRunning(false);
339 } 336 }
340 337
341 338
342 } // namespace test 339 } // namespace test
343 } // namespace ash 340 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698