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

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

Issue 1050713002: aura: Remove layerless windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layerless: rebase Created 5 years, 8 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
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/multi_window_resize_controller.h" 5 #include "ash/wm/workspace/multi_window_resize_controller.h"
6 6
7 #include "ash/ash_constants.h" 7 #include "ash/ash_constants.h"
8 #include "ash/frame/custom_frame_view_ash.h" 8 #include "ash/frame/custom_frame_view_ash.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/test/ash_test_base.h" 10 #include "ash/test/ash_test_base.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 WorkspaceControllerTestHelper(wc).GetEventHandler(); 61 WorkspaceControllerTestHelper(wc).GetEventHandler();
62 resize_controller_ = WorkspaceEventHandlerTestHelper(event_handler). 62 resize_controller_ = WorkspaceEventHandlerTestHelper(event_handler).
63 resize_controller(); 63 resize_controller();
64 } 64 }
65 65
66 protected: 66 protected:
67 aura::Window* CreateTestWindow(aura::WindowDelegate* delegate, 67 aura::Window* CreateTestWindow(aura::WindowDelegate* delegate,
68 const gfx::Rect& bounds) { 68 const gfx::Rect& bounds) {
69 aura::Window* window = new aura::Window(delegate); 69 aura::Window* window = new aura::Window(delegate);
70 window->SetType(ui::wm::WINDOW_TYPE_NORMAL); 70 window->SetType(ui::wm::WINDOW_TYPE_NORMAL);
71 window->Init(aura::WINDOW_LAYER_TEXTURED); 71 window->Init(ui::LAYER_TEXTURED);
72 ParentWindowInPrimaryRootWindow(window); 72 ParentWindowInPrimaryRootWindow(window);
73 window->SetBounds(bounds); 73 window->SetBounds(bounds);
74 window->Show(); 74 window->Show();
75 return window; 75 return window;
76 } 76 }
77 77
78 void ShowNow() { 78 void ShowNow() {
79 resize_controller_->ShowNow(); 79 resize_controller_->ShowNow();
80 } 80 }
81 81
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 367
368 // Clicking outside the resize handle should immediately hide the resize 368 // Clicking outside the resize handle should immediately hide the resize
369 // handle. 369 // handle.
370 EXPECT_FALSE(resize_widget_bounds_in_screen.Contains(w1_center_in_screen)); 370 EXPECT_FALSE(resize_widget_bounds_in_screen.Contains(w1_center_in_screen));
371 generator.MoveMouseTo(w1_center_in_screen); 371 generator.MoveMouseTo(w1_center_in_screen);
372 generator.ClickLeftButton(); 372 generator.ClickLeftButton();
373 EXPECT_FALSE(IsShowing()); 373 EXPECT_FALSE(IsShowing());
374 } 374 }
375 375
376 } // namespace ash 376 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/toplevel_window_event_handler_unittest.cc ('k') | ash/wm/workspace/workspace_event_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698