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

Side by Side Diff: ash/wm/workspace/workspace_event_handler_unittest.cc

Issue 36473003: Rename StackingClient -> WindowTreeClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: done. Created 7 years, 2 months 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/workspace/workspace_event_handler.h" 5 #include "ash/wm/workspace/workspace_event_handler.h"
6 6
7 #include "ash/screen_ash.h" 7 #include "ash/screen_ash.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
10 #include "ash/wm/window_state.h" 10 #include "ash/wm/window_state.h"
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 WorkspaceEventHandlerTest() {} 31 WorkspaceEventHandlerTest() {}
32 virtual ~WorkspaceEventHandlerTest() {} 32 virtual ~WorkspaceEventHandlerTest() {}
33 33
34 protected: 34 protected:
35 aura::Window* CreateTestWindow(aura::WindowDelegate* delegate, 35 aura::Window* CreateTestWindow(aura::WindowDelegate* delegate,
36 const gfx::Rect& bounds) { 36 const gfx::Rect& bounds) {
37 aura::Window* window = new aura::Window(delegate); 37 aura::Window* window = new aura::Window(delegate);
38 window->SetType(aura::client::WINDOW_TYPE_NORMAL); 38 window->SetType(aura::client::WINDOW_TYPE_NORMAL);
39 window->Init(ui::LAYER_TEXTURED); 39 window->Init(ui::LAYER_TEXTURED);
40 SetDefaultParentByPrimaryRootWindow(window); 40 ParentWindowInPrimaryRootWindow(window);
41 window->SetBounds(bounds); 41 window->SetBounds(bounds);
42 window->Show(); 42 window->Show();
43 return window; 43 return window;
44 } 44 }
45 45
46 private: 46 private:
47 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandlerTest); 47 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandlerTest);
48 }; 48 };
49 49
50 // Keeps track of the properties changed of a particular window. 50 // Keeps track of the properties changed of a particular window.
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 ASSERT_TRUE(aura::client::GetWindowMoveClient(window->parent())); 338 ASSERT_TRUE(aura::client::GetWindowMoveClient(window->parent()));
339 base::MessageLoop::current()->DeleteSoon(FROM_HERE, window.get()); 339 base::MessageLoop::current()->DeleteSoon(FROM_HERE, window.get());
340 aura::client::GetWindowMoveClient(window->parent()) 340 aura::client::GetWindowMoveClient(window->parent())
341 ->RunMoveLoop(window.release(), 341 ->RunMoveLoop(window.release(),
342 gfx::Vector2d(), 342 gfx::Vector2d(),
343 aura::client::WINDOW_MOVE_SOURCE_MOUSE); 343 aura::client::WINDOW_MOVE_SOURCE_MOUSE);
344 } 344 }
345 345
346 } // namespace internal 346 } // namespace internal
347 } // namespace ash 347 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/workspace/multi_window_resize_controller_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698