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

Unified Diff: components/exo/keyboard.cc

Issue 2396883003: exo: Fix dragging edge cases (Closed)
Patch Set: Rebase Created 3 years, 11 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: components/exo/keyboard.cc
diff --git a/components/exo/keyboard.cc b/components/exo/keyboard.cc
index c651a5672bacc8a045a3c903b7f69f1dfad43077..8d2f355b72ee277f11ae1441b24fbad2e5d92ae7 100644
--- a/components/exo/keyboard.cc
+++ b/components/exo/keyboard.cc
@@ -96,7 +96,7 @@ Keyboard::Keyboard(KeyboardDelegate* delegate) : delegate_(delegate) {
auto* helper = WMHelper::GetInstance();
helper->AddPostTargetHandler(this);
helper->AddFocusObserver(this);
- helper->AddMaximizeModeObserver(this);
+ helper->AddShellObserver(this);
helper->AddInputDeviceEventObserver(this);
OnWindowFocused(helper->GetFocusedWindow(), nullptr);
}
@@ -110,7 +110,7 @@ Keyboard::~Keyboard() {
auto* helper = WMHelper::GetInstance();
helper->RemoveFocusObserver(this);
helper->RemovePostTargetHandler(this);
- helper->RemoveMaximizeModeObserver(this);
+ helper->RemoveShellObserver(this);
helper->RemoveInputDeviceEventObserver(this);
}
@@ -215,7 +215,7 @@ void Keyboard::OnKeyboardDeviceConfigurationChanged() {
}
////////////////////////////////////////////////////////////////////////////////
-// WMHelper::MaximizeModeObserver overrides:
+// WMHelper::ShellObserver overrides:
void Keyboard::OnMaximizeModeStarted() {
OnKeyboardDeviceConfigurationChanged();

Powered by Google App Engine
This is Rietveld 408576698