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

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 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/system_gesture_event_filter_unittest.cc ('k') | ash/wm/toplevel_window_event_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2bfc73ac47fe9a331b799b08b88b69c09c7759c2 100644
--- a/ash/wm/system_modal_container_layout_manager.cc
+++ b/ash/wm/system_modal_container_layout_manager.cc
@@ -74,7 +74,7 @@ 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::GetScreen()->GetDisplayNearestWindow(container_).bounds());
}
if (!modal_windows_.empty()) {
aura::Window::Windows::iterator it = modal_windows_.begin();
@@ -166,7 +166,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::GetScreen()->GetDisplayNearestWindow(
+ container_).bounds();
modal_background_->Init(params);
modal_background_->GetNativeView()->SetName(
"SystemModalContainerLayoutManager.ModalBackground");
« no previous file with comments | « ash/wm/system_gesture_event_filter_unittest.cc ('k') | ash/wm/toplevel_window_event_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698