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

Unified Diff: ash/common/wm/system_modal_container_layout_manager.cc

Issue 2122873002: Add virtualKeyboardPrivate.onKeyboardClosed API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test error. Created 4 years, 3 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/common/wm/system_modal_container_layout_manager.cc
diff --git a/ash/common/wm/system_modal_container_layout_manager.cc b/ash/common/wm/system_modal_container_layout_manager.cc
index 46aa21f64721c6c0611b2ff147f7afacbba7689a..4185abf49d47879c1da3b2e1b42f03f23e5157c8 100644
--- a/ash/common/wm/system_modal_container_layout_manager.cc
+++ b/ash/common/wm/system_modal_container_layout_manager.cc
@@ -44,7 +44,10 @@ SystemModalContainerLayoutManager::SystemModalContainerLayoutManager(
WmWindow* container)
: container_(container) {}
-SystemModalContainerLayoutManager::~SystemModalContainerLayoutManager() {}
+SystemModalContainerLayoutManager::~SystemModalContainerLayoutManager() {
+ if (keyboard::KeyboardController::GetInstance())
+ keyboard::KeyboardController::GetInstance()->RemoveObserver(this);
+}
////////////////////////////////////////////////////////////////////////////////
// SystemModalContainerLayoutManager, WmLayoutManager implementation:
@@ -130,6 +133,8 @@ void SystemModalContainerLayoutManager::OnKeyboardBoundsChanging(
PositionDialogsAfterWorkAreaResize();
}
+void SystemModalContainerLayoutManager::OnKeyboardClosed() {}
+
bool SystemModalContainerLayoutManager::IsPartOfActiveModalWindow(
WmWindow* window) {
return modal_window() &&
« no previous file with comments | « ash/common/wm/system_modal_container_layout_manager.h ('k') | ash/common/wm/workspace/workspace_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698