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

Side by Side Diff: ash/wm/overview/window_selector_unittest.cc

Issue 152223002: Renames LauncherID, LauncherItem and LauncherItems... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OWNERS Created 6 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/root_window_controller.h" 5 #include "ash/root_window_controller.h"
6 #include "ash/screen_util.h" 6 #include "ash/screen_util.h"
7 #include "ash/shelf/shelf.h" 7 #include "ash/shelf/shelf.h"
8 #include "ash/shelf/shelf_widget.h" 8 #include "ash/shelf/shelf_widget.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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 aura::Window* window = CreateWindow(bounds); 121 aura::Window* window = CreateWindow(bounds);
122 aura::client::SetActivationDelegate(window, 122 aura::client::SetActivationDelegate(window,
123 &non_activatable_activation_delegate_); 123 &non_activatable_activation_delegate_);
124 EXPECT_FALSE(ash::wm::CanActivateWindow(window)); 124 EXPECT_FALSE(ash::wm::CanActivateWindow(window));
125 return window; 125 return window;
126 } 126 }
127 127
128 aura::Window* CreatePanelWindow(const gfx::Rect& bounds) { 128 aura::Window* CreatePanelWindow(const gfx::Rect& bounds) {
129 aura::Window* window = CreateTestWindowInShellWithDelegateAndType( 129 aura::Window* window = CreateTestWindowInShellWithDelegateAndType(
130 NULL, ui::wm::WINDOW_TYPE_PANEL, 0, bounds); 130 NULL, ui::wm::WINDOW_TYPE_PANEL, 0, bounds);
131 test::TestShelfDelegate::instance()->AddLauncherItem(window); 131 test::TestShelfDelegate::instance()->AddShelfItem(window);
132 shelf_view_test()->RunMessageLoopUntilAnimationsDone(); 132 shelf_view_test()->RunMessageLoopUntilAnimationsDone();
133 return window; 133 return window;
134 } 134 }
135 135
136 bool WindowsOverlapping(aura::Window* window1, aura::Window* window2) { 136 bool WindowsOverlapping(aura::Window* window1, aura::Window* window2) {
137 gfx::RectF window1_bounds = GetTransformedTargetBounds(window1); 137 gfx::RectF window1_bounds = GetTransformedTargetBounds(window1);
138 gfx::RectF window2_bounds = GetTransformedTargetBounds(window2); 138 gfx::RectF window2_bounds = GetTransformedTargetBounds(window2);
139 return window1_bounds.Intersects(window2_bounds); 139 return window1_bounds.Intersects(window2_bounds);
140 } 140 }
141 141
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 wm::ActivateWindow(window1.get()); 990 wm::ActivateWindow(window1.get());
991 991
992 ToggleOverview(); 992 ToggleOverview();
993 EXPECT_TRUE(IsSelecting()); 993 EXPECT_TRUE(IsSelecting());
994 UpdateDisplay("400x400"); 994 UpdateDisplay("400x400");
995 EXPECT_FALSE(IsSelecting()); 995 EXPECT_FALSE(IsSelecting());
996 } 996 }
997 997
998 } // namespace internal 998 } // namespace internal
999 } // namespace ash 999 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/dock/docked_window_resizer_unittest.cc ('k') | ash/wm/panels/panel_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698