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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2251843002: Add window property for restore bounds when virtual keyboard is enabled. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index a46b56f50adc35e58407d139afa7ee42ab5f1221..25e258ec28ddb536d6c008ba24042610b1b49063 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -303,6 +303,14 @@ void WmWindowAura::SetIntProperty(WmWindowProperty key, int value) {
NOTREACHED();
}
+gfx::Rect* WmWindowAura::GetRectProperty(WmWindowProperty key) {
+ if (key == WmWindowProperty::VK_NEW_BOUNDS)
+ return window_->GetProperty(aura::client::kVKNewBoundsKey);
+
+ NOTREACHED();
+ return new gfx::Rect();
+}
+
ShelfItemDetails* WmWindowAura::GetShelfItemDetails() {
return window_->GetProperty(kShelfItemDetailsKey);
}
@@ -780,6 +788,8 @@ void WmWindowAura::OnWindowPropertyChanged(aura::Window* window,
wm_property = WmWindowProperty::TOP_VIEW_INSET;
} else if (key == aura::client::kExcludeFromMruKey) {
wm_property = WmWindowProperty::EXCLUDE_FROM_MRU;
+ } else if (key == aura::client::kVKNewBoundsKey) {
+ wm_property = WmWindowProperty::VK_NEW_BOUNDS;
} else {
return;
}
« no previous file with comments | « ash/aura/wm_window_aura.h ('k') | ash/common/wm_window.h » ('j') | ash/common/wm_window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698