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

Side by Side Diff: ash/wm/workspace/workspace_manager_unittest.cc

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/workspace/workspace_manager.cc ('k') | ash/wm/workspace/workspace_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/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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 aura::Window* GetViewport() { 53 aura::Window* GetViewport() {
54 return Shell::GetInstance()->GetContainer(kShellWindowId_DefaultContainer); 54 return Shell::GetInstance()->GetContainer(kShellWindowId_DefaultContainer);
55 } 55 }
56 56
57 const std::vector<Workspace*>& workspaces() const { 57 const std::vector<Workspace*>& workspaces() const {
58 return manager_->workspaces_; 58 return manager_->workspaces_;
59 } 59 }
60 60
61 gfx::Rect GetFullscreenBounds(aura::Window* window) { 61 gfx::Rect GetFullscreenBounds(aura::Window* window) {
62 return gfx::Screen::GetMonitorAreaNearestWindow(window); 62 return gfx::Screen::GetMonitorNearestWindow(window).bounds();
63 } 63 }
64 64
65 Workspace* active_workspace() { 65 Workspace* active_workspace() {
66 return manager_->active_workspace_; 66 return manager_->active_workspace_;
67 } 67 }
68 68
69 Workspace* FindBy(aura::Window* window) const { 69 Workspace* FindBy(aura::Window* window) const {
70 return manager_->FindBy(window); 70 return manager_->FindBy(window);
71 } 71 }
72 72
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 612
613 w2->Show(); 613 w2->Show();
614 EXPECT_EQ(ShelfLayoutManager::HIDDEN, shelf->visibility_state()); 614 EXPECT_EQ(ShelfLayoutManager::HIDDEN, shelf->visibility_state());
615 615
616 w2.reset(); 616 w2.reset();
617 EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state()); 617 EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state());
618 } 618 }
619 619
620 } // namespace internal 620 } // namespace internal
621 } // namespace ash 621 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_manager.cc ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698