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

Unified Diff: ash/wm/system_modal_container_layout_manager.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 some new gfx::Screen additions 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/system_modal_container_layout_manager.cc
diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc
index c763bc993ca143d8254bf6747a08261ff0cc638b..0f8a2117f1a05ef8b2a5f7a527a61148abba7144 100644
--- a/ash/wm/system_modal_container_layout_manager.cc
+++ b/ash/wm/system_modal_container_layout_manager.cc
@@ -74,7 +74,8 @@ void SystemModalContainerLayoutManager::OnWindowResized() {
if (modal_background_) {
// Note: we have to set the entire bounds with the screen offset.
modal_background_->SetBounds(
- gfx::Screen::GetDisplayNearestWindow(container_).bounds());
+ Shell::GetAshScreen()->GetDisplayNearestWindow(
+ container_).bounds());
}
if (!modal_windows_.empty()) {
aura::Window::Windows::iterator it = modal_windows_.begin();
@@ -166,7 +167,8 @@ void SystemModalContainerLayoutManager::CreateModalBackground() {
modal_background_ = new views::Widget;
views::Widget::InitParams params(views::Widget::InitParams::TYPE_CONTROL);
params.parent = container_;
- params.bounds = gfx::Screen::GetDisplayNearestWindow(container_).bounds();
+ params.bounds = Shell::GetAshScreen()->GetDisplayNearestWindow(
+ container_).bounds();
modal_background_->Init(params);
modal_background_->GetNativeView()->SetName(
"SystemModalContainerLayoutManager.ModalBackground");

Powered by Google App Engine
This is Rietveld 408576698