OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |