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

Side by Side Diff: ash/wm/workspace/workspace_event_handler_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/workspace_event_handler.h" 5 #include "ash/wm/workspace/workspace_event_handler.h"
6 6
7 #include "ash/screen_util.h" 7 #include "ash/screen_util.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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 class WorkspaceEventHandlerTest : public test::AshTestBase { 50 class WorkspaceEventHandlerTest : public test::AshTestBase {
51 public: 51 public:
52 WorkspaceEventHandlerTest() {} 52 WorkspaceEventHandlerTest() {}
53 ~WorkspaceEventHandlerTest() override {} 53 ~WorkspaceEventHandlerTest() override {}
54 54
55 protected: 55 protected:
56 aura::Window* CreateTestWindow(aura::WindowDelegate* delegate, 56 aura::Window* CreateTestWindow(aura::WindowDelegate* delegate,
57 const gfx::Rect& bounds) { 57 const gfx::Rect& bounds) {
58 aura::Window* window = new aura::Window(delegate); 58 aura::Window* window = new aura::Window(delegate);
59 window->SetType(ui::wm::WINDOW_TYPE_NORMAL); 59 window->SetType(ui::wm::WINDOW_TYPE_NORMAL);
60 window->Init(aura::WINDOW_LAYER_TEXTURED); 60 window->Init(ui::LAYER_TEXTURED);
61 ParentWindowInPrimaryRootWindow(window); 61 ParentWindowInPrimaryRootWindow(window);
62 window->SetBounds(bounds); 62 window->SetBounds(bounds);
63 window->Show(); 63 window->Show();
64 return window; 64 return window;
65 } 65 }
66 66
67 private: 67 private:
68 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandlerTest); 68 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandlerTest);
69 }; 69 };
70 70
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 delegate.set_window_component(HTCAPTION); 543 delegate.set_window_component(HTCAPTION);
544 generator.PressRightButton(); 544 generator.PressRightButton();
545 generator.ReleaseRightButton(); 545 generator.ReleaseRightButton();
546 EXPECT_FALSE(window_state->IsMaximized()); 546 EXPECT_FALSE(window_state->IsMaximized());
547 ClickButtonWithFlags(&generator, ui::EF_LEFT_MOUSE_BUTTON, 547 ClickButtonWithFlags(&generator, ui::EF_LEFT_MOUSE_BUTTON,
548 ui::EF_IS_DOUBLE_CLICK); 548 ui::EF_IS_DOUBLE_CLICK);
549 EXPECT_FALSE(window_state->IsMaximized()); 549 EXPECT_FALSE(window_state->IsMaximized());
550 } 550 }
551 551
552 } // namespace ash 552 } // 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