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

Side by Side Diff: ash/wm/workspace/workspace_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
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_manager.h" 5 #include "ash/wm/workspace/workspace_manager.h"
6 6
7 #include "ash/screen_ash.h" 7 #include "ash/screen_ash.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/shell_window_ids.h" 9 #include "ash/shell_window_ids.h"
10 #include "ash/test/ash_test_base.h" 10 #include "ash/test/ash_test_base.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return Shell::GetContainer( 54 return Shell::GetContainer(
55 Shell::GetPrimaryRootWindow(), 55 Shell::GetPrimaryRootWindow(),
56 kShellWindowId_DefaultContainer); 56 kShellWindowId_DefaultContainer);
57 } 57 }
58 58
59 const std::vector<Workspace*>& workspaces() const { 59 const std::vector<Workspace*>& workspaces() const {
60 return manager_->workspaces_; 60 return manager_->workspaces_;
61 } 61 }
62 62
63 gfx::Rect GetFullscreenBounds(aura::Window* window) { 63 gfx::Rect GetFullscreenBounds(aura::Window* window) {
64 return gfx::Screen::GetMonitorNearestWindow(window).bounds(); 64 return gfx::Screen::GetDisplayNearestWindow(window).bounds();
65 } 65 }
66 66
67 Workspace* active_workspace() { 67 Workspace* active_workspace() {
68 return manager_->active_workspace_; 68 return manager_->active_workspace_;
69 } 69 }
70 70
71 Workspace* FindBy(aura::Window* window) const { 71 Workspace* FindBy(aura::Window* window) const {
72 return manager_->FindBy(window); 72 return manager_->FindBy(window);
73 } 73 }
74 74
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 w1->Show(); 666 w1->Show();
667 w1->SetProperty(aura::client::kAnimationsDisabledKey, true); 667 w1->SetProperty(aura::client::kAnimationsDisabledKey, true);
668 668
669 w2->Show(); 669 w2->Show();
670 w2->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); 670 w2->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED);
671 EXPECT_TRUE(w1->GetProperty(aura::client::kAnimationsDisabledKey)); 671 EXPECT_TRUE(w1->GetProperty(aura::client::kAnimationsDisabledKey));
672 } 672 }
673 673
674 } // namespace internal 674 } // namespace internal
675 } // namespace ash 675 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_event_filter_unittest.cc ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698