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/ash_switches.h" | 7 #include "ash/ash_switches.h" |
8 #include "ash/screen_ash.h" | 8 #include "ash/screen_ash.h" |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/shell_window_ids.h" | 10 #include "ash/shell_window_ids.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 return Shell::GetContainer( | 64 return Shell::GetContainer( |
65 Shell::GetPrimaryRootWindow(), | 65 Shell::GetPrimaryRootWindow(), |
66 kShellWindowId_DefaultContainer); | 66 kShellWindowId_DefaultContainer); |
67 } | 67 } |
68 | 68 |
69 const std::vector<Workspace*>& workspaces() const { | 69 const std::vector<Workspace*>& workspaces() const { |
70 return manager_->workspaces_; | 70 return manager_->workspaces_; |
71 } | 71 } |
72 | 72 |
73 gfx::Rect GetFullscreenBounds(aura::Window* window) { | 73 gfx::Rect GetFullscreenBounds(aura::Window* window) { |
74 return gfx::Screen::GetDisplayNearestWindow(window).bounds(); | 74 return Shell::GetScreen()->GetDisplayNearestWindow(window).bounds(); |
75 } | 75 } |
76 | 76 |
77 Workspace* active_workspace() { | 77 Workspace* active_workspace() { |
78 return manager_->active_workspace_; | 78 return manager_->active_workspace_; |
79 } | 79 } |
80 | 80 |
81 Workspace* FindBy(aura::Window* window) const { | 81 Workspace* FindBy(aura::Window* window) const { |
82 return manager_->FindBy(window); | 82 return manager_->FindBy(window); |
83 } | 83 } |
84 | 84 |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 wm::ActivateWindow(w1.get()); | 732 wm::ActivateWindow(w1.get()); |
733 w1->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); | 733 w1->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); |
734 w1->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MINIMIZED); | 734 w1->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MINIMIZED); |
735 EXPECT_EQ(ShelfLayoutManager::VISIBLE, | 735 EXPECT_EQ(ShelfLayoutManager::VISIBLE, |
736 Shell::GetInstance()->shelf()->visibility_state()); | 736 Shell::GetInstance()->shelf()->visibility_state()); |
737 EXPECT_FALSE(Shell::GetInstance()->launcher()->paints_background()); | 737 EXPECT_FALSE(Shell::GetInstance()->launcher()->paints_background()); |
738 } | 738 } |
739 | 739 |
740 } // namespace internal | 740 } // namespace internal |
741 } // namespace ash | 741 } // namespace ash |
OLD | NEW |