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

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

Issue 10540123: Rename gfx::Screen::GetMonitorXXXX to gfx::Screen::GetDisplayXXX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/window_animations.cc ('k') | ash/wm/window_resizer.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/shell.h" 5 #include "ash/shell.h"
6 #include "ash/shell_window_ids.h" 6 #include "ash/shell_window_ids.h"
7 #include "ash/test/ash_test_base.h" 7 #include "ash/test/ash_test_base.h"
8 #include "ash/test/test_activation_delegate.h" 8 #include "ash/test/test_activation_delegate.h"
9 #include "ash/wm/activation_controller.h" 9 #include "ash/wm/activation_controller.h"
10 #include "ash/wm/window_util.h" 10 #include "ash/wm/window_util.h"
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 #endif 442 #endif
443 TEST_F(WindowManagerTest, MAYBE_TransformActivate) { 443 TEST_F(WindowManagerTest, MAYBE_TransformActivate) {
444 // Disable ash grid so that test can place a window at 444 // Disable ash grid so that test can place a window at
445 // specific location. 445 // specific location.
446 ash::Shell::GetInstance()->DisableWorkspaceGridLayout(); 446 ash::Shell::GetInstance()->DisableWorkspaceGridLayout();
447 447
448 aura::RootWindow* root_window = Shell::GetPrimaryRootWindow(); 448 aura::RootWindow* root_window = Shell::GetPrimaryRootWindow();
449 gfx::Size size = root_window->bounds().size(); 449 gfx::Size size = root_window->bounds().size();
450 EXPECT_EQ( 450 EXPECT_EQ(
451 gfx::Rect(size).ToString(), 451 gfx::Rect(size).ToString(),
452 gfx::Screen::GetMonitorNearestPoint(gfx::Point()).bounds().ToString()); 452 gfx::Screen::GetDisplayNearestPoint(gfx::Point()).bounds().ToString());
453 453
454 // Rotate it clock-wise 90 degrees. 454 // Rotate it clock-wise 90 degrees.
455 ui::Transform transform; 455 ui::Transform transform;
456 transform.SetRotate(90.0f); 456 transform.SetRotate(90.0f);
457 transform.ConcatTranslate(size.width(), 0); 457 transform.ConcatTranslate(size.width(), 0);
458 root_window->SetTransform(transform); 458 root_window->SetTransform(transform);
459 459
460 test::TestActivationDelegate d1; 460 test::TestActivationDelegate d1;
461 aura::test::TestWindowDelegate wd; 461 aura::test::TestWindowDelegate wd;
462 scoped_ptr<aura::Window> w1( 462 scoped_ptr<aura::Window> w1(
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 env_filter->set_update_cursor_visibility(false); 595 env_filter->set_update_cursor_visibility(false);
596 cursor_manager->ShowCursor(false); 596 cursor_manager->ShowCursor(false);
597 root_window->DispatchMouseEvent(&mouse_moved); 597 root_window->DispatchMouseEvent(&mouse_moved);
598 EXPECT_FALSE(cursor_manager->cursor_visible()); 598 EXPECT_FALSE(cursor_manager->cursor_visible());
599 cursor_manager->ShowCursor(true); 599 cursor_manager->ShowCursor(true);
600 root_window->DispatchTouchEvent(&touch_pressed2); 600 root_window->DispatchTouchEvent(&touch_pressed2);
601 EXPECT_TRUE(cursor_manager->cursor_visible()); 601 EXPECT_TRUE(cursor_manager->cursor_visible());
602 } 602 }
603 603
604 } // namespace ash 604 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/window_animations.cc ('k') | ash/wm/window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698