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

Unified Diff: ash/virtual_keyboard_controller.cc

Issue 2909763002: Revert of Rename MaximizeMode to TabletMode (Closed)
Patch Set: Created 3 years, 7 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/virtual_keyboard_controller.h ('k') | ash/virtual_keyboard_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/virtual_keyboard_controller.cc
diff --git a/ash/virtual_keyboard_controller.cc b/ash/virtual_keyboard_controller.cc
index d13dffb9ca4e63ef88689477cf98d3a9a9c9b00a..2d1443c945c7fb20385958a55ac0c811cc265940 100644
--- a/ash/virtual_keyboard_controller.cc
+++ b/ash/virtual_keyboard_controller.cc
@@ -10,7 +10,7 @@
#include "ash/root_window_controller.h"
#include "ash/shell.h"
#include "ash/system/tray/system_tray_notifier.h"
-#include "ash/wm/tablet_mode/tablet_mode_controller.h"
+#include "ash/wm/maximize_mode/maximize_mode_controller.h"
#include "ash/wm/window_util.h"
#include "ash/wm_window.h"
#include "base/command_line.h"
@@ -79,7 +79,7 @@
ui::InputDeviceManager::GetInstance()->RemoveObserver(this);
}
-void VirtualKeyboardController::OnTabletModeStarted() {
+void VirtualKeyboardController::OnMaximizeModeStarted() {
if (!IsSmartVirtualKeyboardEnabled()) {
SetKeyboardEnabled(true);
} else {
@@ -87,7 +87,7 @@
}
}
-void VirtualKeyboardController::OnTabletModeEnded() {
+void VirtualKeyboardController::OnMaximizeModeEnded() {
if (!IsSmartVirtualKeyboardEnabled()) {
SetKeyboardEnabled(false);
} else {
@@ -182,13 +182,13 @@
void VirtualKeyboardController::UpdateKeyboardEnabled() {
if (!IsSmartVirtualKeyboardEnabled()) {
SetKeyboardEnabled(Shell::Get()
- ->tablet_mode_controller()
- ->IsTabletModeWindowManagerEnabled());
+ ->maximize_mode_controller()
+ ->IsMaximizeModeWindowManagerEnabled());
return;
}
bool ignore_internal_keyboard = Shell::Get()
- ->tablet_mode_controller()
- ->IsTabletModeWindowManagerEnabled();
+ ->maximize_mode_controller()
+ ->IsMaximizeModeWindowManagerEnabled();
bool is_internal_keyboard_active =
has_internal_keyboard_ && !ignore_internal_keyboard;
SetKeyboardEnabled(!is_internal_keyboard_active && has_touchscreen_ &&
« no previous file with comments | « ash/virtual_keyboard_controller.h ('k') | ash/virtual_keyboard_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698