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

Unified Diff: ash/aura/wm_shell_aura.cc

Issue 2697043004: Makes Shell::SetDisplayWorkAreaInsets() call to WmShell (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | ash/shell.cc » ('j') | ash/shell.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_shell_aura.cc
diff --git a/ash/aura/wm_shell_aura.cc b/ash/aura/wm_shell_aura.cc
index 86158eb503c9122dd3da167994c98bb38eb2c25c..839854629fde8c032ed2f30aa9a67d1196725cc0 100644
--- a/ash/aura/wm_shell_aura.cc
+++ b/ash/aura/wm_shell_aura.cc
@@ -140,8 +140,9 @@ bool WmShellAura::IsForceMaximizeOnFirstRun() {
void WmShellAura::SetDisplayWorkAreaInsets(WmWindow* window,
const gfx::Insets& insets) {
- aura::Window* aura_window = WmWindow::GetAuraWindow(window);
- Shell::GetInstance()->SetDisplayWorkAreaInsets(aura_window, insets);
+ Shell::GetInstance()
+ ->window_tree_host_manager()
+ ->UpdateWorkAreaOfDisplayNearestWindow(window->aura_window(), insets);
msw 2017/02/16 18:34:49 q: what's your advice on using WmWindow::aura_wind
sky 2017/02/16 18:42:20 Get rid of WmWindow! ;) Good question. I think it
}
bool WmShellAura::IsPinned() {
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | ash/shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698