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

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

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix new addition Created 8 years, 2 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/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
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
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
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_manager2_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