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

Side by Side Diff: ash/wm/shelf_layout_manager_unittest.cc

Issue 10795013: Rename bounds accessors to be intuitive and consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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
« no previous file with comments | « ash/wm/shelf_layout_manager.cc ('k') | ash/wm/system_gesture_event_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/shelf_layout_manager.h" 5 #include "ash/wm/shelf_layout_manager.h"
6 6
7 #include "ash/focus_cycler.h" 7 #include "ash/focus_cycler.h"
8 #include "ash/launcher/launcher.h" 8 #include "ash/launcher/launcher.h"
9 #include "ash/screen_ash.h" 9 #include "ash/screen_ash.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #else 81 #else
82 #define MAYBE_SetVisible SetVisible 82 #define MAYBE_SetVisible SetVisible
83 #endif 83 #endif
84 // Makes sure SetVisible updates work area and widget appropriately. 84 // Makes sure SetVisible updates work area and widget appropriately.
85 TEST_F(ShelfLayoutManagerTest, MAYBE_SetVisible) { 85 TEST_F(ShelfLayoutManagerTest, MAYBE_SetVisible) {
86 ShelfLayoutManager* shelf = GetShelfLayoutManager(); 86 ShelfLayoutManager* shelf = GetShelfLayoutManager();
87 // Force an initial layout. 87 // Force an initial layout.
88 shelf->LayoutShelf(); 88 shelf->LayoutShelf();
89 EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state()); 89 EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state());
90 90
91 gfx::Rect status_bounds(shelf->status()->GetWindowScreenBounds()); 91 gfx::Rect status_bounds(shelf->status()->GetWindowBoundsInScreen());
92 gfx::Rect launcher_bounds(shelf->launcher_widget()->GetWindowScreenBounds()); 92 gfx::Rect launcher_bounds(
93 shelf->launcher_widget()->GetWindowBoundsInScreen());
93 int shelf_height = shelf->GetIdealBounds().height(); 94 int shelf_height = shelf->GetIdealBounds().height();
94 95
95 const aura::DisplayManager* manager = 96 const aura::DisplayManager* manager =
96 aura::Env::GetInstance()->display_manager(); 97 aura::Env::GetInstance()->display_manager();
97 const gfx::Display& display = 98 const gfx::Display& display =
98 manager->GetDisplayNearestWindow(Shell::GetPrimaryRootWindow()); 99 manager->GetDisplayNearestWindow(Shell::GetPrimaryRootWindow());
99 ASSERT_NE(-1, display.id()); 100 ASSERT_NE(-1, display.id());
100 // Bottom inset should be the max of widget heights. 101 // Bottom inset should be the max of widget heights.
101 EXPECT_EQ(shelf_height, 102 EXPECT_EQ(shelf_height,
102 display.bounds().bottom() - display.work_area().bottom()); 103 display.bounds().bottom() - display.work_area().bottom());
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 164 }
164 165
165 // Makes sure the launcher is initially sized correctly. 166 // Makes sure the launcher is initially sized correctly.
166 TEST_F(ShelfLayoutManagerTest, LauncherInitiallySized) { 167 TEST_F(ShelfLayoutManagerTest, LauncherInitiallySized) {
167 Launcher* launcher = Shell::GetInstance()->launcher(); 168 Launcher* launcher = Shell::GetInstance()->launcher();
168 ASSERT_TRUE(launcher); 169 ASSERT_TRUE(launcher);
169 ShelfLayoutManager* shelf_layout_manager = GetShelfLayoutManager(); 170 ShelfLayoutManager* shelf_layout_manager = GetShelfLayoutManager();
170 ASSERT_TRUE(shelf_layout_manager); 171 ASSERT_TRUE(shelf_layout_manager);
171 ASSERT_TRUE(shelf_layout_manager->status()); 172 ASSERT_TRUE(shelf_layout_manager->status());
172 int status_width = 173 int status_width =
173 shelf_layout_manager->status()->GetWindowScreenBounds().width(); 174 shelf_layout_manager->status()->GetWindowBoundsInScreen().width();
174 // Test only makes sense if the status is > 0, which is better be. 175 // Test only makes sense if the status is > 0, which is better be.
175 EXPECT_GT(status_width, 0); 176 EXPECT_GT(status_width, 0);
176 EXPECT_EQ(status_width, launcher->status_size().width()); 177 EXPECT_EQ(status_width, launcher->status_size().width());
177 } 178 }
178 179
179 // Makes sure the launcher is sized when the status area changes size. 180 // Makes sure the launcher is sized when the status area changes size.
180 TEST_F(ShelfLayoutManagerTest, LauncherUpdatedWhenStatusAreaChangesSize) { 181 TEST_F(ShelfLayoutManagerTest, LauncherUpdatedWhenStatusAreaChangesSize) {
181 Launcher* launcher = Shell::GetInstance()->launcher(); 182 Launcher* launcher = Shell::GetInstance()->launcher();
182 ASSERT_TRUE(launcher); 183 ASSERT_TRUE(launcher);
183 ShelfLayoutManager* shelf_layout_manager = GetShelfLayoutManager(); 184 ShelfLayoutManager* shelf_layout_manager = GetShelfLayoutManager();
(...skipping 28 matching lines...) Expand all
212 widget->Init(params); 213 widget->Init(params);
213 widget->Maximize(); 214 widget->Maximize();
214 widget->Show(); 215 widget->Show();
215 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE, shelf->visibility_state()); 216 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE, shelf->visibility_state());
216 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); 217 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE_HIDDEN, shelf->auto_hide_state());
217 218
218 // LayoutShelf() forces the animation to completion, at which point the 219 // LayoutShelf() forces the animation to completion, at which point the
219 // launcher should go off the screen. 220 // launcher should go off the screen.
220 shelf->LayoutShelf(); 221 shelf->LayoutShelf();
221 EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize, 222 EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize,
222 shelf->launcher_widget()->GetWindowScreenBounds().y()); 223 shelf->launcher_widget()->GetWindowBoundsInScreen().y());
223 EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize, 224 EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize,
224 gfx::Screen::GetDisplayNearestWindow(root).work_area().bottom()); 225 gfx::Screen::GetDisplayNearestWindow(root).work_area().bottom());
225 226
226 // Move the mouse to the bottom of the screen. 227 // Move the mouse to the bottom of the screen.
227 generator.MoveMouseTo(0, root->bounds().bottom() - 1); 228 generator.MoveMouseTo(0, root->bounds().bottom() - 1);
228 229
229 // Shelf should be shown again (but it shouldn't have changed the work area). 230 // Shelf should be shown again (but it shouldn't have changed the work area).
230 SetState(shelf, ShelfLayoutManager::AUTO_HIDE); 231 SetState(shelf, ShelfLayoutManager::AUTO_HIDE);
231 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE_SHOWN, shelf->auto_hide_state()); 232 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE_SHOWN, shelf->auto_hide_state());
232 shelf->LayoutShelf(); 233 shelf->LayoutShelf();
233 EXPECT_EQ(root->bounds().bottom() - shelf->GetIdealBounds().height(), 234 EXPECT_EQ(root->bounds().bottom() - shelf->GetIdealBounds().height(),
234 shelf->launcher_widget()->GetWindowScreenBounds().y()); 235 shelf->launcher_widget()->GetWindowBoundsInScreen().y());
235 EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize, 236 EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize,
236 gfx::Screen::GetDisplayNearestWindow(root).work_area().bottom()); 237 gfx::Screen::GetDisplayNearestWindow(root).work_area().bottom());
237 238
238 // Move mouse back up. 239 // Move mouse back up.
239 generator.MoveMouseTo(0, 0); 240 generator.MoveMouseTo(0, 0);
240 SetState(shelf, ShelfLayoutManager::AUTO_HIDE); 241 SetState(shelf, ShelfLayoutManager::AUTO_HIDE);
241 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); 242 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE_HIDDEN, shelf->auto_hide_state());
242 shelf->LayoutShelf(); 243 shelf->LayoutShelf();
243 EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize, 244 EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize,
244 shelf->launcher_widget()->GetWindowScreenBounds().y()); 245 shelf->launcher_widget()->GetWindowBoundsInScreen().y());
245 246
246 // Drag mouse to bottom of screen. 247 // Drag mouse to bottom of screen.
247 generator.PressLeftButton(); 248 generator.PressLeftButton();
248 generator.MoveMouseTo(0, root->bounds().bottom() - 1); 249 generator.MoveMouseTo(0, root->bounds().bottom() - 1);
249 UpdateAutoHideStateNow(); 250 UpdateAutoHideStateNow();
250 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); 251 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE_HIDDEN, shelf->auto_hide_state());
251 252
252 generator.ReleaseLeftButton(); 253 generator.ReleaseLeftButton();
253 generator.MoveMouseTo(1, root->bounds().bottom() - 1); 254 generator.MoveMouseTo(1, root->bounds().bottom() - 1);
254 UpdateAutoHideStateNow(); 255 UpdateAutoHideStateNow();
(...skipping 21 matching lines...) Expand all
276 widget->Maximize(); 277 widget->Maximize();
277 widget->Show(); 278 widget->Show();
278 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE, shelf->visibility_state()); 279 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE, shelf->visibility_state());
279 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE_HIDDEN, shelf->auto_hide_state()); 280 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE_HIDDEN, shelf->auto_hide_state());
280 281
281 aura::RootWindow* root = Shell::GetPrimaryRootWindow(); 282 aura::RootWindow* root = Shell::GetPrimaryRootWindow();
282 // LayoutShelf() forces the animation to completion, at which point the 283 // LayoutShelf() forces the animation to completion, at which point the
283 // launcher should go off the screen. 284 // launcher should go off the screen.
284 shelf->LayoutShelf(); 285 shelf->LayoutShelf();
285 EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize, 286 EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize,
286 shelf->launcher_widget()->GetWindowScreenBounds().y()); 287 shelf->launcher_widget()->GetWindowBoundsInScreen().y());
287 288
288 aura::Window* lock_container = Shell::GetContainer( 289 aura::Window* lock_container = Shell::GetContainer(
289 Shell::GetPrimaryRootWindow(), 290 Shell::GetPrimaryRootWindow(),
290 internal::kShellWindowId_LockScreenContainer); 291 internal::kShellWindowId_LockScreenContainer);
291 292
292 views::Widget* lock_widget = new views::Widget; 293 views::Widget* lock_widget = new views::Widget;
293 views::Widget::InitParams lock_params( 294 views::Widget::InitParams lock_params(
294 views::Widget::InitParams::TYPE_WINDOW); 295 views::Widget::InitParams::TYPE_WINDOW);
295 lock_params.bounds = gfx::Rect(0, 0, 200, 200); 296 lock_params.bounds = gfx::Rect(0, 0, 200, 200);
296 lock_params.parent = lock_container; 297 lock_params.parent = lock_container;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 shelf->GetMaximizedWindowBounds(window).bottom()); 344 shelf->GetMaximizedWindowBounds(window).bottom());
344 345
345 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_NEVER); 346 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_NEVER);
346 EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state()); 347 EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state());
347 EXPECT_GT(display_bounds.bottom() - ShelfLayoutManager::kAutoHideSize, 348 EXPECT_GT(display_bounds.bottom() - ShelfLayoutManager::kAutoHideSize,
348 shelf->GetMaximizedWindowBounds(window).bottom()); 349 shelf->GetMaximizedWindowBounds(window).bottom());
349 350
350 widget->Maximize(); 351 widget->Maximize();
351 EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state()); 352 EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state());
352 EXPECT_EQ(gfx::Screen::GetDisplayNearestWindow(window).work_area().bottom(), 353 EXPECT_EQ(gfx::Screen::GetDisplayNearestWindow(window).work_area().bottom(),
353 widget->GetWorkAreaScreenBounds().bottom()); 354 widget->GetWorkAreaBoundsInScreen().bottom());
354 355
355 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); 356 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
356 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE, shelf->visibility_state()); 357 EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE, shelf->visibility_state());
357 EXPECT_EQ(gfx::Screen::GetDisplayNearestWindow(window).work_area().bottom(), 358 EXPECT_EQ(gfx::Screen::GetDisplayNearestWindow(window).work_area().bottom(),
358 widget->GetWorkAreaScreenBounds().bottom()); 359 widget->GetWorkAreaBoundsInScreen().bottom());
359 360
360 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_NEVER); 361 shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_NEVER);
361 EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state()); 362 EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state());
362 EXPECT_EQ(gfx::Screen::GetDisplayNearestWindow(window).work_area().bottom(), 363 EXPECT_EQ(gfx::Screen::GetDisplayNearestWindow(window).work_area().bottom(),
363 widget->GetWorkAreaScreenBounds().bottom()); 364 widget->GetWorkAreaBoundsInScreen().bottom());
364 } 365 }
365 366
366 // Verifies the shelf is visible when status/launcher is focused. 367 // Verifies the shelf is visible when status/launcher is focused.
367 TEST_F(ShelfLayoutManagerTest, VisibleWhenStatusOrLauncherFocused) { 368 TEST_F(ShelfLayoutManagerTest, VisibleWhenStatusOrLauncherFocused) {
368 // Since ShelfLayoutManager queries for mouse location, move the mouse so 369 // Since ShelfLayoutManager queries for mouse location, move the mouse so
369 // it isn't over the shelf. 370 // it isn't over the shelf.
370 aura::test::EventGenerator generator( 371 aura::test::EventGenerator generator(
371 Shell::GetPrimaryRootWindow(), gfx::Point()); 372 Shell::GetPrimaryRootWindow(), gfx::Point());
372 generator.MoveMouseTo(0, 0); 373 generator.MoveMouseTo(0, 0);
373 374
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 491
491 // Tests SHELF_ALIGNMENT_LEFT and SHELF_ALIGNMENT_RIGHT. 492 // Tests SHELF_ALIGNMENT_LEFT and SHELF_ALIGNMENT_RIGHT.
492 TEST_F(ShelfLayoutManagerTest, SetAlignment) { 493 TEST_F(ShelfLayoutManagerTest, SetAlignment) {
493 ShelfLayoutManager* shelf = GetShelfLayoutManager(); 494 ShelfLayoutManager* shelf = GetShelfLayoutManager();
494 // Force an initial layout. 495 // Force an initial layout.
495 shelf->LayoutShelf(); 496 shelf->LayoutShelf();
496 EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state()); 497 EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state());
497 498
498 shelf->SetAlignment(SHELF_ALIGNMENT_LEFT); 499 shelf->SetAlignment(SHELF_ALIGNMENT_LEFT);
499 500
500 gfx::Rect launcher_bounds(shelf->launcher_widget()->GetWindowScreenBounds()); 501 gfx::Rect launcher_bounds(
502 shelf->launcher_widget()->GetWindowBoundsInScreen());
501 const aura::DisplayManager* manager = 503 const aura::DisplayManager* manager =
502 aura::Env::GetInstance()->display_manager(); 504 aura::Env::GetInstance()->display_manager();
503 gfx::Display display = 505 gfx::Display display =
504 manager->GetDisplayNearestWindow(Shell::GetPrimaryRootWindow()); 506 manager->GetDisplayNearestWindow(Shell::GetPrimaryRootWindow());
505 ASSERT_NE(-1, display.id()); 507 ASSERT_NE(-1, display.id());
506 EXPECT_EQ(shelf->GetIdealBounds().width(), 508 EXPECT_EQ(shelf->GetIdealBounds().width(),
507 display.GetWorkAreaInsets().left()); 509 display.GetWorkAreaInsets().left());
508 EXPECT_GE( 510 EXPECT_GE(
509 launcher_bounds.width(), 511 launcher_bounds.width(),
510 shelf->launcher_widget()->GetContentsView()->GetPreferredSize().width()); 512 shelf->launcher_widget()->GetContentsView()->GetPreferredSize().width());
511 EXPECT_EQ(SHELF_ALIGNMENT_LEFT, 513 EXPECT_EQ(SHELF_ALIGNMENT_LEFT,
512 Shell::GetInstance()->system_tray()->shelf_alignment()); 514 Shell::GetInstance()->system_tray()->shelf_alignment());
513 gfx::Rect status_bounds(shelf->status()->GetWindowScreenBounds()); 515 gfx::Rect status_bounds(shelf->status()->GetWindowBoundsInScreen());
514 EXPECT_GE(status_bounds.width(), 516 EXPECT_GE(status_bounds.width(),
515 shelf->status()->GetContentsView()->GetPreferredSize().width()); 517 shelf->status()->GetContentsView()->GetPreferredSize().width());
516 EXPECT_EQ(shelf->GetIdealBounds().width(), 518 EXPECT_EQ(shelf->GetIdealBounds().width(),
517 display.GetWorkAreaInsets().left()); 519 display.GetWorkAreaInsets().left());
518 EXPECT_EQ(0, display.GetWorkAreaInsets().top()); 520 EXPECT_EQ(0, display.GetWorkAreaInsets().top());
519 EXPECT_EQ(0, display.GetWorkAreaInsets().bottom()); 521 EXPECT_EQ(0, display.GetWorkAreaInsets().bottom());
520 EXPECT_EQ(0, display.GetWorkAreaInsets().right()); 522 EXPECT_EQ(0, display.GetWorkAreaInsets().right());
521 EXPECT_EQ(display.bounds().x(), launcher_bounds.x()); 523 EXPECT_EQ(display.bounds().x(), launcher_bounds.x());
522 EXPECT_EQ(display.bounds().y(), launcher_bounds.y()); 524 EXPECT_EQ(display.bounds().y(), launcher_bounds.y());
523 EXPECT_EQ(display.bounds().height(), launcher_bounds.height()); 525 EXPECT_EQ(display.bounds().height(), launcher_bounds.height());
524 526
525 shelf->SetAlignment(SHELF_ALIGNMENT_RIGHT); 527 shelf->SetAlignment(SHELF_ALIGNMENT_RIGHT);
526 launcher_bounds = shelf->launcher_widget()->GetWindowScreenBounds(); 528 launcher_bounds = shelf->launcher_widget()->GetWindowBoundsInScreen();
527 display = manager->GetDisplayNearestWindow(Shell::GetPrimaryRootWindow()); 529 display = manager->GetDisplayNearestWindow(Shell::GetPrimaryRootWindow());
528 ASSERT_NE(-1, display.id()); 530 ASSERT_NE(-1, display.id());
529 EXPECT_EQ(shelf->GetIdealBounds().width(), 531 EXPECT_EQ(shelf->GetIdealBounds().width(),
530 display.GetWorkAreaInsets().right()); 532 display.GetWorkAreaInsets().right());
531 EXPECT_GE( 533 EXPECT_GE(
532 launcher_bounds.width(), 534 launcher_bounds.width(),
533 shelf->launcher_widget()->GetContentsView()->GetPreferredSize().width()); 535 shelf->launcher_widget()->GetContentsView()->GetPreferredSize().width());
534 EXPECT_EQ(SHELF_ALIGNMENT_RIGHT, 536 EXPECT_EQ(SHELF_ALIGNMENT_RIGHT,
535 Shell::GetInstance()->system_tray()->shelf_alignment()); 537 Shell::GetInstance()->system_tray()->shelf_alignment());
536 status_bounds = gfx::Rect(shelf->status()->GetWindowScreenBounds()); 538 status_bounds = gfx::Rect(shelf->status()->GetWindowBoundsInScreen());
537 EXPECT_GE(status_bounds.width(), 539 EXPECT_GE(status_bounds.width(),
538 shelf->status()->GetContentsView()->GetPreferredSize().width()); 540 shelf->status()->GetContentsView()->GetPreferredSize().width());
539 EXPECT_EQ(shelf->GetIdealBounds().width(), 541 EXPECT_EQ(shelf->GetIdealBounds().width(),
540 display.GetWorkAreaInsets().right()); 542 display.GetWorkAreaInsets().right());
541 EXPECT_EQ(0, display.GetWorkAreaInsets().top()); 543 EXPECT_EQ(0, display.GetWorkAreaInsets().top());
542 EXPECT_EQ(0, display.GetWorkAreaInsets().bottom()); 544 EXPECT_EQ(0, display.GetWorkAreaInsets().bottom());
543 EXPECT_EQ(0, display.GetWorkAreaInsets().left()); 545 EXPECT_EQ(0, display.GetWorkAreaInsets().left());
544 EXPECT_EQ(display.work_area().right(), launcher_bounds.x()); 546 EXPECT_EQ(display.work_area().right(), launcher_bounds.x());
545 EXPECT_EQ(display.bounds().y(), launcher_bounds.y()); 547 EXPECT_EQ(display.bounds().y(), launcher_bounds.y());
546 EXPECT_EQ(display.bounds().height(), launcher_bounds.height()); 548 EXPECT_EQ(display.bounds().height(), launcher_bounds.height());
547 } 549 }
548 550
549 } // namespace internal 551 } // namespace internal
550 } // namespace ash 552 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/shelf_layout_manager.cc ('k') | ash/wm/system_gesture_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698